murphydesigns Posted April 19, 2010 Share Posted April 19, 2010 Hi There, I have a few questions, and I think they maybe related. I have managed to get my database loaded and functioning correctly except for a couple of things, the first issue is for some reason the database is not showing up on the phpmyadmin screen, according to that screen I have no databases..which is bad because I have loaded all the information and pictures. My second issue is the search feature for price and year do not yield any results, I am thinking that they are related, or am I totally off base? Any help with this would be greatly appreciated. The web address for the search is http://www.ellerbeckmotors.ca/search.php Here is the code for the search engine portion: <!--S:Search--> <script language="JAVAScript" > function Model(newmodel) { var models = new Array(); {SCRIPT} for (var i = document.forms[0].model.options.length ; i >= 0 ; i--) document.forms[0].model.options = null; if (newmodel == "" ) return ""; //adding the new values; for (var i = 1 ; i < models[newmodel].length ; i++) document.forms[0].model.options[i-1] = models[newmodel]; } </script> <style type="text/css"> <!-- .fontcolor { color: #C0C0C0; } --> </style> <form action="search.php" method="get"> <table align=center> <tr> <td><span class="fontcolor">Make & Model</span></td> <td><span class="fontcolor">{MAKE} & {MODEL}</span></td> <tr> <td><span class="fontcolor">Price range:</span></td> <td><span class="fontcolor">FROM: $ <input type="text" name="pf" value="{PF}" size="5"> TO: $<input type="text" name="pt" value="{PT}" size="5"> </span></td> </tr> <tr> <td><span class="fontcolor">Year range:</span></td> <td><span class="fontcolor">FROM: <input type="text" name="yf" value="{YF}" size="5"> TO: <input type="text" name="yt" value="{YT}" size="5"> </span></td> </tr> <tr> <td align=center colspan=2><span class="fontcolor"> <input type="submit"> </span></td> </tr> </table> </form> <!--E:Search--> <!--S:Select--> <select name="{NAME}" onchange="{ONCHANGE}"> <option value="">[ select ]</option> {OPTIONS} </select> <!--E:Select--> <!--S:SelectOption--> <option {SELECTED} value="{VALUE}">{NAME}</option> <!--E:SelectOption--> Quote Link to comment https://forums.phpfreaks.com/topic/199012-having-issues-with-search-on-page/ Share on other sites More sharing options...
murphydesigns Posted April 19, 2010 Author Share Posted April 19, 2010 Any suggestions?? Quote Link to comment https://forums.phpfreaks.com/topic/199012-having-issues-with-search-on-page/#findComment-1044778 Share on other sites More sharing options...
murphydesigns Posted April 21, 2010 Author Share Posted April 21, 2010 This was an issue with the database itself, unfortunetly I did not have the chance to backup the database... Quote Link to comment https://forums.phpfreaks.com/topic/199012-having-issues-with-search-on-page/#findComment-1046079 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.