Hi nogdog thnx for the quick response i didn't get much further but this is some more of the code.
<?
include("conn.php3"); ?> <?
if(isset($submit)) {
if(empty($query)) {
?>
<?
die();}
?>
<? include("conn.php3");
include("config.ini");
?>
<?
$time = time();
$a_starts = date("Y-m-d H:i:s",$time);
$result = mysql_query("insert into zoekvaartuigen values(
'$name',
'$registrationno',
'$mark',
'$typ',
'$hullserialno',
'$enginemark',
'$enginetyp',
'$enginenumber',
'$dimensions',
'$constructionyear',
'$REMOTE_ADDR',
'$REMOTE_HOST',
'$a_starts'
)");
?>
<center>
<table>
<tr>
<td valign=top align=center font face=Tahoma size=2><p> <font face=Tahoma size=4 color=#0F009F><span style=font-variant: small-caps> Klik op de afbeelding voor meer informatie</span></font></td>
<td valign=top align=center font face=Tahoma size=2></td>
</tr>
<td>
<?
$result = mysql_query("SELECT mark,
typ,
constructionyear, name, registrationno,
hullserialno,
enginenumber,
enginemark,
registrationno, dossiernummer,picture from marine_intelligence limit 10 where(
(category LIKE '%$query%') AND
(mark LIKE '%$mark%')AND (typ LIKE '%$typ%')AND (constructionyear LIKE '%$constructionyear%')AND (mixreference LIKE '%$mixreference%')AND (insurersname LIKE '%$insurersname%')AND (claimnumber LIKE '%$claimnumber%')AND (policyholder LIKE '%$policyholder%')AND (policynumber LIKE '%$policynumber%')AND (amountinsured LIKE '%$amountinsured%')AND (dossiernummer LIKE '%$dossiernummer%')AND (name LIKE '%$name%') AND (registrationno LIKE '%$registrationno%') AND (typ LIKE '%$type%')AND (hullserialno LIKE '%$hullserialno%')AND (dimensions LIKE '%$dimensions%')AND (constructionyear LIKE '%$constructionyear%')AND (homeport LIKE '%$homeport%')AND (country LIKE '%$country%')AND (materialhull LIKE '%$materialhull%')AND (colourhull LIKE '%$colourhull%')AND (striping LIKE '%$striping%')AND (materialdeck LIKE '%$materialdeck%')AND (coloursuperstructur LIKE '%$coloursuperstructure%')AND (colouranti_fouling LIKE '%$colouranti_fouling%')AND (colourseats LIKE '%$colourseats%')AND (colourcarpets LIKE '%$colourcarpets%')AND (colourhood LIKE '%$colourhood%')AND (colourwinddodgers LIKE '%$colourwinddodgers%')AND (colourtonneau LIKE '%$colourtonneau%')AND (enginemark LIKE '%$enginemark%')AND (enginetyp LIKE '%$enginetyp%')AND (inboard_outboard LIKE '%$inboard_outboard%')AND (horsepower LIKE '%$horsepower%')AND (enginenumber LIKE '%$enginenumber%')AND (transomplate_stern LIKE '%$transomplate_stern%')AND (construction_year LIKE '%$construction_year%')AND (uitrusting LIKE '%$uitrusting%')AND (opmerkingen LIKE '%$opmerkingen%')AND (place_of_theft LIKE '%$place_of_theft%')AND (country_of_theft LIKE '%$country_of_theft%')AND (date_of_theft LIKE '%$date_of_theft%')AND (investresults LIKE '%$investresults%')AND (trailermake LIKE '%$trailermake%')AND (serialno LIKE '%$serialno%')AND (no_of_axels LIKE '%$no_of_axels%')AND (model LIKE '%$model%')AND (colour_of_chassis LIKE '%$colour_of_chassis%')AND (braked LIKE '%$braked%')AND (date_of_recovery LIKE '%$date_of_recovery%')AND (place_of_recovery LIKE '%$place_of_recovery%')AND (country_of_recovery LIKE '%$country_of_recovery%')AND (mailing_datum LIKE '%$mailing_datum%')AND (mailing_regio LIKE '%$mailing_regio%')AND (afmailingdatum LIKE '%$afmailingdatum%')AND (notities LIKE '%$notities%')AND (info LIKE '%$info%')AND (terug = 'nee'))
order by mark"); $result = mysql_query("SELECT mark,
typ, constructionyear, hullserialno, horsepower, enginemark, enginenumber, name, registrationno,
dossiernummer,picture,place_of_theft,country_of_theft,date_of_theft from marine_intelligence where( (category LIKE '%$query%')
AND (mark LIKE '%$mark%')AND (typ LIKE '%$typ%')AND (constructionyear LIKE '%$constructionyear%')AND
(mixreference LIKE '%$mixreference%')AND (insurersname LIKE '%$insurersname%')AND
(claimnumber LIKE '%$claimnumber%')AND (policyholder LIKE '%$policyholder%')AND
(policynumber LIKE '%$policynumber%')AND (amountinsured LIKE '%$amountinsured%')AND
(dossiernummer LIKE '%$dossiernummer%')AND (name LIKE '%$name%') AND (registrationno
LIKE '%$registrationno%') AND (typ LIKE '%$type%')AND (hullserialno LIKE '%$hullserialno%')AND
(dimensions LIKE '%$dimensions%')AND (constructionyear LIKE '%$constructionyear%')AND
(homeport LIKE '%$homeport%')AND (country LIKE '%$country%')AND (materialhull
LIKE '%$materialhull%')AND (colourhull LIKE '%$colourhull%')AND (striping LIKE
'%$striping%')AND (materialdeck LIKE '%$materialdeck%')AND (coloursuperstructur
LIKE '%$coloursuperstructure%')AND (colouranti_fouling LIKE '%$colouranti_fouling%')AND
(colourseats LIKE '%$colourseats%')AND (colourcarpets LIKE '%$colourcarpets%')AND
(colourhood LIKE '%$colourhood%')AND (colourwinddodgers LIKE '%$colourwinddodgers%')AND
(colourtonneau LIKE '%$colourtonneau%')AND (enginemark LIKE '%$enginemark%')AND
(enginetyp LIKE '%$enginetyp%')AND (inboard_outboard LIKE '%$inboard_outboard%')AND
(horsepower LIKE '%$horsepower%')AND (enginenumber LIKE '%$enginenumber%')AND (transomplate_stern
LIKE '%$transomplate_stern%')AND (construction_year LIKE '%$construction_year%')AND
(uitrusting LIKE '%$uitrusting%')AND (opmerkingen LIKE '%$opmerkingen%')AND
(place_of_theft LIKE '%$place_of_theft%')AND (country_of_theft LIKE
'%$country_of_theft%')AND (date_of_theft LIKE '%$date_of_theft%')AND (investresults
LIKE '%$investresults%')AND (trailermake LIKE '%$trailermake%')AND (serialno
LIKE '%$serialno%')AND (no_of_axels LIKE '%$no_of_axels%')AND (model LIKE
'%$model%')AND (colour_of_chassis LIKE '%$colour_of_chassis%')AND (braked LIKE
'%$braked%')AND (date_of_recovery LIKE '%$date_of_recovery%')AND (place_of_recovery
LIKE '%$place_of_recovery%')AND (country_of_recovery LIKE '%$country_of_recovery%')AND
(mailing_datum LIKE '%$mailing_datum%')AND (mailing_regio LIKE
'%$mailing_regio%')AND (afmailingdatum LIKE '%$afmailingdatum%')AND (notities
LIKE '%$notities%')AND (info LIKE '%$info%')AND (terug = 'nee')) order by
dossiernummer desc"); $total_rows = mysql_num_rows($result);
} while(list($mark,$typ,$constructionyear,$hullserialno,$horsepower,$enginemark,$enginenumber,$name,$registrationno,$dossiernummer,$picture,$Place_of_theft,$Country_of_theft,$Date_of_theft) = mysql_fetch_row($result)) {
echo " <table width=600 bordercolor=0000FF border=1 bordercolorlight=0000FF bordercolordark=0000FF height=1>
<tr>
<td valign=top bordercolor=ffffff bordercolorlight=ffffff bordercolordark=ffffff width=97 height=1>
<p align=center>
<a href=\"bekijkvaar.php3?dossiernummer=$dossiernummer&hullserialno=$hullserialno&enginenumber=$enginenumber®istrationno=$registrationno\"><img src=$picture height=65 width=100 border=1 bordercolor=000000 alt='klik op de foto voor meer informatie'></a>
<font size=1 face=Tahoma color=0F009F>Dossiernr.: $dossiernummer</font>