|
$query = "SELECT id, name, url, FROM news WHERE id = '$ID'";
Hang on you've changed your code now, do you want to display all news or a specific item of news? if all news, if because you had FROM News, SQL is CaSe SenSiTive! So make sure your news table actually has a capital N or not.
If you want to get all the news, use this:
$query = "SELECT id, name, url, FROM News WHERE 1 ORDER BY id";
__________________
A lie gets halfway around the world before the truth has a chance to get its pants on. - Sir Winston Churchill
Please visit my sites: Please login or register to view this content. Registration is FREE | Please login or register to view this content. Registration is FREE
|