toteng
Oct 19 2009, 11:52 AM
in the php page of my site, there is a notice like this
Notice: Undefined index: 6rs-laptopsaleandrepair_zxq_website.adapter.Product_ID in /www/zxq.net/6/r/s/6rs-laptopsaleandrepair/htdocs/p-adapter.php on line 75
Notice: Undefined index: 6rs-laptopsaleandrepair_zxq_website.adapter.Product_Brand in /www/zxq.net/6/r/s/6rs-laptopsaleandrepair/htdocs/p-adapter.php on line 76
Notice: Undefined index: 6rs-laptopsaleandrepair_zxq_website.adapter.Price in /www/zxq.net/6/r/s/6rs-laptopsaleandrepair/htdocs/p-adapter.php on line 77
Notice: Undefined index: 6rs-laptopsaleandrepair_zxq_website.adapter.Stock in /www/zxq.net/6/r/s/6rs-laptopsaleandrepair/htdocs/p-adapter.php on line 78
and in this page the data in my database must be viewed but its empty
how can i solve it?
PHP_student
Oct 20 2009, 12:25 AM
Can you post your code?
LancerB1
Oct 20 2009, 12:44 AM
Yeah, post your code or review your code in Notepad++ to see where you went wrong.
toteng
Nov 3 2009, 02:48 PM
i'm sorry for the late reply....
just got bc,
here's my code
<?
{ $id=$_POST["Product_ID"];
$pn=$_POST["Product_Brand"];
$pr=$_POST["Price"];
$st=$_POST["Stock"];
$v = mysql_query("Select from adapter");
$r = mysql_affected_rows();
echo "<center><table cellspacing=2 cellpadding=2 border=2 width=620><tr><td width=120><div align=center><span class=style2>Product ID</span></div></td><td width=310><div align=center><span class=style2>Product Brand</span></div></td><td width=100><div align=center class=style2>Price</div></td><td width=90><div align=center class=style2>Stocks</div></td></tr></table>";
for($i=0;$i<$r;$i++)
{
$row=mysql_fetch_array($v);
$id=$row["Product_ID"];
$pn=$row["Product_Brand"];
$pr=$row["Price"];
$st=$row["Stock"];
echo "<center><table cellspacing=2 cellpadding=2 border=2 width=620>
<tr><td width=116><div align=center>$id</div></td><td width=283>$pn</d></td>
<td width=93><div align=center>$pr</div></td><td width=90><div align=center>$st</div></td></tr></table>";
}
}
?>
<br>
<A href="order.php">CLICK HERE TO ORDER</A><br>
</div></td>
</tr>
<tr>
<td height="30" colspan="5"><center><font face="Courier New, Courier, monospace" size="+1" color="black">Copyright © 2009</font></center></td>
</tr>
</table>
</center>
</body>
</html>
hope you could help me
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.