FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


[php/SQL] Help needed





wumingsden
I have been successfully converting php database install scripts for phpBB to SQL queries. I have been doing this to combine lots of SQL queries into one big php database install file which will make everyones life easier. I have come accross a hack though that I cannot convert and need to know how to combine it with another php install file that I have.

The php code for the hack that I need to turn into SQL queries is:

Code:

$sql=array(
'ALTER TABLE '.USERS_TABLE.' ADD user_gender TINYINT not null DEFAULT "0"'
);

$mods = array (
'Gender Mod'
);


I could just employ this into my php script but it seems to bring about errors which I believe is because of:

Code:

$mods = array (
'Gender Mod'
);


Does the above code actually do anything to the database and if not I'm guessing that it can be safely disregarded, am I correct ?
Related topics
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.