Jump to content

Ajuda mysqli_result


Recommended Posts

verifique se o argumento adicionado é valido.....


$con = @mysqli_connect("localhost", "root", "123456", "account", 3306);
if (mysqli_connect_errno()) {
    printf("Erro, não foi possível conectar ao servidor MySql: %s<br/>", mysqli_connect_error());
if ($query = mysqli_query($con, "SELECT name,level FROM player.player ORDER BY level desc, exp desc LIMIT 5;")) {
    while ($array = mysqli_fetch_object($query)) {
        printf("%s (lv.%d)<br/>", $array->name, $array->level);
    print "Erro, não foi possível fazer a consulta.<br/>";

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...