remove the @ symbol from in front of the connect functions


Its supressing any errors that you may have...when you finish the debugging, then you can add them back in.


From: Juan Stiller <[EMAIL PROTECTED]>
Subject: [PHP-DB] Fixing this code to show all variables!
Date: Mon, 1 Nov 2004 10:50:12 -0300 (ART)

Hi, im trying to use this code to send a query to a
mysql database, and then display the query results and
put the results on variables, the problem is that i
don´t know how to make it so that if there is more
than one result, it uses xvariables as results are,
using this script just like it is, if its more than
one result it overwrite the variable with the last
result. Someone told me to use an array, but i dont
have any idea how.

Can you help me?

THis is the script:
$conn = @mysql_connect("", "javier",

if (!$conn) {
echo( "<P>No se pudo conectar " .
"al servidor MySQL.</P>" );

if (! @mysql_select_db("clientes") ) {
echo( "<P>No se puede encontrar " .
"la base de datos clientes!</P>" );

// Request all data
$result1 = mysql_query("select * from

print "Results=";
echo "<h1>Clientes agregados:</h1><br>";

while($row=mysql_fetch_array($result1, MYSQL_ASSOC))
echo "&Id={$row['id']}";
echo "&Apellido={$row['apellidoclientesnuevos']}";
echo "&Nombre={$row['nombreclientesnuevos']}";
echo "&Dni={$row['dniclientesnuevos']}";
echo "&Telefono={$row['telefonoclientesnuevos']}";
echo "&Dia={$row['diacitaclientesnuevos']}";
echo "&Mes={$row['mescitaclientesnuevos']}";
echo "&Ano={$row['anocitaclientesnuevos']}";
echo "&Hora={$row['horacitaclientesnuevos']}";
echo "&Minutos={$row['minutoscitaclientesnuevos']}";
echo "&Abogado={$row['abogadoclientesnuevos']}";
echo "&Nombre={$row['nombreclientesnuevos']}";
echo "&Asunto={$row['asuntoclientesnuevos']}";
echo "&Donde={$row['dondeclientesnuevos']}";


¡Llevate a Yahoo! en tu Unifón!
Ahora podés usar Yahoo! Messenger en tu Unifón, en cualquier momento y lugar.
Encontrá más información en:

PHP Database Mailing List (
To unsubscribe, visit:

-- PHP Database Mailing List ( To unsubscribe, visit:

Reply via email to