Re: [PHP-DB] redirecting function

2005-03-14 Thread Ben Galin
On Mar 14, 2005, at 2:26 AM, Ken wrote: On Mon, 14 Mar 2005 01:43:09 -0800 (PST), Yemi Obembe [EMAIL PROTECTED] wrote: hi folks, who knows any function that can do this javascript trick script window.location='http://somewhere.com/' /script tried header(location:http://somewhere.com/) but it gave

Re: [PHP-DB] Re: Mass mail

2004-09-20 Thread Ben Galin
On Sep 20, 2004, at 7:13 AM, Manuel Lemos wrote: Now, for the actual composing and sending of the newsletters, there are some optimizations that can be done depending on whether the newsletters are going to be personalized (avoid it at all costs if you can) or not. May I ask why? Are you

[PHP-DB] letting a table name be a constant

2004-08-23 Thread Ben Galin
Hello, Regarding this code: [PHP code] // This works $name=name; $table=mytable; $mysql_connect(localhost,,) or die(Error: .mysql_error()); $mysql_select_db(mydb) or die(Error: .mysql_error()); $mysql_query(INSERT INTO $table (`id`,`name`) VALUES ('','$name')); [/PHP code] I want to

Re: [PHP-DB] letting a table name be a constant

2004-08-23 Thread Ben Galin
On Aug 23, 2004, at 8:12 PM, John Holmes wrote: You can't have a constant in a string. You'd do it like this: mysql_query(INSERT INTO . TABLE . (`id`,`name`) VALUES ('','$name')); Thanks, John and Justin. Wasn't thinking about that. The other error you have, and I don't know how you think this

[PHP-DB] retry, this time with code [was: [PHP-DB] [newbie] Form to email *and* insert row to MySQL]

2004-08-13 Thread Ben Galin
My last email shows on the archive but it also bounced back to me so I am reposting it. Sorry of this is a double-post. Also, I am adding this time the source code down below which I should have probably done last time around. Any help is much appreciated, Ben. repost Hello guys, I have an

[PHP-DB] [newbie] Form to email *and* insert row to MySQL

2004-08-12 Thread Ben Galin
Hello guys, I have an HTML form with the action attribute set to the famous FormMail.pl and it works beautifully. However, I also want to insert the data into a MySQL database. Initially, I thought that I would let FormMail validate the data, send the email, and then redirect to a PHP script