Ok so here's the code:
The problem is that instead of displaying the data it display "SELECT challenger FROM battle".
I'm quite new to MySQL so I dont know what to do.
Code:
<?php
// The MySQL info, edit these
$host = "myhost"; // the database location. if you dont know it, leave it as it is
$dbuser = "myuser"; // the database username
$dbpass = "mypass"; // the databases user's pass
$dbname = "voting"; // the name of the database
// The actual connection. DO NOT EDIT THESE
mysql_connect("$host","$dbuser","$dbpass"); // Using the variables stated above
$display = ("SELECT challenger FROM battle");
echo $display;
?>
The problem is that instead of displaying the data it display "SELECT challenger FROM battle".
I'm quite new to MySQL so I dont know what to do.





