0810
11-15-2002, 08:45 PM
how to show up my results horizontally
hi how are you doing?
I would like to show my result from mydatabase horizontally.
When a user reserches something from mysite, then results come up horizontally not vertically.
so I would like to know to show up my results from my database horizontally.
Here is my script. Now this script doesn't work. I used "table" but not working
Thanks
for($i=0; $i<$num_results; $i++)
{
$row=mysql_fetch_array($result);
echo"<table border=1 cellpadding=0 cellspacing=0 width=100%>";
echo"<tr>";
echo "<td>".($i+1).".Name:</td> ";
echo"<td> htmlspecialchars( stripslashes($row["name"]))</td>";
echo"<td rowspan=3><img src=\"$row[images]\" width=180 height=160></td>"
echo"</tr>";
echo"<tr>";
echo"<td>Country:</td> ";
echo "<td>htmlspecialchars( stripslashes($row["country"]))</td>";
echo"</tr>";
echo"<tr>";
echo"<td>Age:</td>";
echo "<td>htmlspecialchars( stripslashes($row["country"]))</td>";
echo "</tr>";
echo"<table>";
}
?>
hi how are you doing?
I would like to show my result from mydatabase horizontally.
When a user reserches something from mysite, then results come up horizontally not vertically.
so I would like to know to show up my results from my database horizontally.
Here is my script. Now this script doesn't work. I used "table" but not working
Thanks
for($i=0; $i<$num_results; $i++)
{
$row=mysql_fetch_array($result);
echo"<table border=1 cellpadding=0 cellspacing=0 width=100%>";
echo"<tr>";
echo "<td>".($i+1).".Name:</td> ";
echo"<td> htmlspecialchars( stripslashes($row["name"]))</td>";
echo"<td rowspan=3><img src=\"$row[images]\" width=180 height=160></td>"
echo"</tr>";
echo"<tr>";
echo"<td>Country:</td> ";
echo "<td>htmlspecialchars( stripslashes($row["country"]))</td>";
echo"</tr>";
echo"<tr>";
echo"<td>Age:</td>";
echo "<td>htmlspecialchars( stripslashes($row["country"]))</td>";
echo "</tr>";
echo"<table>";
}
?>