Hi! Could we please enable some services and cookies to improve your experience and our website?

PHPize Online / SQLize Online  /  SQLtest Online

A A A
Login    Share code      Blog   FAQ

Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code

Copy Format Clear

Stuck with a problem? Got Error? Ask AI support!

Copy Clear
Copy Format Clear
<?php $query2="SELECT 1 UserID, 2Username, 3 Userpass, 4 Contribution"; $results2 = mysqli_query($mysqli,$query2); if(mysqli_num_rows($results2)>0) { while($row=mysqli_fetch_array($results2)) { echo "Sucsessfully logged in as: ". $row["Username"]." Contribution: ". $row["Contribution"]. $row["UserID"]; } }
Copy Clear