hello i made a php script and was wondering how i could run the following on the interface of cpanel what it does is it check to see if the domain name exists in my whmcs if so then displays links if not then the account is not owned by me and must be owned by a reseller and will not show!
<?PHP
$whmcsconnect = mysql_connect("localhost","fruity_root","kaydenhill_1992") or die(mysql_error());
if ($whmcsconnect)
{
mysql_select_db("fruity_billing",$whmcsconnect) or die(mysql_error());
$whmcsquery = "SELECT * COUNT(domain) FROM tblhosting WHERE domain='ryantest.fruitywebhost.com'";
$whmcsresult = mysql_query($whmcsquery) or die(mysql_error());
if (mysql_affected_rows()==1)
{
?>
<cpanel Branding="include(whmcsgold_cpanel.html)">
<?PHP
}
}
?>
How do i get this to run?
<?PHP
$whmcsconnect = mysql_connect("localhost","fruity_root","kaydenhill_1992") or die(mysql_error());
if ($whmcsconnect)
{
mysql_select_db("fruity_billing",$whmcsconnect) or die(mysql_error());
$whmcsquery = "SELECT * COUNT(domain) FROM tblhosting WHERE domain='ryantest.fruitywebhost.com'";
$whmcsresult = mysql_query($whmcsquery) or die(mysql_error());
if (mysql_affected_rows()==1)
{
?>
<cpanel Branding="include(whmcsgold_cpanel.html)">
<?PHP
}
}
?>
How do i get this to run?