Jump to content

[SOLVED] Help please


lacorp

Recommended Posts

Here is my code:

<?php
$dbh=mysql_connect ("localhost", "username", "password") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("anima33_have");
mysql_query("SELECT * FROM mods WHERE left='1'") or die(mysql_error());
?>

 

And I keep getting:

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 '='1'' at line 1

 

Help please?

Link to comment
https://forums.phpfreaks.com/topic/122036-solved-help-please/
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.