can some one please help me i am getting this error but i cant seem to figure out wat is wrong on line 3 everything looks fine
[PHP]<?php
$conn = mysql_connect(" localhost","roo t","")
or die (mysql_error()) ;
mysql_select_db ("Shop_Test",$c onn) or die (mysql_error()) ;
$display_block = "<h1> My Store </h1>";
$get_item = "SELECT c.id as Cat_ID, c.cat_title, SI.Item_title,
SI.Item_Price, SI.item_desc, SI.item_Image FROM Store_Items AS SI LEFT JOIN
Store_Categorie s AS c on c.id =SI.Cat_ID WHERE SI.Store_ID = $_GET[Item_ID]";
$get_item_resul ts = mysql_query ($get_item) or die (mysql_error()) ;
if (mysql_num_rows ($get_item_resu lts)<1) {
$display_block .= "<p><em>Inv alid item selection.</em></p>";
} else {
$cat_id = mysql_result ($get_item_resu lts,0,'Cat_ID') ;
$cat_title = strtoupper (stripslashes (
mysql_result ($get_item_resu lts,0, 'cat_title')));
$item_title = stripslashes (mysql_result ($get_item_resu lts,0,'Item_tit le'));
$item_price = mysql_result ($get_item_resu lts,0,'Item_Pri ce');
$item_desc = stripslashes(my sql_result ($get_item_resu lts,0, 'item_Desc'));
$item_image = mysql_result ($get_item_resu lts,0,'item_Ima ge');
$display_block .= "<p><strong><em > Youre Viewing:</em><br><a href=\"catalogu e.php?Cat_ID=$C at_ID\">$cat_ti tle</a>
> $item_title </strong></p>
<table cellpadding=3 cellspacing=3>
<tr>
<td valign=middle align=center><i mg src=\"$item_ima ge\"><td>
<td valign=middle>< p><strong>Descr iption:</strong><br>$ite m_desc</p>
<p><strong>Pric e:</strong> \$$item_price</p>";
$get_colours = "SELECT Item_Colour FROM Store_Item_Colo ur WHERE
Store_ID = $item_id ORDER BY Item_Colour";
$get_colour_res ults = mysql_result ($get_colours) or die (mysql_error()) ;
if (mysql_num_rows ($get_colour_re sults)>0) {
$display_block .= "<p><strong>Ava ilable Colours:</strong><br>";
while ($colours = mysql_fetch_arr ay($get_colour_ results)) {
$item_colour = $colours['Item_Colour'];
$display_block .= "item_colour<br >";
}
}
$get_sizes = "SELECT Item_size FROM store_item_size WHERE
Store_ID = $item_id ORDER BY Item_size";
$get_size_resul ts = mysql_query($ge t_sizes) or die (mysql_error()) ;
if (mysql_num_rows ($get_size_resu lts)>0) {
$display_block .= "<p><strong>Ava ilable Sizes:</strong></br>";
while ($sizes = mysql_fetch_arr ay ($get_size_resu lts)) {
$item_size = $sizes ['Item_size'];
$diplay_block .= "$item_size<br> ";
}
}
$display_block .= "
</td>
</tr>
</table>";
}
?>[/PHP]
Please help i have to do a project thanks in advance
[PHP]<?php
$conn = mysql_connect(" localhost","roo t","")
or die (mysql_error()) ;
mysql_select_db ("Shop_Test",$c onn) or die (mysql_error()) ;
$display_block = "<h1> My Store </h1>";
$get_item = "SELECT c.id as Cat_ID, c.cat_title, SI.Item_title,
SI.Item_Price, SI.item_desc, SI.item_Image FROM Store_Items AS SI LEFT JOIN
Store_Categorie s AS c on c.id =SI.Cat_ID WHERE SI.Store_ID = $_GET[Item_ID]";
$get_item_resul ts = mysql_query ($get_item) or die (mysql_error()) ;
if (mysql_num_rows ($get_item_resu lts)<1) {
$display_block .= "<p><em>Inv alid item selection.</em></p>";
} else {
$cat_id = mysql_result ($get_item_resu lts,0,'Cat_ID') ;
$cat_title = strtoupper (stripslashes (
mysql_result ($get_item_resu lts,0, 'cat_title')));
$item_title = stripslashes (mysql_result ($get_item_resu lts,0,'Item_tit le'));
$item_price = mysql_result ($get_item_resu lts,0,'Item_Pri ce');
$item_desc = stripslashes(my sql_result ($get_item_resu lts,0, 'item_Desc'));
$item_image = mysql_result ($get_item_resu lts,0,'item_Ima ge');
$display_block .= "<p><strong><em > Youre Viewing:</em><br><a href=\"catalogu e.php?Cat_ID=$C at_ID\">$cat_ti tle</a>
> $item_title </strong></p>
<table cellpadding=3 cellspacing=3>
<tr>
<td valign=middle align=center><i mg src=\"$item_ima ge\"><td>
<td valign=middle>< p><strong>Descr iption:</strong><br>$ite m_desc</p>
<p><strong>Pric e:</strong> \$$item_price</p>";
$get_colours = "SELECT Item_Colour FROM Store_Item_Colo ur WHERE
Store_ID = $item_id ORDER BY Item_Colour";
$get_colour_res ults = mysql_result ($get_colours) or die (mysql_error()) ;
if (mysql_num_rows ($get_colour_re sults)>0) {
$display_block .= "<p><strong>Ava ilable Colours:</strong><br>";
while ($colours = mysql_fetch_arr ay($get_colour_ results)) {
$item_colour = $colours['Item_Colour'];
$display_block .= "item_colour<br >";
}
}
$get_sizes = "SELECT Item_size FROM store_item_size WHERE
Store_ID = $item_id ORDER BY Item_size";
$get_size_resul ts = mysql_query($ge t_sizes) or die (mysql_error()) ;
if (mysql_num_rows ($get_size_resu lts)>0) {
$display_block .= "<p><strong>Ava ilable Sizes:</strong></br>";
while ($sizes = mysql_fetch_arr ay ($get_size_resu lts)) {
$item_size = $sizes ['Item_size'];
$diplay_block .= "$item_size<br> ";
}
}
$display_block .= "
</td>
</tr>
</table>";
}
?>[/PHP]
Please help i have to do a project thanks in advance
Comment