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] Link to comment https://forums.phpfreaks.com/topic/30164-resolved-basic-error/ Share on other sites More sharing options...
fert Posted December 10, 2006 Share Posted December 10, 2006 post your SQL. Link to comment https://forums.phpfreaks.com/topic/30164-resolved-basic-error/#findComment-138654 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? Link to comment https://forums.phpfreaks.com/topic/30164-resolved-basic-error/#findComment-138658 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.