Jump to content

[SOLVED] Is there any thing worng witht htis code?


ballhogjoni

Recommended Posts

Can you please look over this and tell me if there are any errors with this code

if (isset($too_small)) {
while($row = mysql_fetch_array($sql)){ 
mysql_query("INSERT INTO dispo_tooSmall (Name, Phone, Email, Position, State) VALUES (.$row['fname'].$row['lname'].,.$row['areacode'].$row['prefix'].$row['linenumber'].,.$row['email'].,.$row['position'].,.$row['state'].)");
mysql_query("DELETE FROM contactinfo WHERE Email='.$row['email'].'");
}

?>

if you using just mysql you dont need all those periods in there try this....

 

mysql_query("INSERT INTO dispo_tooSmall (Name, Phone, Email, Position, State) VALUES ('$row[fname] $row[lname]' , '$row[areacode] $row[prefix] $row[linenumber]' , '$row' , '$row[position]' , '$row[state]')");

 

if (isset($too_small)) {
while($row = mysql_fetch_array($sql)){ 
mysql_query("INSERT INTO dispo_tooSmall (Name, Phone, Email, Position, State) VALUES ('$row['fname'] $row['lname']','$row['areacode'] $row['prefix'] $row['linenumber']','$row['email']','$row['position']','$row['state']')"); // line 124
mysql_query("DELETE FROM contactinfo WHERE Email='$row['email']'");
}

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.