Hi There,
I am having issues with a third party script, I am just starting to dabble in PHP and MySQL and I am having issues with the following:
1) On my search page there are a price range field and year field that you can search for a specific year or price. The problem is if you enter a year that I know I have in the database it comes up no results. I think it may have something to do with the YF anf YT, PF and PT in the search field.
2) Is more of a customization question, once you hit submit the search text turns back to black. I am not sure where I need to be changing this to reflect the color choices that I have made, black with grey text.
The website I got the script from is http://car-dealer-website.org/
My website is www.ellerbeckmotors.ca/search.php
I test the search function and it does not seem to work from the start, I would appreciate any help or thoughts. I have tried researching this at great lengths, but I am having issues trying to figure out what is going on.
The coding is shown below:
<!--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[i] = 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][i];
}
</script>
<form action="search.php" method="get">
<head>
<title></title>
</head>
<body bgcolor="#000000" text="#C0C0C0">
<table align=center>
TO: $<input type="text" name="pt" value="{PT}" size="5">
</td>
</tr>
<tr>
<td>Year range:</td>
<td>FROM: <input type="text" name="yf" value="{YF}" size="5">
TO: <input type="text" name="yt" value="{YT}" size="5">
</td>
</tr>
<tr>
<td align=center colspan=2><input type="submit"></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-->
Here is the PHP code:
<?php
require "config.php";
$PAGE = "index";
$GET["sub"] = "search";
$site = new CSite("admin/site.xml");
$site->Run();
?>