Re: [HTML Quickform] addElement(-,-,-, array('value' => ... doesn't work

From: Date: Wed, 28 Sep 2005 13:59:55 +0000
Subject: Re: [HTML Quickform] addElement(-,-,-, array('value' => ... doesn't work
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-21126@lists.php.net to get a copy of this message
Damien Cros wrote:
    $select = "select PRODUCTNAME from PRODUCTS where PRODUCTNAME =  '".$selectedDomain."'";
    $product = $db -> getOne($select);
What is $selectedDomain ?? Maybe it should be $myProduct ? BTW, you should do your query as follows: $select = 'select PRODUCTNAME from PRODUCTS where PRODUCTNAME = ?'; $product = $db -> getOne($select, $myProduct); otherwise, your variable is not escaped. -- Massimiliano Arione http://garakkio.altervista.org

« previous php.pear.general (#21126) next »