Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.