New to xampp

Problems with the Windows version of XAMPP, questions, comments, and anything related.

New to xampp

Postby smith.james0 » 29. January 2006 20:59

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
smith.james0
 
Posts: 1
Joined: 29. January 2006 20:57

Postby KingCrunch » 29. January 2006 22:39

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");
Nicht jeder Fehler ist ein Bug ...
KingCrunch
 
Posts: 1724
Joined: 26. November 2005 19:25


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 57 guests