richclever
IS-IT--Management
I can run my script on one server but not on another.
I get the following error when I try to access the page:
Couldn't execute statement: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ''0',30' at line 1; stoppedContent-type: text/html
The part of the file in question is:
$statement = 'SELECT * FROM staff WHERE username != "admin" LIMIT ?,30';
$sth = $dbh->prepare($statement) or die print "Couldn't prepare statement: $DBI::errstr; stopped";
$sth->execute($showp) or die print "Couldn't execute statement: $DBI::errstr; stopped";
while(my $ref = $sth->fetchrow_hashref()) {
As I say, it works on a different server but not on the other one. The version of perl we are using is:
perl 5.8.0-88
and the version of mysql is:
4.0.20
DBI and DBD are both installed and working.
Thanks
Rich
I get the following error when I try to access the page:
Couldn't execute statement: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ''0',30' at line 1; stoppedContent-type: text/html
The part of the file in question is:
$statement = 'SELECT * FROM staff WHERE username != "admin" LIMIT ?,30';
$sth = $dbh->prepare($statement) or die print "Couldn't prepare statement: $DBI::errstr; stopped";
$sth->execute($showp) or die print "Couldn't execute statement: $DBI::errstr; stopped";
while(my $ref = $sth->fetchrow_hashref()) {
As I say, it works on a different server but not on the other one. The version of perl we are using is:
perl 5.8.0-88
and the version of mysql is:
4.0.20
DBI and DBD are both installed and working.
Thanks
Rich