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...

$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"; }


It is on this website -

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