I have been banging my head for quite a number of hours on this.........I am getting the below error with firefox 7 or chrome but NOT with IE
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/unlockth/public_html/motorola/insertmoto.php on line 35
Here is the code.......pls can anyone help me?
<?php
$userip = ($_SERVER['X_FORWARDED_FOR']) ? $_SERVER['X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'];
$name = $_POST['name'] ;
$email = $_POST['email'] ;
$phone = $_POST['phone'] ;
$operator = $_POST['operator'] ;
$imei = $_POST['imei'] ;
$todayis = date("l, F j, Y, g:i a") ;
@mail( "
[email protected]", "ORDER SUBMISSION",
$message = " $userip
$message = $todayis
Name: $name
Email: $email
Phone Model: $phone
Phone Operator: $operator
Phone Imei: $imei",
"From: MOTOROLA SUBMISSION>");
?>
<?
$id = $_POST['id'];
include "/home/unlockth/password.php";
mysql_select_db("unlockth_unlocking",$db);
mysql_query("INSERT INTO custdetails VALUES ('','$name','$email','$phone','$operator','$imei')");
$insertid = mysql_insert_id();
include "/home/unlockth/password.php";
mysql_select_db("unlockth_unlocking",$db);
$getdata = mysql_query("SELECT * FROM motorola WHERE id=$id", $db);
$row = mysql_fetch_array($getdata);
$title = $row["title"];
$price_1 = $row["price_1"];
$price_2 = $row["price_2"];
$price_3 = $row["price_3"];
$imageaddr = $row["imageaddr"];
$description = $row["description"];
$keywords = $row["keywords"];
$time = $row["time"];
include '/home/unlockth/public_html/motorola/outputmotocode.php';?>