Posts by João victor • 13 points
2 posts
-
-1
votes1
answer39
viewsQ: How do I print data by data in sql?(selects all data, but only prints one by one in array format)!
$sql = "SELECT * FROM perguntas ORDER BY id_pergunta"; $execsql = mysqli_query($conn, $sql) or die("Erro"); while($row = mysqli_fetch_array($execsql)){ # code... …
-
-1
votes2
answers67
viewsQ: How do I get records from my database in ascending order(of id), but I want it to take one by one
<?php $conn = mysqli_connect('localhost', 'root', ''); if($conn){ $Selectdb = mysqli_select_db($conn, 'quiz'); } $sql = "SELECT * FROM perguntas ORDER BY…