FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » General » PHP discussions » PHP/SQL help needed....
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
PHP/SQL help needed.... [message #32846] Wed, 26 July 2006 21:52 Go to previous message
jack12345 is currently offline  jack12345   Croatia
Messages: 1
Registered: July 2006
Karma:
Junior Member
Ok i have a minor problem. I have a drop down list which i use for entering info in a database.

<select>
<?php

$options = array('Jack', 'Jane', 'Irene', 'Marry', 'Jody', 'Ana', 'Ivana');
foreach ($options as $option) {
    $isSelected = $option == $name ? ' selected' : '';
    print "<option$isSelected>$option</option>\n";
}

?>
</select>


Now what i'd need is to instead of inserting Irene, Marry ... in the database i need to change it to insert html code per example <a href="http://somename.com/something>Irene</a>. But can't seem to modify it to do that so any help would be appreciated.
[Message index]
 
Read Message
Read Message
Previous Topic: Apache on local pc -> DocumentRoot on a remote nas
Next Topic: MYSQL Update error
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 06:48:42 GMT 2024

Total time taken to generate the page: 0.04339 seconds