Hello, does anyone know what this error means?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
FlightFanatic
Forum Newbie
Posts: 11
Joined: Sun Feb 15, 2009 9:54 pm

Hello, does anyone know what this error means?

Post by FlightFanatic »

Hi I am getting this error on a website that I'm making... does anyone know what it means, or how to fix it? Thanks,

Here is the code for that page:

Code: Select all

<?
 
$areacode = $_GET["areacode"];
$phonenum = $_GET["phonenum"];
$provider = $_GET["provider"];
 
include ('providerinfo.php');
 
$num = $areacode . $phonenum . $to;
 
echo ("this is what it got $num");
 
//This is the MySQL Information
$username="**";
$password="**********";
$database="*****";
 
//This tells to connect to the MySQL Database, via the provided information above
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
 
//The query is to insert data into the "Info" table
$query = "INSERT INTO `txtusers` (`mobile`) VALUES ('$num')";
//$result = mysql_query($query);
mysql_close();
 
?>
-FlightFanatic
Attachments
error.JPG
error.JPG (11.33 KiB) Viewed 562 times
Last edited by Benjamin on Sun May 03, 2009 5:21 pm, edited 1 time in total.
Reason: Changed code type from text to php.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Hello, does anyone know what this error means?

Post by requinix »

It would help if you posted the code for the file with the problem.
FlightFanatic
Forum Newbie
Posts: 11
Joined: Sun Feb 15, 2009 9:54 pm

Re: Hello, does anyone know what this error means?

Post by FlightFanatic »

Oh, that was the wrong file? Sorry about that, here is the right file :wink:

Code: Select all

<?
 
if( $provider == "Alltel" ) {
 
$to = "$num@message.Alltel.com";
$subject = "CONFIRMATION";
$body = "$confirmmessage";
 
if (mail($to, $subject, $body)) {
include ('providerpage.php');
}
 
}
 
if( $provider == "AT&T" ) {
 
$to = "$num@txt.att.net";
$subject = "CONFIRMATION";
$body = "$confirmmessage";
 
if (mail($to, $subject, $body)) {
include ('providerpage.php');
}
 
}
 
if( $provider == "Cingular" ) {
 
$to = "$num@cingularme.com ";
$subject = "CONFIRMATION";
$body = "$confirmmessage";
 
if (mail($to, $subject, $body)) {
include ('providerpage.php');
}
 
}
 
if( $provider == "Nextel" ) {
 
$to = "$num@messaging.nextel.com  ";
$subject = "CONFIRMATION";
$body = "$confirmmessage";
 
if (mail($to, $subject, $body)) {
include ('providerpage.php');
}
 
}
 
if( $provider == "Sprint" ) {
 
$to = "$num@messaging.sprintpcs.com ";
$subject = "CONFIRMATION";
$body = "$confirmmessage";
 
if (mail($to, $subject, $body)) {
include ('providerpage.php');
}
 
}
 
if( $provider == "SunCom" ) {
 
$to = "$num@tms.suncom.com ";
$subject = "CONFIRMATION";
$body = "$confirmmessage";
 
if (mail($to, $subject, $body)) {
include ('providerpage.php');
}
 
}
 
if( $provider == "T-Mobile" ) {
 
$to = "$num@tmomail.ne";
$subject = "CONFIRMATION";
$body = "$confirmmessage";
 
if (mail($to, $subject, $body)) {
include ('providerpage.php');
}
 
}
 
if( $provider == "Verizon" ) {
 
$to = "$num@vtext.com";
$subject = "CONFIRMATION";
$body = "$confirmmessage";
 
if (mail($to, $subject, $body)) {
include ('providerpage.php');
}
 
}
 
?>
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Hello, does anyone know what this error means?

Post by requinix »

Nope. That's not it either.

The right file has a call to mysql_numrows in it.
FlightFanatic
Forum Newbie
Posts: 11
Joined: Sun Feb 15, 2009 9:54 pm

Re: Hello, does anyone know what this error means?

Post by FlightFanatic »

hmm... I just checked again, and that is the right file... :? Does it have to have a call for mysql_numrows in it?
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Hello, does anyone know what this error means?

Post by requinix »

FlightFanatic wrote:hmm... I just checked again, and that is the right file... :? Does it have to have a call for mysql_numrows in it?
You tell me. *I* don't see it.
Post Reply