Jump to content

[ resolved ] Basic Error?


sylesia

Recommended Posts

Ok, just got this error
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 '' at line 1

Anyone have an idea what the basic issue might be?  The page it is on is
[code]
<?
session_start();
$userName = $_SESSION['usersName'];
$cardNumber = $_POST['card'];
require("http://localhost/srh/bluecardedit.html");
?>
[/code]

and the html page is long, but if you want to see that, I can send it over.  I know also no spaces before <? and also the first MySQL I use on the html page is line 7 and it is
[code]
$conn = mysql_connect("localhost", "user", "pass");
mysql_select_db("table", $conn);
[/code]
Link to comment
https://forums.phpfreaks.com/topic/30164-resolved-basic-error/
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.