Hey,
Can't tell if this was ever fixed. So will post a quick solution. When echoing/setting a variable to text inside double quotes you can easily add in variables by simply using {$myvar} directly in the text.
The errors are most likely due to a missing character escape. A solution to that would be make use of a more advanced method of creating a string. Rather than double quotes use:
The advantage of EOF tags is you don't have to worry about escaping any quotation marksCode:ecgo <<<EOF text you 'want' "here" EOF;
Finally the problem with your mysql is that your using the syntax to add a new row. Not to update one
Update syntax should be as follows
assuming you are updating an existing row. If you trying to create a new row though, your syntax is correct, but you should be using the command "INSERT INTO" rather than UPDATE.Code:UPDATE table_name SET column1=value, column2=value2 WHERE some_column=some_value
Hope that helps.
CS-Dude






Reply With Quote



