473,385 Members | 1,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Fatal error: Call to a member function on a non-object in

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("SELECT COUNT(userid) AS total FROM user WHERE refered=''");
$referralcount=$Db1->fetch_array($sql);


$includes[content]="
<script>
var extra='&".$url_variables."';
</script>

<script src=\"buy.js\"></script>

<font style=\"color: darkred; font-size:20px;\"><b><i>Advertising 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=\"buyspecial()\">

<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>Viewing Time</b></td>
<td valign=\"bottom\"><b>CPM</b></td>
<td></td>
<td></td>
</tr>
<tr bgcolor=\"#CDE6F6\">
<td><b>Class A</b></td>
<td align=\"center\">25 Seconds</td>
<td>$".($classcost[1]*1000)."</td>
<td>
<select name=\"classa\">
";
for($x=0; $x<count($cpacks); $x++) {
$temp_price=($cpacks[$x]*$classcost[1]);
$temp_credits=$cpacks[$x];
$includes[content].="<option value=\"$temp_credits\">$temp_credits Daily Unique Hits For $$temp_price";
}
$includes[content].="
</select>
</td>
<td><input type=\"button\" value=\"Buy Now!\" onclick=\"buylink(1)\"></td>
</tr>
<tr>
<td><b>Class B</b></td>
<td align=\"center\">20 Seconds</td>
<td>$".($classcost[2]*1000)."</td>
<td>
<select name=\"classb\">
";
for($x=0; $x<count($cpacks); $x++) {
$temp_price=($cpacks[$x]*$classcost[2]);
$temp_credits=$cpacks[$x];
$includes[content].="<option value=\"$temp_credits\">$temp_credits Daily Unique Hits For $$temp_price";
}
$includes[content].="
</select></td>
<td><input type=\"button\" value=\"Buy Now!\" onclick=\"buylink(2)\"></td>
</tr>
<tr bgcolor=\"#CDE6F6\">
<td><b>Class C</b></td>
<td align=\"center\">15 Seconds</td>
<td>$".($classcost[3]*1000)."</td>
<td>
<select name=\"classc\">
";
for($x=0; $x<count($cpacks); $x++) {
$temp_price=($cpacks[$x]*$classcost[3]);
$temp_credits=$cpacks[$x];
$includes[content].="<option value=\"$temp_credits\">$temp_credits Daily Unique Hits For $$temp_price";
}
$includes[content].="
</select></td>
<td><input type=\"button\" value=\"Buy Now!\" onclick=\"buylink(3)\"></td>
</tr>
<tr>
<td><b>Class D</b></td>
<td align=\"center\">10 Seconds</td>
<td>$".($classcost[4]*1000)."</td>
<td>
<select name=\"classd\">
";
for($x=0; $x<count($cpacks); $x++) {
$temp_price=($cpacks[$x]*$classcost[4]);
$temp_credits=$cpacks[$x];
$includes[content].="<option value=\"$temp_credits\">$temp_credits Daily Unique Hits For $$temp_price";
}
$includes[content].="
</select></td>
<td><input type=\"button\" value=\"Buy Now!\" onclick=\"buylink(4)\"></td>
</tr>
</table>
</form>

<br>

<form name=\"mcfform\" action=\"\" method=\"post\">
<font style=\"color: darkblue; font-size:20px;\"><b><i>MakoCashFlow 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=\"#CDE6F6\">
<td><b>Popup Hits</b></td>
<td>$".@($mcfhits*1000)."</td>
<td>
<select name=\"mcf\">
";
for($x=0; $x<count($mcfpacks); $x++) {
$temp_price=($mcfpacks[$x]*$mcfhits);
$temp_credits=$mcfpacks[$x];
$includes[content].="<option value=\"$temp_credits\">$temp_credits Hits For $$temp_price";
}
$includes[content].="
</select>
</td>
<td><input type=\"button\" value=\"Buy Now!\" onclick=\"buymcf()\"></td>
</tr>
</table>
</form>

<br>

<form name=\"bannerform\" 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=\"#CDE6F6\">
<td><b>468x60</b></td>
<td>$0.10</td>
<td>
<select name=\"banner468\">
";
for($x=0; $x<count($bpacks); $x++) {
$temp_price=($bpacks[$x]*$banner468);
$temp_credits=$bpacks[$x];
$includes[content].="<option value=\"$temp_credits\">$temp_credits Banner Impressions For $$temp_price";
}
$includes[content].="
</select>
</td>
<td><input type=\"button\" value=\"Buy Now!\" onclick=\"buybanner(468)\"></td>
</tr>
<tr>
<td><b>180x100</b></td>
<td>$0.10</td>
<td>
<select name=\"banner180\">
";
for($x=0; $x<count($bpacks); $x++) {
$temp_price=($bpacks[$x]*$banner180);
$temp_credits=$bpacks[$x];
$includes[content].="<option value=\"$temp_credits\">$temp_credits Banner Impressions For $$temp_price";
}
$includes[content].="
</select></td>
<td><input type=\"button\" value=\"Buy Now!\" onclick=\"buybanner(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=\"#CDE6F6\">
<td><b>Featured Ad</b></td>
<td>$0.25</td>
<td>
<select name=\"fad\">
";
for($x=0; $x<count($fpacks); $x++) {
$temp_price=($fpacks[$x]*$fad);
$temp_credits=$fpacks[$x];
$includes[content].="<option value=\"$temp_credits\">$temp_credits Link Impressions For $$temp_price";
}
$includes[content].="
</select>
</td>
<td><input type=\"button\" value=\"Buy Now!\" onclick=\"buyfad()\"></td>
</tr>
</table>
</form>

<br>

<form name=\"pointform\" 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=\"#CDE6F6\">
<td><b>Mako Points</b></td>
<td>$10</td>
<td>
<select name=\"points\">
";
for($x=0; $x<count($rppacks); $x++) {
$temp_price=($rppacks[$x]*$rp);
$temp_credits=$rppacks[$x];
$includes[content].="<option value=\"$temp_credits\">$temp_credits Mako Points For $$temp_price";
}
$includes[content].="
</select>
</td>
<td><input type=\"button\" value=\"Buy Now!\" onclick=\"buypoints()\"></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($referralcount[total]>=5," width=\"100%\"")."></td>
<td></td>
<td></td>
</tr>
<tr bgcolor=\"#CDE6F6\">
<td><b>Makolinks.com Referrals</b></td>
<td>".iif($referralcount[total]>=5,"
<select name=\"refcount\">","No Referrals Available To Buy")."
";
if($referralcount[total] >= 5) {
for($x=0; $x<count($rpacks); $x++) {
if($referralcount[total] >= $rpacks[$x]) {
$temp_price=($rpacks[$x]*$referralcost);
$temp_credits=$rpacks[$x];
$includes[content].="<option value=\"$temp_credits\">$temp_credits Referrals For $$temp_price";
}
}
}
$includes[content].="
</select>
</td>
<td>".iif($referralcount[total]>=5,"<input type=\"button\" value=\"Buy Now!\" onclick=\"buyrefs()\">","")."</td>
</tr>
</table>
</form>

<br>

<form name=\"entryform\" 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=\"#CDE6F6\">
<td><b>Contest Entries</b></td>
<td>
<select name=\"entries\">
";
for($x=0; $x<count($lpacks); $x++) {
$temp_price=($lpacks[$x]*$contestentry);
$temp_credits=$lpacks[$x];
$includes[content].="<option value=\"$temp_credits\">$temp_credits contest Entry For $$temp_price";
}
$includes[content].="
</select>
</td>
<td><input type=\"button\" value=\"Buy Now!\" onclick=\"buyentry()\"></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=\"#CDE6F6\">
<td><b>Featured Link</b></td>
<td>
<select name=\"fltime\">
";
for($x=0; $x<count($flpacks); $x++) {
$temp_price=($flpacks[$x]*$flinkcost);
$temp_credits=$flpacks[$x];
$includes[content].="<option value=\"$temp_credits\">$temp_credits Month Placement $$temp_price";
}
$includes[content].="
</select>
</td>
<td><input type=\"button\" value=\"Buy Now!\" onclick=\"buyflink()\"></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&ssPageName=L2\" target=\"_blank\"><img src=\"http://www.MakoLinks.com/pics/ebayad.PNG\" border=0></a>
<br>
<small><b><font color=\"darkgreen\">100% Fully Automated, Instant Transactions!</font></b></small>
</div>
";
?>
Aug 23 '07 #1
0 1614

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Daniel Hansen | last post by:
I am getting a "Fatal error: Call to undefined function: imagecreatefromjpeg() in..." error in one of my scripts, and after doing a bit of searching on the 'net I found various messages relating to...
3
by: PeterF | last post by:
Hello, what is wrong here? the purpose is to create an array of objects and then interate over it, calling some method from all of them. I get just the following at the marked line ("// FATAL...
4
by: gc | last post by:
I'm a PHP and MySQL newbie. I have a feeling a lot of you may have seen this before. I'm teaching myself PHP/MySQL and trying to setup a guestbook. I'm running latest versions of Apache, PHP and...
8
by: Tim Tyler | last post by:
I'm getting fatal errors when executing code - and my error handler is failing to trap them - so I get no stack backtrace :-( The error I am getting is: "Fatal error: Call to a member function...
2
by: dmitry.freitor | last post by:
Why would someone call a non-static provate member function from another non-static member function of the same class via the this pointer? Thanks. DF
7
by: Ook | last post by:
What am I doing wrong? This code gives a compile error: 'SortedList<T>::insert' : illegal call of non-static member function. I've tried several variations of this, but keep getting the same error....
4
by: Jesper Stocholm | last post by:
I have a recursive function that I would like to do a lot of recursive calls (preferebly 2^20 in total) The function is called as (with maxi = e.g. 100000) DoRecursion(0,maxi,bseed,sha); ...
6
by: Bill Rubin | last post by:
The following code snippet shows that VC++ 7.1 correctly compiles a static member function invocation from an Unrelated class, since this static member function is public. I expected to compile the...
12
by: mast2as | last post by:
Hi everyone... I have a TExceptionHandler class that is uses in the code to thow exceptions. Whenever an exception is thrown the TExceptionHander constructor takes an error code (int) as an...
2
by: Ian825 | last post by:
I need help writing a function for a program that is based upon the various operations of a matrix and I keep getting a "non-aggregate type" error. My guess is that I need to dereference my...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.