473,799 Members | 3,025 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

1 New Member
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>
";
?>
Aug 23 '07 #1
0 1632

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

Similar topics

5
16540
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 a failure to have the GD library installed. However, my phpinfo() reports (in the Apache GD section): GD Support enabled GD Version bundled (2.0 compatible) GIF Read Support enabled PNG Support enabled
3
2449
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 ERROR"): Fatal error: Call to a member function on a non-object See the code:
4
15344
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 MySql on WIN 2000. PHP is installed from the zip file. When serving php docs (code snippets below) I get the messages: "Fatal error: Call to undefined function mysql_connect() " "Fatal error: Call to undefined function mysql_pconnect() "
8
9997
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 fetchRow() on a non-object." What are the available options here? Am I supposed to check I have a real object whenever I perform
2
2425
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
32102
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. template <typename T> class SortedList { public: void insert( T item); // Write this
4
3855
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); And the total code is static void Main(string args)
6
4412
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 same invocation from a DistantlyRelated class. What actually happened was that the compiler produced: error C2247: 'A::function' not accessible because 'CloselyRelated' uses 'private' to inherit from 'A' I'm guessing that the above compiler...
12
2539
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 argument. I was hoping to create a map<int, const char*that would be used in the showError member function of the TExceptionHandler class where the key (int) would be the error code and const char* the message printed out to the console. My question...
2
6124
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 pointers, but I'm not sure. Please help. The code: void equate(matrix *A, matrix *B) { int i, j; assert(A.row_dim == B.col_dim && A.col_dim == B.col_dim); for(i=0; i < A.row_dim; i++) for(j=0; j < A.col_dim; j++)
0
9688
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9546
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10491
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10247
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9079
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5593
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4146
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2941
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.