Page 1 of 1

Hello, does anyone know what this error means?

Posted: Sun May 03, 2009 4:52 pm
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

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

Posted: Sun May 03, 2009 5:28 pm
by requinix
It would help if you posted the code for the file with the problem.

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

Posted: Sun May 03, 2009 6:38 pm
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');
}
 
}
 
?>

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

Posted: Sun May 03, 2009 7:33 pm
by requinix
Nope. That's not it either.

The right file has a call to mysql_numrows in it.

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

Posted: Sun May 03, 2009 8:32 pm
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?

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

Posted: Sun May 03, 2009 8:58 pm
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.