mysqli_query

Hello everyone. Im new to the forum and trying to see if I can find why my database won’t update with mysqli_query.

Here is my code (mysqli_query is returning false):
[php] // Note: Everything is defined.
$folder = $input[1];
$name = $input[2];
$description = $input[3];
$version = $input[4];
$images = $input[5];
$author = $input[6];
$old_folder = $input[7];
$query = mysqli_query ( $DatabaseConnection, “UPDATE scripts SET Folder=’”.$folder."’, Name=’".$name."’, Description=’".$description."’,
Version=’".$version."’, Images=’".$images."’, author=’".$author."’ WHERE Folder=’".$old_folder."’" );
mta::doReturn ( $query );
//mta::doReturn ( $old_folder );[/php]

Database: http://img203.imageshack.us/img203/5462/68dj.png

Try this exercise it should help you fix the issue.

http://www.techonthenet.com/sql/update.php

Sponsor our Newsletter | Privacy Policy | Terms of Service