我试图从我的手工艺中获取数据,我手里的标识被保存在另一个档案中。 用户名称正从我的表格上发送到页码,一米正在浏览。
Parse出错: syntax出错,意料[, 预期,或 ;C:xampphtdocswaladminipfinder.php,行文31。
我不理解为什么它说,尽管如此,一切都看不起。
Here s my PHP:
<?php
testinclude( db_login.php );
$con = mysql_connect($db_host,$db_username,$db_password);
//$con = mysql_connect( 10.241.10.40 , waladmin , waladmin );
if (!$con)
{
die( Could not connect: . mysql_error());
}
$db_select=mysql_select_db($db_database);
if(!db_select)
{
die("Could not select the database. <br />".mysql_error());
}
$select = Select ;
$column = IP_Address,Workstation,Username ;
$from = FROM ;
$tables = admintable ;
$where = where Username = " & ControlChars.Quote & Username & Username & ControlChars.Quote & "ORDER BY admintable.Time_Stamp DESC ;
$query = $select.$column.$from.$tables.$where;
$result = mysql_query($query);
if(!result)
{
die("Could not query the database: <br />".mysql_error());
}
while($result_row = mysql_fetch_row(($result))){
echo Username: . result_row[2] . <br /> ;
echo Workstation: . result_row[2] . <br /> ;
echo IP Address: . result_row[1] . <br /> ;
}
echo $con;
mysql_close($con)
echo $con;
?>