Re: $result ?
| From: | Ignacio Vazquez-Abrams | Date: | Sat, 25 Nov 2000 23:34:57 +0000 |
| Subject: | Re: $result ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-27199@lists.php.net to get a copy of this message | ||
On Sat, 25 Nov 2000, Mike P. wrote:
> I am using Mysql and i keep getting this error: Fatal error: "Call to
> undefined function: array() in /home/xxx/xxx/Football/Main.php on line 21".
> It prints the number of rows (1) if I leave out the last 2 lines (21 and
> 22).What am i doing wrong?
>
> mysql_connect ("xxx","xxx","xxx")
> or die("a");
> mysql_select_db("ampsoft_com")
> or die("b");
> $result = mysql_query("select EMAIL from FBusers where Name = 'mike'");
> $Norow = mysql_num_rows($result);
> echo $Norow;
> $row = mysql_fetch_row($result);
> echo $row(0);
>
>
> mpeloso@princeton.edu
>
Did you perchance mean $row[0]?
--
Ignacio Vazquez-Abrams <ignacio@openservices.net>