sylesia Posted December 10, 2006 Share Posted December 10, 2006 Ok, just got this errorYou 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 1Anyone 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] Quote Link to comment Share on other sites More sharing options...
fert Posted December 10, 2006 Share Posted December 10, 2006 post your SQL. Quote Link to comment Share on other sites More sharing options...
sylesia Posted December 10, 2006 Author Share Posted December 10, 2006 Got it. Not sure what the error was, but fixed it by playing around alot... *sigh* why is code always like that? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.