very simple question, i have this:
$datos1=mysql_query("SELECT TIMEDIFF(NOW(), '" . $row['fecha'] . "');");
echo($datos1);
But the result is: Resource id #6
How can i print the result in the way is meant to be? Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to use a fetch function. for example:
However, i wouldnt use the
mysqlfunctions unless absolutely necessary. themysqlextension is NOT recommended for use in new projects. Instead you should usePDOwithPDO_mysqlormysqli.