jaffyy
01-13-2008, 07:45 PM
I get the following error when i try to get the data from my SMF forum Database
Parse error: parse error, expecting `','' or `';'' in D:\Program Files\xampp\htdocs\posts.php on line 10
And the script is:
<?php
include 'config.php';
$query = "SELECT subject FROM smf_messages LIMIT 8 BY DESC"."SELECT ID_MSG FROM smf_messages LIMIT 8 BY
DESC"."SELECT ID_TOPIC FROM smf_messages LIMIT 8 BY DESC";
$result = mysql_query($query);
while($row = mysql_fetch_array($result, MYSQL_ASSOC))
{
echo "<font color=grey size=2>><a
href="http://l2rt.coolc.biz/forum/index.php/topic,{$row['ID_TOPIC']}.msg{$row['ID_MSG']}.html#msg{$row['subject']}">
{$row['subject']}</a></font><br>";
}
include 'close.php';
?>
I could not find the problem.. any help is appercited thanks!
Parse error: parse error, expecting `','' or `';'' in D:\Program Files\xampp\htdocs\posts.php on line 10
And the script is:
<?php
include 'config.php';
$query = "SELECT subject FROM smf_messages LIMIT 8 BY DESC"."SELECT ID_MSG FROM smf_messages LIMIT 8 BY
DESC"."SELECT ID_TOPIC FROM smf_messages LIMIT 8 BY DESC";
$result = mysql_query($query);
while($row = mysql_fetch_array($result, MYSQL_ASSOC))
{
echo "<font color=grey size=2>><a
href="http://l2rt.coolc.biz/forum/index.php/topic,{$row['ID_TOPIC']}.msg{$row['ID_MSG']}.html#msg{$row['subject']}">
{$row['subject']}</a></font><br>";
}
include 'close.php';
?>
I could not find the problem.. any help is appercited thanks!