ok still having problems...
I'm trying to use the TIME_TO_SEC function and here is my code
<?
include("db.php");
$result=mysql_query("SELECT time_to_sec('10:10:10')");
echo "$result<br><br>";
?>
just to use as a test to see if it works and well i get a Resource ID #4 error when i run this...i searched online and found a few places that said you have to add mysql_fetch_array then the rest of the mysql_query string and when i did that my output was "Array"
i don't know much at all about mysql...any ideas please?
in the broad scheme of things i'm trying to create a site that people who work out can log onto and put in how long they worked out etc...
well i want to add up all their times so they know how much they have worked out in the past week, month, year
and i'm having horrible troubles trying to take the times off the database and add them up
thanks