经测试代码如下:
<?PHP
/**
*
*
* @param
* @arrange (512.笔记) jb51.cc
**/
$username="username";
$password="password";
$database="your_database";
$table="your_table";
MysqL_connect(localhost,$username,$password);
@MysqL_select_db($database) or die( "Unable to select database");
$query="SELECT * FROM $table";
$result=MysqL_query($query);