Jump to content

executing an insert


webguy262

Recommended Posts

I'm wondering why...

 

$query = "INSERT INTO emails (email) VALUES ('$email') or die(mysql_error())";  
$result = mysql_query($query);

 

Does not work...

 

$query = "INSERT INTO emails (email) VALUES ('$email') or die(mysql_error())";  
mysql_query($query);

 

Does work.

 

I thought both would work... what am I missing?

 

Link to comment
https://forums.phpfreaks.com/topic/164555-executing-an-insert/
Share on other sites

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.