6
I’m having a simple problem when it comes time to take a dice from a table..
The mistake is
Warning: mysqli_fetch_assoc() expects Parameter 1 to be mysqli_result, Boolean Given in
Code:
$sql = mysqli_query($conexao, "SELECT diasvip FROM login WHERE userid = ".$_POST['userid']."");
while($exibe = mysqli_fetch_assoc($sql)){
echo "<div class='alert alert-success' role='alert'>Dias Vip do Usuário: ".$exibe['diasvip']."</div>";
}
mysqli_close($conexao);
If I take those " it leaves the entire remainder of the code inexecutavel mano lolz. Just check your codebox, the bottom part gets the color red without the "
– GGirotto
@Guilherme See if it works now. :)
– stderr
It worked perfectly! Thanks bro S2
– GGirotto
@Guilherme If it worked then, mark the answer as accepted, click on the mark just below the score, this helps future visitors with similar problems to know which answer worked for you. =)
– stderr
I liked this black chicken avatar, tribal style. I just didn’t get what the Transformers logo is in the middle. Is it from any of the movies? I only watched the 1st (then delete the comment)
– Bacco
@Bacco Difficult to have seen only the 1st =) this is the logo of the Decepticons.
– stderr
Then the "logo" of the Icons I know (the 1st "long" drawing of the Transformers I saw in the cinema, I’m getting old), I didn’t know this tribal thing around.
– Bacco
@Bacco A imagination is the limit. the/
– stderr
In fact, in the English version of the film, Galvatron’s voice is from Leonard Nimoy
– Bacco
@Bacco I did not know this fact no.. researching further on this, he also made the voice of Sentinel in the Transformers: The Dark Side of the Moon.
– stderr