this is the line thats coming up with the error at
http://www.blutipdvd.co.uk/index.php
$sql= "SELECT name, longdescription, price FROM products WHERE ID = $ID";
can you see anything wrong with this?
i cant wait to get finally understand it all its really annoying me
cheers
simon
CODE FROM longdescription.php
<?php include "vsadmin/db_conn_open.php";
$ID = $_GET['ID']
$sql= "SELECT name, longdescription, price FROM products WHERE ID = $ID";
$result=mysql_query($query);
$num=mysql_num_rows($result);
mysql_close();
?>
CODE FROM MAIN PAGE INDEX.PHP
<script language="javascript">
function longdescription(ID) {
url = 'longprod.php?id='+ID;
window.open(url,'welcome','width=400,height=400');
}
</script>
</head>
<body bgcolor="#CCCCCC" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="766" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" rowspan="2" bgcolor="#FFFF00" class="unnamed1"><img src="images/logo.gif" alt="Welcome to our website" width="300" height="80"></td>
<td width="29%" bgcolor="#FFFF00"><div align="center" class="freedelivery">
<p>Free Delivery on all orders<br>
</p>
</div></td>
</tr>
<tr>
<td align="right" valign="bottom" bgcolor="#FFFF00"><form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd3" value="_cart">
<input type="hidden" name="business3" value="orders@bestblanks.co.uk">
<input type="image" src="http://www.bestblanks.co.uk/images/viewcart.gif" border="0" name="submit3" alt="BlueTipDVD.co.uk - view cart">
<input type="hidden" name="display" value="1">
</form></td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="3"><div align="center"><font color="#CCCCCC" size="2" face="Arial, Helvetica, sans-serif"><img src="images/bar.gif" width="766" height="16"></font></div>
<div align="center"></div></td>
</tr>
<tr>
<td width="31%" align="center" valign="middle" bgcolor="#FFFFFF"><p><font color="#666666" size="2" face="Arial, Helvetica, sans-serif">Welcom
message........................<br>
............................................... </font></p></td>
<td colspan="2" bgcolor="#FFFFFF"><div align="center"><font color="#666666" size="2" face="Arial, Helvetica, sans-serif">All
prices are incluive of VAT and postage costs so there are no hidden costs</font></div></td>
</tr>
</table>
<table width="766" border="0" align="center" cellpadding="1" cellspacing="1">
<tr bgcolor="#FFFFFF">
<td width="623"><table width="100%" border="1" align="center" bgcolor="#FFFFFF">
<?php include "vsadmin/db_conn_open.php";
$query="SELECT * FROM products";
$result=mysql_query($query);
$num=mysql_num_rows($result);
mysql_close();
$i=0;
while ($i < $num) {
$ID=mysql_result($result,$i,"ID");
$name=mysql_result($result,$i,"name");
$price=mysql_result($result,$i,"price");
$photo=mysql_result($result,$i,"photo");
$longdescription=mysql_result($result,$i,"longdescription");
?>