PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
create table users( id_user int not null primary key auto_increment, username varchar(32), password varchar(32) ); insert into users(username, password) values ('admin', 'admin')
Copy Clear
Copy Format Clear
<?php use Carbon\Carbon; $now = Carbon::now()->format('d/m/Y'); printf("Today is %s\nCurrent PHP version: %s \n\n", $now, phpversion()); $query = 'select username from users where username="admin"'; // Run query using mysqli $result=$mysqli->query($query); $row=mysqli_fetch_array($result); printf("ass"); if ($row>1) then printf ("norm"); else printf ("damn"); ?>
Show:  
Copy Clear