Re: first script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux