Search:
Type: Posts; User: niladhar8@gmail.com
Search:
Search took 0.06 seconds.
-
how would i accomplish it using sprintf(); right now i used ternary operator to check if less than 10 and added 0 in front.
sorry bout that, will share it next time, i knew my work around was not...
-
-
i think i know what it is.... my array has 2011-01-09 as the key..... in my loop inside the calender where i try and display the amount for that date, it calculates to 2011-01-9 leaving out the 0.
...
-
yes i did echo my temp, and my source array as well.
the source array has this
$date['total'][2011-01-09] = 60.00;
echo $temp; // 2011-01-09;
-
i have values stored in an array with key
$array['total']['2001-11-09'];
the year month and day are as separate variables, how can i print its content out. I tried all below
$temp =...
-
-
a lot of times i have to save certain variables in ajax/javascript. What is the best practice way to save such variables....
right now i save them as hidden form fields and assign them an id and...
-
a lot of times i have to save certain variables in ajax/javascript. What is the best practice way to save such variables....
right now i save them as hidden form fields and assign them an id and...
-
March 31st, 2011, 05:20 PM
while($data[] = mysql_fetch_array($res) ) {}
array_pop($data);
seems to work :)
-
March 31st, 2011, 04:55 PM
sorry not sure if i can publish a question on mysql here...
on a query that returns n number of rows can i do it in a single statement instead of looping through...
right now this is what i do...
-
March 4th, 2011, 04:41 PM
trying to create a view on mysql but it wouldnt create more than 30 rows and gives me a message saying..... 1 This view has at least this number of rows. Please refer to documentation.
I did refer...
-
September 9th, 2010, 10:57 PM
gotcha... would session_destroy be the right way on a logout ?
-
September 9th, 2010, 03:44 PM
what would be the best way to escape urls and make sure its clean without any cross scripting?
i was thinking including a genric file which would preg_match the url and redirect to an error page...
-
September 9th, 2010, 12:17 AM
wat do you mean by a required header file is the only way to assure security?
-
September 8th, 2010, 08:41 PM
yea i know it works....... yea i will include it into a file but is this the best way ? i wish to know if there is a better way i can accomplish this.
-
September 8th, 2010, 02:54 PM
would the below be rite
mysql query results in a match.
$user = data['username'];
$_SESSION['user'] = $user;
-
September 8th, 2010, 02:22 PM
should i provide the name?
Also what should i check for in other pages to make sure un authenticated users donot access those pages?
-
September 8th, 2010, 01:37 PM
Earlier i would take username and password, match with db and on success redirect
session_register("myusername");
On every page that is viewed i would include a file that checks if...
-
July 28th, 2010, 01:07 PM
so if there was something really wrong even firefox and ie would pick it up rite? also i have that antivirus virus where a fake antivirus scan runs and then blocks al my exe's and asks me to purchase...
-
July 28th, 2010, 10:22 AM
i have my site on php and whenever i try logging into the back end of the site hosted by 1and1 i get a pantscow.ru malware warning from chrome only. i use the site on another computer with firefox...
-
June 23rd, 2010, 01:30 PM
is there a way i can dynamically update my webpage without any user action whenever there is a change made in the daatabase.
eg gmail automatically updates your email whenever you get a new...
-
but how can i pass an array from php to javascript.
are you saying dynamically build javaascript like
echo "<script type=java....>';
blah blah blah
??
I could do that, but thought that...
-
Ok but how can i access it in the javascript, lets say my array was as below
$arr = array(1 => array( 'name' =>'john', 'age' => '23', 'sex' => 'male'), 2=> array( 'name' =>'kerri', 'age' =>...
-
passing it directly gives me a parse error, passing it as an ajax parameter i first have to get it from my php script to javascript... explaining a little more below is what i wish to do.
...
-
m not sure if this is to be posted here or in the client side section, but it has to do with php also so will post here.
how can i pass json data from json_encode to a javascript function and...
|
Click Here to Expand Forum to Full Width
|