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){ echo $results; header("Location:../CustomerRecords.php"); }else{ echo "No Results, Please try another query"; } }