php and searches?!?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ericehle
Forum Newbie
Posts: 1
Joined: Fri Jan 24, 2003 1:15 am

php and searches?!?

Post by ericehle »

I was looking at http://www.designiskinky.com , and I was trying to create a search similar to what they did on their news search, althought I am not able to use mysql on my webserver(so I am told but can use php). Any info on how they did this or what steps to take to head in the right direction is more than appreciated. The source code is below but not sure what it is exactly doing and how to make it work for me. Any suggestions are more than appreciated.
Thanks,
Eric Ehle

<script language="javascript" type="text/javascript">
function pageSearch(iVal) {
document.forms[0].currPage.value = iVal;
document.forms[0].submit();
}
</script>

<form action="news-search.php" method="post" name="dik_search">
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

You'll need a lot more code than that to create a search feature - PHP is server-side so you won't be able to get that code from clicking 'view source'.

You could ask the webmaster of the site if they're willing to let you have a copy of the script that does the searching (although it is likely that it is being used to search a database like MySQL) or you could have a look at somewhere like hotscripts.com and see if they have a script that you could use.

Mac
Post Reply