-
as seen on Stack Overflow
- Search for 'Stack Overflow'
$jj_post is the array output debug via print_r. this variable is an array of object
Array
(
[0] = stdClass Object
(
[ID] = 2571
)
)
i access the object property, ID, via code like this :
$jj_post_id = $jj_post[0];
$jj_ID = $jj_post_id-ID;
so, is there…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
i have doubt on this particular problem : Global variabe initiation. i got this code and has global variable named conditional_random here :
function hello_testing() {
global $conditional_random;
if (isset($conditional_random)) {
echo "foo is inside";
}
}
As it's name, the global…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I got this code in my submit form
<form id="myform" action='hello.php' method='GET'
<input type="button" name="newWin" onclick="frmSubmitSameWindows();"
<input type="button" name="SameWin" onclick="frmSubmitNewWindows();"
<form
Then use some js functions in the head;
function…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I got this code in my submit form
Then use some js functions in the head;
function frmSubmitSameWindows() {
form.target = '';
form.submit();
}
function frmSubmitNewWindows() {
form.target = '_blank';
form.submit();
}
What is the pro and cons when we use javascript event function…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
i got several variable. One is variable string, object, and array.
$mystring = "hello im input";
$myobject = new userclass;
$myarray = array ( 0 = 'zero', 1 = "one");
i want to create a new array with its variable name as key before send it to as function parameter with it's first line use…
>>> More