Menu
Hi,
I am new with PHP. I try to insert a record into the table. The insert syntax is working when I specified the value manually like this:
[CODE]mysql_query(“INSERT INTO scriptactlog (login, scriptname, scriptoutput) VALUES (‘testing1’, ‘testing2’, ‘testing3’)”);
But when I try to use variable as values like this, it didn’t work. What is the mySQL syntax for using variable?
[CODE]mysql_query(“INSERT INTO scriptactlog (login, scriptname, scriptoutput) VALUES ($LoginName, $ScriptName, $scriptoutput)”);
Thank you,