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">
php and searches?!?
Moderator: General Moderators
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
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
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