Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <pre><code>&lt;?php //This page display a topic include('admin/variable.php'); include('home.php'); if(isset($_GET['id'])) { $dn1 = mysql_query('select c.id, c.name, c.description, c.price, c.quantity, c.itemID, c.imgName, c.parent, c.position, (select count(c.id) from categories as c where c.parent=c.id) as categories, (select count(c.id) from categories as c where c.parent=c.id and c.id!=0) as replies from categories as c group by c.id order by c.position asc'); if($dn1 === false){ die(mysql_error()); } while($dnn1 = mysql_fetch_array($dn1)) { $parent = $dnn1['parent']; if($_GET['id'] == $parent){ ?&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt; &lt;link href="require/style.css" rel="stylesheet" title="Style" /&gt; &lt;title&gt;&lt;?php echo htmlentities($dnn1['name'], ENT_QUOTES, 'UTF-8'); ?&gt; - &lt;?php echo htmlentities($dnn1['itemID'], ENT_QUOTES, 'UTF-8'); ?&gt; - KB Computers&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;div class="Content"&gt; &lt;div style="background:white; height:800px;"&gt; &lt;div id="shopNav"&gt; &lt;ul&gt; &lt;li class="end"&gt;&lt;a href=""&gt;Shop&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=""&gt;Catagories&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=""&gt;New Products&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=""&gt;My Account&lt;/a&gt;&lt;/li&gt; &lt;li class="end2"&gt;&lt;a href=""&gt;Checkout&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;div id="thing"&gt; &lt;table&gt;&lt;h1&gt;&lt;?php echo $dnn1['name']; ?&gt;&lt;/h1&gt; &lt;tr&gt; &lt;th&gt;&lt;?php echo '&lt;img src="image/' . $dnn1['imgName'].'" alt="' . $dnn1['imgName']. '" width="128" height="128"'; ?&gt;&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th&gt;&lt;?php echo $dnn1['price']; ?&gt;&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th class="tableDesc"&gt; &lt;?php echo $dnn1['description']; ?&gt;&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th&gt;&lt;?php echo $dnn1['itemID']; ?&gt;&lt;/th&gt; &lt;/tr&gt; &lt;?php if(isset($_SEESION['username']) and $_SESSION['username'] == $admin){?&gt; &lt;tr&gt; &lt;a href="edit_product.php?id=&lt;?php echo $id; ?&gt;&amp;id2=&lt;?php echo $dnn1['itemID']; ?&gt;"&gt;&lt;img src="&lt;?php echo $design; ?&gt;/images/edic.png" alt="Edit" /&gt;&lt;/a&gt;&gt; &lt;/tr&gt; &lt;?php } ?&gt; &lt;tr&gt; &lt;th&gt; &lt;/th&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/div&gt; &lt;?php include("require/rightBar.html"); ?&gt;&lt;/div&gt;&lt;?php include("require/footer.html"); } } }else{echo 'That product doesnt exist!';} ?&gt; &lt;/div&gt; &lt;/body&gt; </code></pre> <p></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload