ïÛÉÂËÁ
------=_NextPart_000_0005_01C3F41C.C48A1070
Content-Type: text/plain;
charset="koi8-r"
Content-Transfer-Encoding: quoted-printable
=F1 =C9=D3=D0=CF=CC=D8=DA=D5=C0 Windows2000 Professional.
=EE=C5=C4=C1=D7=CE=CF, =D1 =D5=D3=D4=C1=CE=CF=D7=C9=CC =D5 =D3=C5=C2=D1 =
MySQL4.0, =C4=CF =DC=D4=CF=C7=CF =D5 =CD=C5=CE=D1 =C2=D9=CC MySQL3.53. =
=F1 =D5=D3=D4=C1=CE=C1=D7=CC=C9=D7=C1=CC MySQL4.0 =C9=DA =
mysql-4.0.18-win.zip, =CB=CF=D4=CF=D2=D9=CA =DA=C1=C7=D2=D5=DA=C9=CC =D3 =
mysql.com.
=EF=DB=C9=C2=CB=C1 =DA=C1=CB=CC=C0=DE=C1=C5=D4=D3=D1 =D7 =
=D3=CC=C5=C4=D5=C0=DD=C5=CD.
=EB=CF=C7=C4=C1 =D1 =D0=C9=DB=D5 =D7 php-=C6=C1=CA=CC=C5 (PHP4)
$row=3Dmysql_fetch_row($query_select_needful_users_info);
if(!$row)
{
echo "Error!";
echo mysql_error();
exit;
}
=D3=CB=D2=C9=D0=D4 =D7=D9=D7=CF=C4=C9=D4 =CE=C1 =DC=CB=D2=C1=CE "Error!" =
=C9 =D0=D2=C5=CB=D2=C1=DD=C1=C5=D4 =D3=D7=CF=C5 =
=C4=C5=CA=D3=D4=D7=C9=C5. =F3=D4=D2=CF=CB=C1 "echo mysql_error();" - =
=C9=C7=CE=CF=D2=C9=D2=D5=C5=D4=D3=D1.
Why??????
------=_NextPart_000_0005_01C3F41C.C48A1070--
Re: ïÛÉÂËÁ
Hi, Aleksej!
On Sun, Feb 15, 2004 at 11:38:09PM +0200, wrote:
> Windows2000 Professional.
> , MySQL4.0, MySQL3.53. MySQL4.0 mysql-4.0.18-win.zip, mysql.com.
> .
> php- (PHP4)
>
> $row=mysql_fetch_row($query_select_needful_users_info);
> if(!$row)
> {
> echo "Error!";
> echo mysql_error();
> exit;
> }
>
> "Error!" . "echo mysql_error();" - .
> Why??????
, .
, ( ) php.
( ) .
php.
( - ):
here is English translation (only facts for original message):
> I use Windows2000 Professional.
> I have installed MySQL4.0.18 (mysql-4.0.18-win.zip from mysq.com), MySQL3.53
> was used before it.
> Following code return "Error!" and exit:
> $row=mysql_fetch_row($query_select_needful_users_info);
> if(!$row)
> {
> echo "Error!";
> echo mysql_error();
> exit;
> }
> Why 'echo mysql_error();' is ignored?
First of all, messages to this e-mail list should be written in English.
The problem look like php related.
I have translated your letter (as I can). It is possible that this letter
will be answered by some people who know php better then I.
--
Want to swim with the dolphins? (April 14-16, 2004)
http://www.mysql.com/uc2004/
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Mr. Oleksandr Byelkin <sanja [at] mysql.com>
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Full-Time Developer
/_/ /_/\_, /___/\___\_\___/ Lugansk, Ukraine
<___/ www.mysql.com
--
MySQL Bugs Mailing List
For list archives: http://lists.mysql.com/bugs
To unsubscribe: http://lists.mysql.com/bugs?unsub=gcdmb-bugs [at] m.gmane.org
Re: ïÛÉÂËÁ
Hi Aleksej,
mysql_error(...) will display error information from the last
mysql_query(...) call (if there was an error). mysql_fetch_row(...)
returns the current row in a result set. It can return no rows even when
the query was successful.
For example:
select * from table1 where 1=0
is a valid query that returns no rows.
some code that might work better for you is:
if(!($qry = mysql_query('select * from blah'))) {
echo mysql_error();
exit;
}
while($row = mysql_fetch_row($qry)) {
// do some stuff with $row
}
Cheers,
Paul
Sanja Byelkin wrote:
>Hi, Aleksej!
>
>On Sun, Feb 15, 2004 at 11:38:09PM +0200, wrote:
>
>
>> Windows2000 Professional.
>>, MySQL4.0, MySQL3.53. MySQL4.0 mysql-4.0.18-win.zip, mysql.com.
>> .
>> php- (PHP4)
>>
>>$row=mysql_fetch_row($query_select_needful_users_info);
>>if(!$row)
>>{
>> echo "Error!";
>> echo mysql_error();
>> exit;
>>}
>>
>> "Error!" . "echo mysql_error();" - .
>>Why??????
>>
>>
>
> , .
> , ( ) php.
>
> ( ) .
> php.
>
> ( - ):
>here is English translation (only facts for original message):
>
>
>
>>I use Windows2000 Professional.
>>I have installed MySQL4.0.18 (mysql-4.0.18-win.zip from mysq.com), MySQL3.53
>>was used before it.
>>Following code return "Error!" and exit:
>>$row=mysql_fetch_row($query_select_needful_users_info);
>>if(!$row)
>>{
>> echo "Error!";
>> echo mysql_error();
>> exit;
>>}
>>Why 'echo mysql_error();' is ignored?
>>
>>
>
>First of all, messages to this e-mail list should be written in English.
>The problem look like php related.
>
>I have translated your letter (as I can). It is possible that this letter
>will be answered by some people who know php better then I.
>
>
>
--
MySQL Bugs Mailing List
For list archives: http://lists.mysql.com/bugs
To unsubscribe: http://lists.mysql.com/bugs?unsub=gcdmb-bugs [at] m.gmane.org
Re: ïÛÉÂËÁ
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Paul,
Thanks for fast and precise reply.
Paul Coldrey wrote:
> Hi Aleksej,
>
> mysql_error(...) will display error information from the last
> mysql_query(...) call (if there was an error). mysql_fetch_row(...)
> returns the current row in a result set. It can return no rows even when
> the query was successful.
<cut>
Best regards
- --
Meet the MySQL Team at User Conference 2004!
http://www.mysql.com/uc2004/
For technical support contracts, visit https://order.mysql.com/?ref=msal
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Mr. Alexander Keremidarski <salle [at] mysql.com>
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Full-Time Developer
/_/ /_/\_, /___/\___\_\___/ Sofia, Bulgaria
<___/ www.mysql.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFAMMGReehWBZ4HcYkRAis9AJ9hYvged+PSyTtBUHz1g4+/sUdVcgCg sF0L
rzX331XxxqtUwp/3oNw69g0=
=un8a
-----END PGP SIGNATURE-----
--
MySQL Bugs Mailing List
For list archives: http://lists.mysql.com/bugs
To unsubscribe: http://lists.mysql.com/bugs?unsub=gcdmb-bugs [at] m.gmane.org