[Solved] Warning on using strtotime in php? [closed]


If you look at the documentation for mysql_result you’ll see that it expects the query resource as the first parameter, the row number as the second parameter, and (optionally) the field name or offset as the third parameter. You’re not using the function in anyway that even resembles its purpose.

Edit:

Based on your comment above (“my timestamp showing 1357294428 i want to show in proper format H:mm:ss DD-MM-YY”), you’re looking for this:

date('H:i:s d-m-y', strtotime($i["time_stamp"]));

Although if $i["time_stamp"] is already a timestamp then you just need this:

date('H:i:s d-m-y', $i["time_stamp"]);

0

solved Warning on using strtotime in php? [closed]