[imp] PHP/PEAR errors

Sam Rowe sam@samrowe.com
Wed, 16 May 2001 10:19:43 -0400


On Wed, May 16, 2001 at 02:10:42PM +0000, Chuck Hagenbuch wrote:
# [moving this to the turba list. please reply there]
# 
# Quoting Sam Rowe <sam@samrowe.com>:
# 
# > I have no idea how to use var_dump and I don't wanna mess up the code.
# 
# http://www.php.net/manual/en/function.var-dump.php
# 
# As for messing up the code, if something breaks, just get a new copy from CVS.

        foreach ($attributes as $field => $value) {
            $fields[] = $field;
            var_dump($value);
            $values[] = "'" . $this->db->quoteString($value) . "'";
        }

returns:

string(5) "chad " 
Fatal error: Call to undefined function: quotestring() in
/www/htdocs/horde/turba/lib/Driver/sql.php on line 144

chad is what I entered for the first name.


        foreach ($attributes as $field => $value) {
            $fields[] = $field;
            var_dump($this->db->$value);
            $values[] = "'" . $this->db->quoteString($value) . "'";
        }


returns:

NULL 
Fatal error: Call to undefined function: quotestring() in
/www/htdocs/horde/turba/lib/Driver/sql.php on line 144

I have no idea what any of this means, and pointing me to that manual
page doesn't tell me what I'm looking for. 

-Sam