php - Error header location with MariaDB -


i changed hosting need passing mariadb (php5.6), before had innodb (php5.6).

the code in previous hosting worked perfectly, why in host no?

code:

<?php $risultato = mysql_query("select voto serveryoutube", $connessione); if($mybb->user['uid'] > 0) { if(mysql_query(" update serveryoutube set voto = voto + 1 id = '$id' , not exists (select * serveryoutube_vote uid = '$uid' , date_format(lastvote,'%m%d%y') = date_format(now(),'%m%d%y')); ")) {     header("location: ../home.php"); } else {     echo "error: " . mysql_error(); }     }  else { echo 'error'; } mysql_close($con); ?> 

the query work , set +1 voto see white page , not redirect /home.php


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -