|
Blue Forest http://www.lslnet.com at 8:28 on August 25, 2006
PHP section linking codes, help us to see where the wrong crop "?php
Global $result;
$dblink=mysql_connect ( 'Localhost' and 'root' and '123') or die ( "database username or password is wrong!");
mysql_select_db ( 'Test' $dblink) or die ( "select database failed!");
$query= "Drop table if exists TDF_News";
mysql_query ($query, $dblink)
? $result.= "" Span Historic Significance of the Transitional Budget 'color:red;' "Found a old database, have delete.</span><br everywhere"
: $result.= "" Span Historic Significance of the Transitional Budget 'color:red;' "Error, can 't delete</span><br everywhere."
$query= "Creat table TDF_News (";
$query.= "NewsID INT (10) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY";
$query.= "EnTitle VARCHAR (40) NOT NULL,";
$query.= "CnTitle VARCHAR (40) NOT NULL,";
$query.= "EnContents TEXT NOT NULL,";
$query.= "CnContents TEXT NOT NULL,";
$query.= "NewsDate DATETIME";
$query.= "NewsLink VARCHAR (20))";
mysql_query ($query)
? $result.= "" Span Historic Significance of the Transitional Budget 'color:red;' "Install success.</span><br everywhere"
: $result.= "" Span Historic Significance of the Transitional Budget 'color:red;' "Install failed</span><br everywhere."
?>
After the operation showed a blank page and has not suggested that mistakes |
|