bruceybonus
-
Posts
3 -
Joined
-
Last visited
Never
Posts posted by bruceybonus
-
-
Sorry guys wrong file and couldn't find the edit
<?php session_start(); include "connect.php"; if (isset($_GET['id'])){ $data = $_GET['id']; $prodresult = mysql_query("SELECT product_ID, product_Name, Category, Price, Information from product"); while ($prow = mysql_fetch_array($prodresult, MYSQL_NUM)) { echo "<p> $prow['product_Name']"; } else{ }
-
Hello! Incredibly new to PHP, so if this problem is a clear error i apologise. I am developing a page which will display a product based on what is clicked as a result of a search, my problem is that no matter that happens I cannot display anything from the Products table in my database:
<?php session_start(); include "connect.php"; $prodsql="SELECT product_ID, product_Name, Category, Price, Information from Product ;"; $prodresult = mysqli_query($_SESSION['conn'], $prodsql); while ($prow = mysql_fetch_array($prodresult, MYSQL_NUM)) { echo "<p> $prow['product_Name']"; } else{ }
What am i missing? The connect.php works as I can successfully login and register members.
Thank you
At my wits end with this white screen.
in PHP Coding Help
Posted
Thank you for the reply! I have tinkered a little:
I now see the link to add to the basket.
I am also having problem with a page showing every product:
The above sql is coming back with a result of 0 every time? I'm at a massive brick wall.