Undefined Index |
||
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.
Zymic Webmaster Forums Web Design & Development Server Side Scripting PHP |
||
![]() |
Undefined Index |
||
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? |
|
|
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?
|
|
|
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.
|
|
|
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 © 2009</font></center></td> </tr> </table> </center> </body> </html> hope you could help me |
|
|
![]() |
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users) |
||
| 0 Members: | ||
Forum Jump |
||
| Lo-Fi Version | Time is now: 22nd November 2009 - 04:36 AM |