MySQL Forums
Forum List  »  PHP

Re: problem with display
Posted by: Ulf Wendel
Date: February 02, 2006 05:52AM

Muumigirl :) wrote:
> I would like to see all the lines of the database
> so that some entries are as regular text (name,
> address) and some are in a textbox (date,
> comment), and that I could update them when I need
> to.
> Is this possible? The solution, that all entries

Yes it is possible.

> The existing code is:
> <?php
> $server = 'freesql.org';
> $user = 'xxx';
> $pass = 'xxx';
> $db = 'xxx';
> $conn = mysql_connect($server, $user, $pass);
> mysql_select_db($db, $conn);
>
> $result = mysql_query("SELECT
> name,date,adress,comment FROM tabel1;");
>
> while ($query = mysql_fetch_array($result))
>
> ?>

Please use mysqli_* if you can (MySQL 4.1+, PHP 5+). Also, don't expect anybody to write a script for you, unless you pay for it ;-). There are re plenty of excellent tutorials on the net, please search for one. For example, this was my first google hit for "tutorial mysqli form":
http://www.zend.com/php/beginners/php101-8.php?article=php101-8&kind=101&id=7440&open=1&anc=0&view=1

Ulf

Options: ReplyQuote


Subject
Written By
Posted
February 02, 2006 03:45AM
Re: problem with display
February 02, 2006 05:52AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.