Jump to content

Recommended Posts

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-->

Link to comment
https://forums.phpfreaks.com/topic/199012-having-issues-with-search-on-page/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.