mahalleday Posted January 4, 2009 Share Posted January 4, 2009 I am having trouble finding the error in this sql statement to update some info in my database. <?php //SQL statement to insert values into database $sql = "UPDATE ".TABLE_PREFIX."mod_ad_baker_categories SET cat_title = '$title', cat_desc = '$desc', cat_img = '$cat_img') WHERE ".TABLE_PREFIX."mod_ad_baker_categories.cat_id = '$cat_id' LIMIT 1;"; $query = $database->query($sql); ?> I know it has to be something little I just can't find it. Quote Link to comment https://forums.phpfreaks.com/topic/139391-solved-sql-statment-problem/ Share on other sites More sharing options...
xtopolis Posted January 4, 2009 Share Posted January 4, 2009 You have a ) for some reason next to $cat_img') Quote Link to comment https://forums.phpfreaks.com/topic/139391-solved-sql-statment-problem/#findComment-729103 Share on other sites More sharing options...
mahalleday Posted January 4, 2009 Author Share Posted January 4, 2009 Wow, that was simple. Make sme feel kind dumb. Thanks for the help. Cheers. Quote Link to comment https://forums.phpfreaks.com/topic/139391-solved-sql-statment-problem/#findComment-729129 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.