Im making an installer for my site to make things easier for me in the future and ive run into some bother.
It creates all the tables fine, but as soon as i try and insert the administrator's details into the Auth table it screws up!
I get a syntax error, and as hard as i look i cannot see it! this is the code im using
<?php
$group = "admin";
$insert_sql = "INSERT INTO auth (username, password, email, group) VALUES ('$admin_user', password('" . addslashes($admin_pass) . "'), '$admin_email', '$group')";
$create_query = mysql_query($insert_sql);
?>
It says i have an error in my syntax somewhere along the $insert_sql line from 'group) VALUES ('admin_user........ till then end of the query. I see no syntax error! in fact i pretty much copied this from a script which already works! help?!
thnks!:)