I am attempting to save a password to a mySQL table using the following code:
$sql = "INSERT INTO ModLoginTable (ModLogName,password)
VALUES ('$modlogname',password('$randompassword')";
mysql_query($sql) or die ("Cannot create a new entry in the Table"
However, it dosen't want to work. I know that the variable $modlogname is valid as I can insert it into other tables, and the variable $randompassword is also correct.
I'm very new to PHP - am I missing something basic??
Thanks,
Rob
$sql = "INSERT INTO ModLoginTable (ModLogName,password)
VALUES ('$modlogname',password('$randompassword')";
mysql_query($sql) or die ("Cannot create a new entry in the Table"
However, it dosen't want to work. I know that the variable $modlogname is valid as I can insert it into other tables, and the variable $randompassword is also correct.
I'm very new to PHP - am I missing something basic??
Thanks,
Rob