I am writing a script which calls for images to be called from a dir but I get a parse error when trying to access the page. Listed below.
Parse error: parse error in c:\easyphp1-8\www\myrunuo\myrunuo.inc.php on line 7
<?php
// Edit your database settings:
$SQLhost = "localhost";
$SQLport = "3306";
$SQLuser = "xxxxxx;
$SQLpass = "xxxxxx";
$SQLdb = "xxxxxx";
$mulpath = "files/";
$validhosts = "http://127.0.0.1/";
// Edit to control number of lines of data per page:
$status_perpage = 30;
$players_perpage = 20;
$guilds_perpage = 20;
// *** End of configuration options ***
$skillnames = array("Alchemy","Anatomy","Animal Lore","Item ID","Arms Lore","Parrying");
function sql_connect()
{
global $SQLhost, $SQLport, $SQLdb, $SQLuser, $SQLpass;
if ($SQLport != "")
$link = @mysql_connect("$SQLhost:$SQLport","$SQLuser","$SQLpass");
else
$link = @mysql_connect("$SQLhost","$SQLuser","$SQLpass");
if (!$link) {
echo "Database access error ".mysql_errno().": ".mysql_error()."\n";
die();
}
$result = mysql_select_db("$SQLdb");
if (!$result) {
echo "Error ".mysql_errno($link)." selecting database '$SQLdb': ".mysql_error($link)."\n";
die();
}
return $link;
}
function sql_query($link, $query)
{
global $SQLhost, $SQLport, $SQLdb, $SQLuser, $SQLpass;
$result = mysql_query("$query", $link);
if (!$result) {
echo "Error ".mysql_errno($link).": ".mysql_error($link)."\n";
die();
}
return $result;
}
function check_get(&$store, $val)
{
$magic = get_magic_quotes_gpc();
if (isset($_POST["$val"])) {
if ($magic)
$store = stripslashes($_POST["$val"]);
else
$store = $_POST["$val"];
}
else if (isset($_GET["$val"])) {
if ($magic)
$store = stripslashes($_GET["$val"]);
else
$store = $_GET["$val"];
}
}
?>