Help in sintax error
Posted: Wed Sep 21, 2011 9:15 pm
Hello I am new in this Forum and I am begginner in PHP, I just followed a web tutorial about php and dreamweaver, I found a
error sintax in the followed code, I dont to know, what is the mistake, if somebody can help, I will appreciate.
this is the lines of code,
-----------------------------------------------------------------------------------------------------------------------
$query_getdisplay ="SELECT news.title, news.blog_entry, DATE_FORMAT(news.updated, '%M %e, %Y')
AS formatted FROM newsORDER BY news.updated DESC LIMIT 2";
)
$getdisplay = mysql_query($query_getdisplay, $check_mag) or die(mysql_error());
$row_getdisplay = mysql_fetch_assoc($getdisplay);
$totalRows_getdisplay = mysql_num_rows($getdisplay);
------------------------------------------------------
the sintax error, appear in the line: AS formatted FROM newsORDER BY news.update DESC LIMIT 2" ';
Thanks for any help.
Petite
error sintax in the followed code, I dont to know, what is the mistake, if somebody can help, I will appreciate.
this is the lines of code,
-----------------------------------------------------------------------------------------------------------------------
$query_getdisplay ="SELECT news.title, news.blog_entry, DATE_FORMAT(news.updated, '%M %e, %Y')
AS formatted FROM newsORDER BY news.updated DESC LIMIT 2";
)
$getdisplay = mysql_query($query_getdisplay, $check_mag) or die(mysql_error());
$row_getdisplay = mysql_fetch_assoc($getdisplay);
$totalRows_getdisplay = mysql_num_rows($getdisplay);
------------------------------------------------------
the sintax error, appear in the line: AS formatted FROM newsORDER BY news.update DESC LIMIT 2" ';
Thanks for any help.
Petite