Forum Moderators: coopster
result=mysql_query($sql4);
mysql query always failed.
1/ In your php file, just echo the query (echo $sql4).
Refresh your page and you should get something like this in your browser window.
CREATE TABLE table1 (link_id int(11) NOT NULL auto_increment, frombus int(11) DEFAULT '0' NOT NULL, to int(11) DEFAULT '0' NOT NULL, r float DEFAULT '0' NOT NULL, x float DEFAULT '0' NOT NULL, length float DEFAULT '0' NOT NULL, PRIMARY KEY (link_id)) 2/ Copy the query
3/ Open PHP MYADMIN in a new tab (FF) or window (IE)
4/ Paste the query in the SQL Query Box and click on the button.
5/ Either the query will be successfull and it will create the table, either it will fail and you will get a warning message. It gave me that there was an error at the line "to ...".