dropfaith Posted September 3, 2008 Share Posted September 3, 2008 my eyes hurt rom writing code today im sure this is obvious but i cant see it $rt=mysql_query("insert into gallery (Title, Cat, Photographer, Makeup, Hair, Wardrobe, uploaded, $destination) values('$Title','$Cat','$Photographer','$Makeup','$Hair','$Wardrobe','$uploaded','$destination')") or die(mysql_error()); Quote Link to comment https://forums.phpfreaks.com/topic/122631-solved-error-in-your-sql-syntax/ Share on other sites More sharing options...
.josh Posted September 3, 2008 Share Posted September 3, 2008 I'm guessing you used $destination instead of destination as your column name. Quote Link to comment https://forums.phpfreaks.com/topic/122631-solved-error-in-your-sql-syntax/#findComment-633189 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.