it only displays the name, but the last name and the address seems not
to exist! why?
<?php
@ $db=mysql_pconn ect('host', 'UserID', 'PWD');
if (!$db)
{
echo 'conneciton eror';
exit;
}
else
{
echo 'connection on!';
}
mysql_select_db ('list');
$query="select * from index";
$result=mysql_q uery($query);
$num_results=my sql_num_rows($r esult);
if ($num_results == 0)
{
echo'<br><br>no thing to dispaly';
}
else
{
echo'<br><br>he re are the results: '.$num_results;
}
for ($i<0; $i<$num_results ; $i++)
{
$row=mysql_fetc h_array($result );
echo '<br>name: ';
echo htmlspecialchar s(stripslashes( $row['name']));
echo '<br>last name: ';
echo htmlspecialchar s(stripslashes( $row['last']));
}
?>
to exist! why?
<?php
@ $db=mysql_pconn ect('host', 'UserID', 'PWD');
if (!$db)
{
echo 'conneciton eror';
exit;
}
else
{
echo 'connection on!';
}
mysql_select_db ('list');
$query="select * from index";
$result=mysql_q uery($query);
$num_results=my sql_num_rows($r esult);
if ($num_results == 0)
{
echo'<br><br>no thing to dispaly';
}
else
{
echo'<br><br>he re are the results: '.$num_results;
}
for ($i<0; $i<$num_results ; $i++)
{
$row=mysql_fetc h_array($result );
echo '<br>name: ';
echo htmlspecialchar s(stripslashes( $row['name']));
echo '<br>last name: ';
echo htmlspecialchar s(stripslashes( $row['last']));
}
?>
Comment