Re: db::Creat Table
| From: | Tomas V.V.Cox | Date: | Sun, 15 Apr 2001 14:01:28 +0000 |
| Subject: | Re: db::Creat Table | ||
| References: | 1 2 3 4 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-58@lists.php.net to get a copy of this message | ||
Tobias Nix wrote:
>
> > get errors, but also an created table demo_table.
> hello,
>
> i #ve made this changes on my local copy:
> -----------------------------------------------------------------------
> RCS file: /repository/php4/pear/DB/mysql.php,v
> retrieving revision 1.55
> diff -r1.55 mysql.php
> 313c313
> < if ($rows === null) {
> ---
> > if (($rows === null) && (@mysql_errno($this->connection) != 0)) {
> -----------------------------------------------------------------------
> now i don't get back an errorobject.
> is this the right way ?
Umm... are you trying to use numrows with a "CREATE" query? If so:
"mysql_num_rows() returns the number of rows in a result set. This
command is
only valid for SELECT statements"
Tomas V.V.Cox