[SOLVED] help with parse error, unexpected t_variable
Posted: Mon Aug 23, 2004 10:56 am
I can't figure out why this isn't working. Syntax seems OK to me, need an experts opinion. Thanks!
This is where the error is. If more code is needed to decipher, let me know.
Code: Select all
<?php
$sql = "INSERT INTO users SET
username = '$_POST[username]',
password = '$_POST[password]',
firstname = '$_POST[firstname]',
lastname = '$_POST[lastname]',
department = '$_POST[department]',
email = '$_POST[email]'";
?>