Page 1 of 1

New to xampp

PostPosted: 29. January 2006 20:59
by smith.james0
I have down loaded xampp and it seems to be working ok apart from one problem, when i query the data base it says Invalid query :cry:

This is one of the querys

$sql = "SELECT * FROM ******* WHERE timestamp='$accdate'";
$result = mysql_query($sql, $db) or die ("Invalid query");

It's connected to the database. Can anyone help?

Thanks James

PostPosted: 29. January 2006 22:39
by KingCrunch
is conection ($db) ok? Are there really * or its that a mask? :D Maybe you have to end each query with a ;

Code: Select all
$sql = "SELECT A FROM AllOfA WHERE timestamp='$accdate';";
$result = mysql_query($sql, $db) or die ("Invalid query");