Re: Field = NULL?

From: Date: Mon, 19 Nov 2001 03:20:43 +0000
Subject: Re: Field = NULL?
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-14429@lists.php.net to get a copy of this message
Thanks it worked :D "Héctor gonzález" <oneal@quadgrafix.com> wrote in message news:000701c170a9$14f52a80$4286890a@hectorltyrjo9b... > use "==" to compare,, "=" to asign a value.. > > cya > > ----- Original Message ----- > From: "Kevin Schaaps" <k.schaaps@chello.nl> > To: <php-db@lists.php.net> > Sent: Sunday, November 18, 2001 10:50 PM > Subject: [PHP-DB] Field = NULL? > > > > Greetings, > > > > I have a silly question, unfortunately I cannot find how it should work. > > > > I want to see if a specific field is empty. I'll paste what I've done so > > far. > > > > The problem is that the current coding enters no value, but the IF > statement > > doesn't work either. > > > > Please help me :D > > > > Yours, > > > > Kevin > > > > > > if ($URL = NULL) > > { echo " > > <tr> > > <td></td> > > <td>$class</td> > > <td>$name</td> > > <td>$type</td> > > <td>ACTIVE SIM</td> > > </tr>\n"; > > } > > else > > { echo " > > <tr> > > <td></td> > > <td>$class</td> > > <td><a href=\"$URL\">$name</a></td> > > <td>$type</td> > > <td>ACTIVE SIM - $URL</td> > > </tr>\n"; > > }; > > > > > > > > -- > > PHP Database Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > > For additional commands, e-mail: php-db-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > >

« previous php.db (#14429) next »