PHP script for SQL query

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”

Profile image krishnaitworks, India.

Public Clarification Board

No messages yet.

How to get started with contests

  • Post your contest

    Post Your Contest Quick and easy

  • Get tons of entries

    Get Tons of Entries From around the world

  • Award the best entry

    Award the best entry Download the files - Easy!

Post a Contest Now or Join us Today!