Jump to content

Really strange error. Any ideas?


e1seix

Recommended Posts

Parse error: syntax error, unexpected T_STRING in /home/dogfight/public_html/productDetails.php on line 29

 

this message keeps appearing for my code and i can't fathom exactly where my code is incorrect...

 

Line 29:

echo "<table style='width:100%'>";

 

am i really missing something here?

Link to comment
https://forums.phpfreaks.com/topic/68645-really-strange-error-any-ideas/
Share on other sites

$sku = $_GET['sku'];

 

$fetch=mysql_query("SELECT * FROM fragrances WHERE sku=$sku UNION SELECT * FROM skincare WHERE sku=$sku UNION SELECT * FROM shaving WHERE sku=$sku UNION SELECT * FROM bodycare WHERE sku=$sku UNION SELECT * FROM hairacre WHERE sku=$sku UNION SELECT * FROM suncare WHERE sku=$sku")or

die(mysql_error());")

 

while($row = mysql_fetch_array( $fetch )) {

 

echo $row[title].' | '.$row[brand].' - '.$row.' '.$row[type].' only £'.$row[£];

 

}

 

?>! DOGFIGHTUK Men's Grooming</title>

 

<link rel=\"stylesheet\" type=\"text/css\" href=\"/main.css\" />

</head>

<body>

 

<?php

 

echo "<table style='width:100%'>";

echo "<tr><td align='center' width='100%'>";

 

echo "<table class='body_table'>";

echo "<tr><td class='top_links' colspan='3'>";

 

include('http://www.dogfightuk.com/top_links.php');

 

echo "</td></tr>";

echo  "<tr><td class='date_row' colspan='3' valign='top'>";

 

there you go, some before and some after. it's the first time i've used the UNION function so i expect to come across a few errors on the way down. lol

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.