note 26891 added to function.mysql-query
| From: | jeremylipson2002 at yahoo dot com | Date: | Sat, 16 Nov 2002 15:28:35 +0000 |
| Subject: | note 26891 added to function.mysql-query | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-39563@lists.php.net to get a copy of this message | ||
hello.. how do i make a form to let the client 'edit' the stuff inside 'field1'?
here is my code:
<?
mysql_connect("xxx", "xxx", "xxx")
or die("CANNOT CONNECT MYSQL!");
mysql_select_db("xxx")
or die("CANNOT SELECT DATABASE!");
$result=mysql_query("SELECT * FROM website WHERE id='$id'");
$resultArray=mysql_fetch_array($result);
echo $resultArray['field1'];
?>
--
http://www.php.net/manual/en/function.mysql-query.php
http://master.php.net/manage/user-notes.php?action=edit+26891
http://master.php.net/manage/user-notes.php?action=delete+26891
http://master.php.net/manage/user-notes.php?action=reject+26891