Actually, I'm not totally sure about that anymore. Sorry.
The instructions should really be like "add this to the end" kind of stuff, instead of replace.
If you have this line in 1.1.4:
$var = "'".addslashes($blah)."','".addslashes($blah2)."', $blah3";
And this in 1.1.5:
$var = addslashes($blah).",".addslashes($blah2).",".addsl ashes($blah3);
The only real difference is that you have an additional addslashes (and you moved a " around).
So, if I say replace the 1.1.4 line with this:
$var = "'".addslashes($blah)."','".addslashes($blah2)."', $blah3,$blah4,$blah5";
In 1.1.5, it'd be like this:
$var = addslashes($blah).",".addslashes($blah2).",".addsl ashes($blah3).",$blah4,$blah5" ;
Just some things you should know:
* The period puts strings together -> "a"."b" is basically "ab"
* Separate different fields in a MySQL table by commas.
INSERT syntax:
INSERT INTO table (field,list) VALUES (value,list)
UPDATE SYNTAX:
UPDATE table SET field=value, field2=value2 [WHERE clause optional]
HTH if you want to try it.
|