gergy008 Posted June 24, 2010 Share Posted June 24, 2010 $sql="INSERT INTO `payload`(`name`, `desc`, `salt`, `cat`) VALUES($filename, $filedesc, $filesalt, $filecat);"; $run=mysql_query($sql, $link) or die(mysql_error()); This code is stopping PHP loading. Anythin in the script before these lines still won't run. IF I comment these line out, The code before these lines will run. Can anyone hlp? Quote Link to comment https://forums.phpfreaks.com/topic/205791-this-is-causing-a-wierd-problem/ Share on other sites More sharing options...
rondog Posted June 24, 2010 Share Posted June 24, 2010 try this $sql = "INSERT INTO `payload`(`name`, `desc`, `salt`, `cat`) VALUES ('$filename', '$filedesc','$filesalt', '$filecat')"; I actually done even use the ` character and my queries work fine. Quote Link to comment https://forums.phpfreaks.com/topic/205791-this-is-causing-a-wierd-problem/#findComment-1076890 Share on other sites More sharing options...
PFMaBiSmAd Posted June 24, 2010 Share Posted June 24, 2010 Do you know for a fact that the php mysql extension is loaded on your server? Are you doing this on a server with error_reporting set to E_ALL and display_errors set to ON so that all the php errors would be reported and displayed? Quote Link to comment https://forums.phpfreaks.com/topic/205791-this-is-causing-a-wierd-problem/#findComment-1076896 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.