Hello all. I'm hoping that someone can help me solve this error. This is the error that I am getting.
Fatal error: Call to a member function on a non-object in /home/paytoo/public_html/prices.php on line 2
Below is the complete contents of the file.
<?
$sql=$Db1->query("SELEC T COUNT(userid) AS total FROM user WHERE refered=''");
$referralcount= $Db1->fetch_array($s ql);
$includes[content]="
<script>
var extra='&".$url_ variables."';
</script>
<script src=\"buy.js\"> </script>
<font style=\"color: darkred; font-size:20px;\"><b ><i>Advertisi ng Special</i></b></font><br>
<li>1,000 Class D Credits
<li>1,000 Popup Ad Hits
<li>250,000 Banner Credits
<li>50,000 Featured Ad Credits
<li>500 MakoPoints
<li><b>Save Over $50!</b>
<br>
<input type=\"button\" value=\"Buy Now For Only $15!\" onclick=\"buysp ecial()\">
<br>
<br>
<form name=\"linkform \" action=\"\" method=\"post\" >
<font style=\"color: darkblue; font-size:20px;\"><b ><i>Paid Links</i></b></font><br>
<table width=\"100%\">
<tr>
<td></td>
<td align=\"center\ "><b>Viewin g Time</b></td>
<td valign=\"bottom \"><b>CPM</b></td>
<td></td>
<td></td>
</tr>
<tr bgcolor=\"#CDE6 F6\">
<td><b>Class A</b></td>
<td align=\"center\ ">25 Seconds</td>
<td>$".($classc ost[1]*1000)."</td>
<td>
<select name=\"classa\" >
";
for($x=0; $x<count($cpack s); $x++) {
$temp_price=($c packs[$x]*$classcost[1]);
$temp_credits=$ cpacks[$x];
$includes[content].="<option value=\"$temp_c redits\">$temp_ credits Daily Unique Hits For $$temp_price";
}
$includes[content].="
</select>
</td>
<td><input type=\"button\" value=\"Buy Now!\" onclick=\"buyli nk(1)\"></td>
</tr>
<tr>
<td><b>Class B</b></td>
<td align=\"center\ ">20 Seconds</td>
<td>$".($classc ost[2]*1000)."</td>
<td>
<select name=\"classb\" >
";
for($x=0; $x<count($cpack s); $x++) {
$temp_price=($c packs[$x]*$classcost[2]);
$temp_credits=$ cpacks[$x];
$includes[content].="<option value=\"$temp_c redits\">$temp_ credits Daily Unique Hits For $$temp_price";
}
$includes[content].="
</select></td>
<td><input type=\"button\" value=\"Buy Now!\" onclick=\"buyli nk(2)\"></td>
</tr>
<tr bgcolor=\"#CDE6 F6\">
<td><b>Class C</b></td>
<td align=\"center\ ">15 Seconds</td>
<td>$".($classc ost[3]*1000)."</td>
<td>
<select name=\"classc\" >
";
for($x=0; $x<count($cpack s); $x++) {
$temp_price=($c packs[$x]*$classcost[3]);
$temp_credits=$ cpacks[$x];
$includes[content].="<option value=\"$temp_c redits\">$temp_ credits Daily Unique Hits For $$temp_price";
}
$includes[content].="
</select></td>
<td><input type=\"button\" value=\"Buy Now!\" onclick=\"buyli nk(3)\"></td>
</tr>
<tr>
<td><b>Class D</b></td>
<td align=\"center\ ">10 Seconds</td>
<td>$".($classc ost[4]*1000)."</td>
<td>
<select name=\"classd\" >
";
for($x=0; $x<count($cpack s); $x++) {
$temp_price=($c packs[$x]*$classcost[4]);
$temp_credits=$ cpacks[$x];
$includes[content].="<option value=\"$temp_c redits\">$temp_ credits Daily Unique Hits For $$temp_price";
}
$includes[content].="
</select></td>
<td><input type=\"button\" value=\"Buy Now!\" onclick=\"buyli nk(4)\"></td>
</tr>
</table>
</form>
<br>
<form name=\"mcfform\ " action=\"\" method=\"post\" >
<font style=\"color: darkblue; font-size:20px;\"><b ><i>MakoCashFlo w Popup Hits</i></b></font><br>
<table width=\"100%\">
<tr>
<td width=\"100%\"> </td>
<td valign=\"bottom \"><b>CPM</b></td>
<td></td>
<td></td>
</tr>
<tr bgcolor=\"#CDE6 F6\">
<td><b>Popup Hits</b></td>
<td>$".@($mcfhi ts*1000)."</td>
<td>
<select name=\"mcf\">
";
for($x=0; $x<count($mcfpa cks); $x++) {
$temp_price=($m cfpacks[$x]*$mcfhits);
$temp_credits=$ mcfpacks[$x];
$includes[content].="<option value=\"$temp_c redits\">$temp_ credits Hits For $$temp_price";
}
$includes[content].="
</select>
</td>
<td><input type=\"button\" value=\"Buy Now!\" onclick=\"buymc f()\"></td>
</tr>
</table>
</form>
<br>
<form name=\"bannerfo rm\" action=\"\" method=\"post\" >
<font style=\"color: darkblue; font-size:20px;\"><b ><i>Banners</i></b></font><br>
<table width=\"100%\">
<tr>
<td width=\"100%\"> </td>
<td valign=\"bottom \"><b>CPM</b></td>
<td></td>
<td></td>
</tr>
<tr bgcolor=\"#CDE6 F6\">
<td><b>468x60 </b></td>
<td>$0.10</td>
<td>
<select name=\"banner46 8\">
";
for($x=0; $x<count($bpack s); $x++) {
$temp_price=($b packs[$x]*$banner468);
$temp_credits=$ bpacks[$x];
$includes[content].="<option value=\"$temp_c redits\">$temp_ credits Banner Impressions For $$temp_price";
}
$includes[content].="
</select>
</td>
<td><input type=\"button\" value=\"Buy Now!\" onclick=\"buyba nner(468)\"></td>
</tr>
<tr>
<td><b>180x10 0</b></td>
<td>$0.10</td>
<td>
<select name=\"banner18 0\">
";
for($x=0; $x<count($bpack s); $x++) {
$temp_price=($b packs[$x]*$banner180);
$temp_credits=$ bpacks[$x];
$includes[content].="<option value=\"$temp_c redits\">$temp_ credits Banner Impressions For $$temp_price";
}
$includes[content].="
</select></td>
<td><input type=\"button\" value=\"Buy Now!\" onclick=\"buyba nner(180)\"></td>
</tr>
</table>
</form>
<br>
<form name=\"fadform\ " action=\"\" method=\"post\" >
<font style=\"color: darkblue; font-size:20px;\"><b ><i>Featured Ad</i></b></font><br>
<table width=\"100%\">
<tr>
<td width=\"100%\"> </td>
<td valign=\"bottom \"><b>CPM</b></td>
<td></td>
<td></td>
</tr>
<tr bgcolor=\"#CDE6 F6\">
<td><b>Featur ed Ad</b></td>
<td>$0.25</td>
<td>
<select name=\"fad\">
";
for($x=0; $x<count($fpack s); $x++) {
$temp_price=($f packs[$x]*$fad);
$temp_credits=$ fpacks[$x];
$includes[content].="<option value=\"$temp_c redits\">$temp_ credits Link Impressions For $$temp_price";
}
$includes[content].="
</select>
</td>
<td><input type=\"button\" value=\"Buy Now!\" onclick=\"buyfa d()\"></td>
</tr>
</table>
</form>
<br>
<form name=\"pointfor m\" action=\"\" method=\"post\" >
<font style=\"color: darkblue; font-size:20px;\"><b ><i>Mako Points</i></b></font><br>
<table width=\"100%\">
<tr>
<td width=\"100%\"> </td>
<td valign=\"bottom \"><b>CPM</b></td>
<td></td>
<td></td>
</tr>
<tr bgcolor=\"#CDE6 F6\">
<td><b>Mako Points</b></td>
<td>$10</td>
<td>
<select name=\"points\" >
";
for($x=0; $x<count($rppac ks); $x++) {
$temp_price=($r ppacks[$x]*$rp);
$temp_credits=$ rppacks[$x];
$includes[content].="<option value=\"$temp_c redits\">$temp_ credits Mako Points For $$temp_price";
}
$includes[content].="
</select>
</td>
<td><input type=\"button\" value=\"Buy Now!\" onclick=\"buypo ints()\"></td>
</tr>
</table>
</form>
<br>
<form name=\"refform\ " action=\"\" method=\"post\" >
<font style=\"color: darkblue; font-size:20px;\"><b ><i>Referrals </i></b></font><br>
<table width=\"100%\">
<tr>
<td".iif($refer ralcount[total]>=5," width=\"100%\"" )."></td>
<td></td>
<td></td>
</tr>
<tr bgcolor=\"#CDE6 F6\">
<td><b>Makolink s.com Referrals</b></td>
<td>".iif($refe rralcount[total]>=5,"
<select name=\"refcount \">","No Referrals Available To Buy")."
";
if($referralcou nt[total] >= 5) {
for($x=0; $x<count($rpack s); $x++) {
if($referralcou nt[total] >= $rpacks[$x]) {
$temp_price=($r packs[$x]*$referralcost) ;
$temp_credits=$ rpacks[$x];
$includes[content].="<option value=\"$temp_c redits\">$temp_ credits Referrals For $$temp_price";
}
}
}
$includes[content].="
</select>
</td>
<td>".iif($refe rralcount[total]>=5,"<input type=\"button\" value=\"Buy Now!\" onclick=\"buyre fs()\">","")."</td>
</tr>
</table>
</form>
<br>
<form name=\"entryfor m\" action=\"\" method=\"post\" >
<font style=\"color: darkblue; font-size:20px;\"><b ><i>Weekly contest For 500 Mako Points</i></b></font><br>
<table width=\"100%\">
<tr>
<td width=\"100%\"> </td>
<td></td>
<td></td>
</tr>
<tr bgcolor=\"#CDE6 F6\">
<td><b>Contes t Entries</b></td>
<td>
<select name=\"entries\ ">
";
for($x=0; $x<count($lpack s); $x++) {
$temp_price=($l packs[$x]*$contestentry) ;
$temp_credits=$ lpacks[$x];
$includes[content].="<option value=\"$temp_c redits\">$temp_ credits contest Entry For $$temp_price";
}
$includes[content].="
</select>
</td>
<td><input type=\"button\" value=\"Buy Now!\" onclick=\"buyen try()\"></td>
</tr>
</table>
</form>
<br>
<form name=\"flform\" action=\"\" method=\"post\" >
<font style=\"color: darkblue; font-size:20px;\"><b ><i>Featured Link</i></b></font><br>
<table width=\"100%\">
<tr>
<td width=\"100%\"> </td>
<td></td>
<td></td>
</tr>
<tr bgcolor=\"#CDE6 F6\">
<td><b>Featur ed Link</b></td>
<td>
<select name=\"fltime\" >
";
for($x=0; $x<count($flpac ks); $x++) {
$temp_price=($f lpacks[$x]*$flinkcost);
$temp_credits=$ flpacks[$x];
$includes[content].="<option value=\"$temp_c redits\">$temp_ credits Month Placement $$temp_price";
}
$includes[content].="
</select>
</td>
<td><input type=\"button\" value=\"Buy Now!\" onclick=\"buyfl ink()\"></td>
</tr>
</table>
</form>
<div align=\"center\ ">
<a href=\"https://www.e-gold.com/newacct/newaccount.asp? cid=619638\" target=\"_blank \"><img src=\"images/egold.gif\" border=0></a>
<a href=\"http://www.paypal.com/\" target=\"_blank \"><img src=\"images/paypal.gif\" border=\"0\" alt=\"I accept payment through PayPal!, the #1 online payment service!\"></a>
<br>
<a href=\"http://stores.ebay.com/id=69849980&ssP ageName=L2\" target=\"_blank \"><img src=\"http://www.MakoLinks.c om/pics/ebayad.PNG\" border=0></a>
<br>
<small><b><fo nt color=\"darkgre en\">100% Fully Automated, Instant Transactions!</font></b></small>
</div>
";
?>