while($row = mysql_fetch_array($sql_blabs))


mysql_fetch_array(parameter)

PLEASE i need another method OF retrieving data from MySQL database other than


THIS IS THE FUNCTION THAT'S THROWING THE ERROR,
IT KEEPS SAYING THAT'S ITS A NOT A VALID PHP FUNCTION

This is not a code snippet, just a question.

What error does it throw?
Please post some more of your code, just having an error doesn't mean you should change the MySQL functions you use.

Hi

We have to use mysql_query first and then we have place mysql_fetch_array syntax.

If you are intrested pls try this code

$l="select * from latest order by latest_id desc";
$res1=mysql_query($l,$conn);
while($row1=mysql_fetch_array($res1))
{
   echo $row1["your field"];
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.