Re: [PHP] newbie mysql and php

2003-12-28 Thread tony
the problem i get is that its say no database selected Anthony "Chris" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > It looks like mysql_query is failing, add these two lines to your code, and > see what message pops up: > > ... > $dbdo = mysql_query($query,$dbcon

RE: [PHP] newbie mysql and php

2003-12-28 Thread Chris
It looks like mysql_query is failing, add these two lines to your code, and see what message pops up: ... $dbdo = mysql_query($query,$dbconnect); if(false === $dbdo) echo mysql_errno(),': ',mysql_error(); else echo 'The query worked, $dbdo value is:',$dbdo;

Re: [PHP] newbie mysql and php

2003-12-27 Thread Brad Pauly
On Sat, 2003-12-27 at 17:17, tony wrote: > hello > > I'm new with php just learning and i have just a problem with the following > code > > $dbconnect = mysql_connect("localhost", "prog_tony","PASSWORD"); > mysql_select_db("prog_dealer", $dbconnect); > $stop = 0; > $counter = 1; > while(!$stop){