I've made a Admin page for a site and when I uploaded it on the server I discovered that the PHP version is 5.2 and there's no way I can upgrade the server always present me error in the mysql_fetch_array()
function, I would like to know if it has an equivalent function for php 5.2 and if the PDO could solve my problem?
Here's the code I've made:
$selecao = mysql_query("SELECT * FROM nome_table WHERE nivel = 'Cliente'
ORDER BY nome_contato");
while ($selecao_dados = mysql_fetch_array($selecao)) {
echo $id = base64_encode($selecao_dados['id_user']);
}
The error: