PHP MySQL Urgent Help Required Querying Database

PHP MySQL Urgent Help Required Querying Database

Closed - This job posting has been filled and work has been completed.

Job Description

I need someone to help me with a simple issue.

This is my code...

<?php
include_once"connection.php";
$sql = "SELECT * FROM affiliate WHERE username = 'test' ";
$query = mysqli_query($con, $sql);
if(mysqli_num_rows($query) > 0)

while ($row = mysqli_fetch_array($query)) {

$will = $row['williamhill'];

if ($williamhill === 'on') { $WILL = "hello"; } else { $WILL = "bye"; }

mysql_close($con);
?>


It is on this website - http://e-mediastudios.com/afftest/

I am trying to connect but have problems.

I will send connection.php file to person who can help.

Attached is index.php.

Open Attachment