PHP script for SQL query
- Status: Closed
- Prize: ₹3000
- Entries Received: 18
- Winner: abdullahhshahid3
Contest Brief
require small script modification below to display SQL query result on webpage
Below script does not generate error but does not display results
========
<?php
$mysqli = new mysqli("localhost","ababab","dbdb2,"asndj");
// Check connection
if ($mysqli -> connect_errno) {
echo "Failed to connect to MySQL: " . $mysqli -> connect_error;
exit();
// Perform query
$order_id=mysqli_result(mysqli_query($connection,"Select order_id from `order` limit 5",0,'Order ID'));
print $order_id;
}
$mysqli -> close();
?>
==========
Recommended Skills
Employer Feedback
“All is good but freelancer is poor on communication”
krishnaitworks, India.
Public Clarification Board
How to get started with contests
-
Post Your Contest Quick and easy
-
Get Tons of Entries From around the world
-
Award the best entry Download the files - Easy!