[PHP-WIN] RE: [PHP] Still can't pass variable through url

2003-08-14 Thread Martin Towell
See if changing it to page.php?year=$year&month=$month works The separator between the page and the query string is "?" The separator between each key/value pair is just "&" -Original Message- From: Jack [mailto:[EMAIL PROTECTED] Sent: Friday, 8 August 2003 4:30 PM To: [EMAIL PRO

[PHP-WIN] RE: [PHP] How to Show my Own Error Message Instead of Mysql Error?

2002-06-20 Thread Martin Towell
what about doing a "select count(*) from table where username = 'foobar'" then, if ($cnt > 0) { /* display error */ } else { /* insert new username */ } -Original Message- From: Jack [mailto:[EMAIL PROTECTED]] Sent: Friday, June 21, 2002 2:07 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [