note 80610 rejected from faq by nlopess
| From: | nlopess@php.net | Date: | Fri, 25 Jan 2008 12:18:07 +0000 |
| Subject: | note 80610 rejected from faq by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-135404@lists.php.net to get a copy of this message | ||
Note Submitter: cempakabiru44 at yahoo dot com
----
hi there,,
pliz help me,,i cant view my data ...
<?php
include_once ("db.php");
$namapenyakit = $_POST['namapenyakit'];
$res = mysql_query("select * from penyakit");
?>
<body onLoad="window.print()"></body>
:: MAKLUMAT PENYAKIT ::
<table border=1 width="100%">
<tr>
<td width="53" ><b>Nama Penyakit</b></td>
<td width="53" ><b>Penerangan</b></td>
<td width="53" ><b>Gambar</b></td>
<td><label></span></label></td>
<td><img src="penyakit/<?php echo $data[4]; ?>"</td>
</tr><tr>
<?
$rows = mysql_num_rows($res);
while ($data=mysql_fetch_row($res))
echo "<td class=\"navText\">";
echo "</td>";
echo "<td
class=\"navText\">".$data[2]."</td>";
echo "<td
class=\"navText\">".$data[3]."</td>";
echo "<td
class=\"navText\">".$data[4]."</td>";
?>
</table>