2
Well, I gave a SELECT, to pull my data, only I wanted to do the following: If $category is 1, it would be called World, and if $category equals 2, it would be called Moon, how can I do that?
Code:
<?php
$conect = mysql_query("SELECT * FROM news ORDER BY ID DESC") or die(mysql_error());
?>
Pulling on the SELECT:
<?php echo $conect['categoria']; ?>
It’s not very clear what you want, you want to print with the
echo
"World" or "Moon"?– KaduAmaral
Doug click on edit just below your question and add more details than you want.
– KaduAmaral