Re: first script
| From: | Richard Lynch | Date: | Fri, 20 Apr 2007 21:02:33 +0000 |
| Subject: | Re: first script | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-253389@lists.php.net to get a copy of this message | ||
On Fri, April 20, 2007 2:05 pm, Thufir wrote:
Please tell me that's not your real name...
:-)
> $query = "SELECT DISTINCT * FROM craigslist ORDER BY id";
> $result = mysql_query($query)
> or die ("Couldn't execute query.");
>
> /* create form containing selection list */
> echo "<form action='processform.php' method='post'>
> <select name='id'>\n";
>
> while ($row = mysql_fetch_array($result))
> {
> extract($row);
> echo "<option value='$id'>$id\n";
> }
> echo "</select>\n";
echo htmlentities($notes);
> echo "<input type='submit' value='id'>
> </form>\n";
> ?>
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?