PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
create table if not exists test ( name varchar(200) not null ); insert into test (name) values ('test'), ('testelem'), ('stelem'), ('vala');
Copy Clear
Copy Format Clear
<?php $query = "SELECT name from test where name like " . mysqli_real_escape_string($mysqli, '%st%'); $result = $mysqli->query($query); var_dump($result->fetch_all());
Show:  
Copy Clear