Hey Guys,
i nearly new to php and i wanted to tackle something i wasn't ready for and i need a little help.
<?php
$iplocal = "localhost";
$ipintranet = "192.168.1.5";
$ippublic = "(externalip)"; //not telling
$serverscript = $_SERVER['SERVER_NAME'];
$mysqlurl = "blahblah"
// server check to see if the mysql is right
if ($serverscript==$iplocal)
{
$mysql = "$iplocal";
}
if ($serverscript==$ipintranet)
{
$mysql = "$ipintranet";
}
if ($serverscript==$ippublic)
{
$mysql = "$ippublic";
}
echo $mysql;
?>
i get a php syntax error, unexpected T_IF on line 8, i have no idea wat to do!!!! :eek:
Any help would be great!
Thanks,
Corza (coreybock)