RE: [PHP-WIN] unhappy camper

2001-04-02 Thread Mangiola Nunzio arivia.kom
You forgot to select a database. mysql_select_db("database",$link_id); That should work. > -- > From: paul morgan[SMTP:[EMAIL PROTECTED]] > Sent: Saturday, March 31, 2001 1:53 AM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] unhappy cam

Re: [PHP-WIN] unhappy camper

2001-03-31 Thread Patrick
"); $result = mysql_list_tables ("MYSQL") or die ("Invalid query"); print ("Connected successfully"); while ($i < mysql_num_rows ($result)) { $tb_names[$i] = mysql_tablename ($result, $i); echo $tb_names[$i] . ""; $i++; } ?> this is from the php manual ""paul morgan"" <[EMAIL PROT

Re: [PHP-WIN] unhappy camper

2001-03-31 Thread Patrick
Warning: Supplied argument is not a valid MySQL result resource in e:/apache/apache/htdocs/tr.php on line 7 huum this is the error I got. you need to read a bit more mysql documentation and perhaps the mysql functions in php. what data base are you trying to show_tables on ? ""paul morgan"" <[

[PHP-WIN] unhappy camper

2001-03-30 Thread paul morgan
hi, I'm new to this game but have managed to set up apache 1.3.19 that runs php/4.0.4pl1 (the apache dll I think) on Win 98 SE. I've also installed the windows build of mysql, version 3.23 I think and can administer easily via the msdos prompt. I have removed the general root user, as in the mysql