Jump to content

PHP AND MYSQL HELP


TonicPhp

Recommended Posts

i basically update the time 'time()' on my databse when the user clicks submit and i want to take away the current time agaisnt the time stored in the database,

 

$sql="SELECT time FROM test WHERE ID = 1" ;

$sql2= mysql_query("$sql) ;

$result = $sql-time();

 

this is what i tried but it dont work any help please

 

Link to comment
https://forums.phpfreaks.com/topic/240127-php-and-mysql-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.