Jump to content

[SOLVED] SQL statment problem


mahalleday

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/139391-solved-sql-statment-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.