r/PHPhelp • u/youngjeeez • Nov 01 '17
Php code to call sql statements
Could someone help me with the pHp coffee to call SQL statements from a database
Thanks in advance
9
Upvotes
r/PHPhelp • u/youngjeeez • Nov 01 '17
Could someone help me with the pHp coffee to call SQL statements from a database
Thanks in advance
1
u/youngjeeez Nov 01 '17
<?php include '../Connection.php'; if ($_SERVER["REQUEST_METHOD"] == "POST") { $results = mysqli_query($con, $_POST['Search']); if($results)while($row = mysqli_fetch_assoc($results)) { echo $row; }else{ echo "No Results, Please try another query"; } } that returns an error mysqli_query() empty