I'm afraid I can do nothing about how the data is entered into the database.
Yeah its the sql query part that I'm struggling with.
The code I was trying to get to work is below:
Code:
<?php $usedquery = mysql_query("SELECT DISTINCT Vehicle_Id, Full_Registration FROM Used_Stock WHERE Picture_Refs='' AND Colour LIKE '%red%' OR '%blue%' OR '%green%' ORDER BY Full_Registration ASC");
while($row_used = mysql_fetch_array($usedquery)){
echo ?>
<option value="<?php echo $row_used['Full_Registration']; ?>"><?php echo $row_used['Full_Registration']; ?></option>
<?php }; ?>
Bookmarks