netspark
03-10-2001, 12:47 AM
This is driving me crazy. Is there any possible way to create a simple search form that will search only the thread and forum titles?
I would like to put this search form on a .phtml document, so I created the form with this php code:
<?
mysql_connect("localhost", username, password);
$result = mysql(mydatabase, "SELECT forumid, title FROM forum");
?>
but how do I create a search form that will take a stock symbol that is entered into the input box (i.e. MSFT) and search for the forumid for title that contains that symbol, and pass it to forumdisplay.php??
to get this result:
...../board/forumdisplay.php?forumid=xx
if anyone has any ideas, please let me know..
Thanks!
Mike
I would like to put this search form on a .phtml document, so I created the form with this php code:
<?
mysql_connect("localhost", username, password);
$result = mysql(mydatabase, "SELECT forumid, title FROM forum");
?>
but how do I create a search form that will take a stock symbol that is entered into the input box (i.e. MSFT) and search for the forumid for title that contains that symbol, and pass it to forumdisplay.php??
to get this result:
...../board/forumdisplay.php?forumid=xx
if anyone has any ideas, please let me know..
Thanks!
Mike