Hello,
What is wrong with this code?
<?php
$link = mysql_connect('localhost', 'root', 'geheim');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_select_db("ebay");
$query = "SELECT * FROM Auctions";
$result = mysql_query($query) or die(mysql_error());
$records = array();
while($row = mysql_fetch_array($result, MYSQL_ASSOC))
{
$records[] = $row;
}
foreach($records as $row) {
echo "<table border=\"1\">";
echo "<tr>";
echo '<td><a href="view_record.php?num=' . {$row['ARTICLE_NO']} . {$row['ARTICLE_NAME']} . {$row['SUBTITLE']} . {$row['CURRENT_BID']} . {$row['START_PRICE']} . {$row['BID_COUNT']} . {$row['QUANT_TOTAL']} . {$row['QUANT_SOLD']} . {$row['STARTS']} . {$row['ENDS']} . {$row['ORIGIN_END']} . {$row['SELLER_ID']} . {$row['BEST_BIDDER_ID']} . {$row['FINISHED']} . {$row['WATCH']} . {$row['BUYITNOW_PRICE']} . {$row['PIC_URL']} . {$row['PRIVATE_AUCTION']} . {$row['AUCTION_TYPE']} . {$row['INSERT_DATE']} . {$row['UPDATE_DATE']} . {$row['CAT_1_ID']} . {$row['CAT_2_ID']} . {$row['ARTICLE_DESC']} . {$row['DESC_TEXTONLY']} . {$row['COUNTRYCODE']} . {$row['LOCATION']} . {$row['CONDITIONS']} . {$row['REVISED']} . {$row['PAYPAL_ACCEPT']} . {$row['PRE_TERMINATED']} . {$row['SHIPPING_TO']} . {$row['FEE_INSERTION']} . {$row['FEE_FINAL']} . {$row['FEE_LISTING']} . {$row['PIC_XXL']} . {$row['PIC_DIASHOW']} . {$row['PIC_COUNT']} . {$row['ITEM_SITE_ID']} . '</a></td>'; echo "<td>" . $row['SUBTITLE'] . "</td>"; echo "</tr>";
echo "</table>";
}
mysql_close($link);
?>
I get unexpected { on line 27
edit: attached all code