I want to make an array sort of thing with PHP with my while loop so I can do variables like this $title[1] that would show the first piece of data from the while loop. This is the code I have got.
require("connect.php");
$query = mysql_query("SELECT * FROM `cms_news` LIMIT 3")or die(mysql_error());
while($row = mysql_fetch_assoc($query))
{
}
I know its only a basic while loop, but I honestly don't know how I would go about doing this.
print_r($row);
in the while loop, that should get you started – Dagon yesterday