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
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;
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){
3 matches
Mail list logo