Quote:
Originally Posted by indhuma
Code: ( text )
$sqlquery2="select * from news where category like '%thoughts%'"; $queryresult2 = mysql_query($sqlquery2) or die(mysql_error());
|
Also, do you need all (*) of your information? You could replace the above by:
Code: ( text )
$queryresult = mysql_query (
SELECT day, category, title, article
FROM news
WHERE category = '$category')
or die(mysql_error());
This is probably more efficient I believe. Also, you can use some MySQL coding like I have done. I have capitals for SQL commands and then space it out appropriately for ease of reading.