Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread Rabih Tayyem
that's because your are not running the query!!! it has to be $sql = INSERT INTO tbl (WHEN, WHAT, WHO) VALUES ('$WHEN','$WHAT','$WHO'); instead of mysql_query(INSERT INTO tbl (WHEN, WHAT, WHO) VALUES ('$WHEN','$WHAT','$WHO'); Regards, Rabih On 3/29/07, Rahul Sitaram Johari [EMAIL PROTECTED]

Re: [PHP] Random Unique ID

2007-03-21 Thread Rabih Tayyem
function GenerateID () { $len = 3; $base='ABCDEFGHKLMNOPQRSTWXYZ'; $max=strlen($base)-1; $activatecode=''; mt_srand((double)microtime()*100); while (strlen($activatecode)$len+1)$activatecode.=$base{mt_rand(0,$max)}; $len = 7; $base='1234567890'; $max=strlen($base)-1;

Re: [PHP] Re: Random Unique ID

2007-03-21 Thread Rabih Tayyem
stamps. Safe enough I believe... Regards, Rabih G. Tayyem On 3/22/07, Jim Moseby [EMAIL PROTECTED] wrote: Rabih Tayyem writes: PS: I don't take credit for the code as it is a modified version of a code I found long time back (this same code is running on one of my applications

Re: [PHP] Any automated php email sending solution please?

2007-03-08 Thread Rabih Tayyem
check PHPmailer.. very easy to use.. http://phpmailer.sourceforge.net/ Regards, Rabih On 3/8/07, Chris Carter [EMAIL PROTECTED] wrote: Any software that anyone is aware of for sending automated emails. I have some email addresses in my database, now I am looking forward to send HTML

Re: [PHP] Creating variable names from values

2007-03-08 Thread Rabih Tayyem
Actuallyyou're doing it rightyou just need to concatenate. ex: echo tdinput *name=\K.$key.\* type=\checkbox\ .../td and then later you access the values the same way...(you loop on $key and the value would be K.$key)... Regards, Rabih On 3/8/07, Otto Wyss [EMAIL PROTECTED] wrote:

Re: [PHP] Session_Start() error

2007-03-05 Thread Rabih Tayyem
Hi, just put session_start() (first line) the first thing in your php file and this should solve the problem. Regards, Rabih On 3/5/07, Helder Lopes [EMAIL PROTECTED] wrote: *hi people, Hi have this error in the session cookie, how to solve this??? Warning*: session_start()