Zymic Forums

Webmaster resources

Zymic IRC Server

Chat in real time at irc.zymic.com - Learn More

Welcome

Welcome to the Zymic webmaster forums. Our forums are here to provide people the free ability to discuss a range of websites related topics such as design, development coding and marketing.

In order to post you will need to register for a zymic account or if you already have one simply login by using the form on the left.

left Zymic Webmaster ForumsWeb Design & DevelopmentServer Side ScriptingPHP right
  Reply to this topic Start new topic
left right
toteng
post Oct 19 2009, 11:52 AM
Post #1


Newbie
*

Group: Members
Posts: 2
Joined: 19-October 09
Member No.: 114,481



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?
Go to the top of the page 
 
  + Quote Post
PHP_student
post Oct 20 2009, 12:25 AM
Post #2


Member
**

Group: Members
Posts: 63
Joined: 29-September 09
Member No.: 111,978



Can you post your code?
Go to the top of the page 
 
  + Quote Post
LancerB1
post Oct 20 2009, 12:44 AM
Post #3


Newbie
*

Group: Members
Posts: 13
Joined: 10-October 09
Member No.: 113,416



Yeah, post your code or review your code in Notepad++ to see where you went wrong.
Go to the top of the page 
 
  + Quote Post
toteng
post Nov 3 2009, 02:48 PM
Post #4


Newbie
*

Group: Members
Posts: 2
Joined: 19-October 09
Member No.: 114,481



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 &copy; 2009</font></center></td>
</tr>
</table>
</center>
</body>
</html>


hope you could help me
Go to the top of the page 
 
  + Quote Post
 Reply to this topic Start new topic
left right
0 Members:
left right
 


Lo-Fi Version Time is now: 22nd November 2009 - 04:36 AM