undefined variable
| From: | Smart Software | Date: | Sat, 29 Apr 2006 10:42:11 +0000 |
| Subject: | undefined variable | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-235102@lists.php.net to get a copy of this message | ||
code below shows all records from products table with an textbox and an
order button for each record
<? $query1 = mysql_query("SELECT * FROM products ");
while ($rowType = mysql_fetch_array($query1))
{ ?>
<table width="500" border="0">
<tr class="largeheader">
<td width="40%"><? echo "$rowType[0]"; ?></a> </td>
<td width="10%"><?php echo "$rowType[1]"; ?></td>
<td width="10%"><input name="quantity" type="text"
value="1" size="1"
maxlength="3"></td>
<td width="40%"> <a href="<? echo
"products.php?cat=$cat&toevoegen=1&id=$rowType[7]"; ?>"><img
src="images/bestel1.gif" border="0"></a></td>
</tr>
<?php
}
?>
</table>
if someone presses the button, an item will be ordered.
How can i add the content of the textbox?
i tried this:
<td width="40%"> <a href="<? echo
"products.php?cat=$cat&quantity=$quantity&toevoegen=1&id=$rowType[7]";
?>"><img src="images/bestel1.gif"
border="0"></a></td>
but all i get is an error telling me there is a undefined varable
thanx for all help
N. Karademir