SQL para este script
| From: | webmaster@hackingballz.com | Date: | Mon, 01 Oct 2001 21:49:43 +0000 |
| Subject: | SQL para este script | ||
| Groups: | php.general.es | ||
| Request: | Send a blank email to general-es+get-14403@lists.php.net to get a copy of this message | ||
Hola... Espero me puedan ayudar.
Aunque soy bueno en PHP, estoy iniciandome con MySQL, y tengo el siguiente scritp, pero me gustaria
que me ayudaran con la tabla SQL que tengo que correr para que funcione correctamente.
<?php
$link = mysql_connect("localhost","admin","xxxx");
mysql_select_db("FTP",$link);
mysql_query("INSERT INTO tabla ( CLIENTE , HOST , USERNAME , PASSWORD ) VALUES (
'$cliente','$host','$user','$password')",$link);
mysql_close($link);
?>
<table border=\"0\">
<tr>
<td>Cliente</td>
<td>Host</td>
<td>User</td>
<td>Password</td>
</tr>
<?php
while ( $row = mysql_fetch_object($res) )
{
?>
<tr>
<td><?=$row->$cliente></td>
<td><?=$row->$host></td>
<td><?=$row->$user></td>
<td><?=$row->$password></td>
</tr>
<?php
} // End WHILE;
?>
Se los agradezco de antemano.
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .