On 3/5/07, Helder Lopes <[EMAIL PROTECTED]> wrote:
Helder Lopes wrote:
Erro no banco de
dados!");//line 23
Where is $con defined???
-B
$total = mysql_num_rows($result_id);
// Caso o usuário tenha digitado um login válido o número de linhas será
1..
if($total)
{
// Obtém os dados do usuár
Thanxs for helping!
The error has that i was not calling the database, neither the connection!!
Im so stupid! Sorry for your time lost!
Helder Lopes wrote:
Why this script give me a error:
*Warning*: mysql_query(): supplied argument is not a valid MySQL-Link
resource in *ver.php* on line *23*
This means that the second parameter to the mysql_query call ($con) is
not a valid connection to a MySQL database. How are you definin
Helder Lopes wrote:
> In other file
well then it *must* be correct.
have you tried actually looking at $con to see what it contains???
the connection to mysql failed or was never even attempted, the error
you get makes that quite clear.
>
--
PHP General Mailing List (http://www.php.net/)
To
Helder Lopes wrote:
In other file
I asked because it might prove helpful to see how that is set because
this appears to be what is causing your error.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Helder Lopes wrote:
Erro no banco de
dados!");//line 23
Where is $con defined???
-B
$total = mysql_num_rows($result_id);
// Caso o usuário tenha digitado um login válido o número de linhas será 1..
if($total)
{
// Obtém os dados do usuário, para poder verificar a senha e passar os
demais d
Helder Lopes wrote:
Erro no banco de
dados!");//line 23
Where is $con defined???
-B
$total = mysql_num_rows($result_id);
// Caso o usuário tenha digitado um login válido o número de linhas
será 1..
if($total)
{
// Obtém os dados do usuário, para poder verificar a senha e passar os
demais
7 matches
Mail list logo