Re: grabbing data and auto email set users

From: Date: Mon, 10 Apr 2006 08:39:29 +0000
Subject: Re: grabbing data and auto email set users
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-41683@lists.php.net to get a copy of this message
Hi, Ahh okay I thought NULL was blank. Okay I understand, therefore, hehe, I fixed it. <snip> $query = "select username from round3 where misc=''"; fixed it, the email got sent. Had to change a few strings also to match my database which I was not aware of. Forgot it actually. Now the only thing I need to know is how do I change the sender email is, currently it sets to the server default username. (e.g. username@servername.com) Is there a way to change that and the subject. Thanks for your time. I have learned a little bit off this also. So thankyou. J Chris <dmagick@gmail.com> wrote: JeRRy wrote: > Okay, but still not working... > > is NULL the same as ' '? Or does NULL have to be the inserted value in > the db? Null means unknown - so completely different to ' ' or ''. How was your table created? What do you get if you run that query through phpmyadmin: select username from round3 where misc=NULL; ? -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.db (#41683) next »