Hallo, ik zie door de bomen het bos niet meer.
Ik wil een zoekfunctie hebben waarbij ik op een aantal criteria (checkboxes, en een dropdown)gegevens uit de database kan lezen en deze plaatst op een result.php pagina.
hoe krijg ik dit voor elkaar kan iemand mij helpen??

Kan je line 30 t/m line 35 ff posten, is wat makkelijker zoeken dan :)
van de result pagina of de zoekpagina?
searchpage 30 t/m 35
</blockquote></td>
</tr>
</table></td>
<td width="208" height="107" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>

resultpage 30 tm 35



<!--DWLayoutTable-->
<tr>
<td height="81" colspan="5" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->

ik denk niet dat je hiermee veel verder komt
En wat is de exacte foutmelding?
Parse error: parse error in /data/members/free/tripod/nl/i/n/t/interfoon/htdocs/result.php on line 32

Dat is de foutmelding, maar ik ben dus op zoek naar regel 30 t/m 35 van de gebruikte PHP code. Wat je hier neer zet, lijkt nogal op de html code, maar daar zit de fout niet in, tenminste ik zie hem niet.
Misschien iemand anders?
ik weet dat het lastig is maar ik zet die resultpage er ff helemaal op.
Ja het hele boekwerk:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">;
<html xmlns="http://www.w3.org/1999/xhtml">;
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Debitel Sales Tool - Hoofdpagina</title>
</head>

<body>
<body text="#668014">
<body link="#009ACD">
<body vlink="#556B2F">
<body alink="#009ACD">



<table width="1024" border="0" cellpadding="0" cellspacing="0">
<?php







$db = mysql_connect("localhost", "root");



interfoon_nl_db("mydb",$db);


<!--DWLayoutTable-->
<tr>
<td height="81" colspan="5" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="1024" height="81" background="images/ja.jpg"><div align="center">
<h1>Debitel Sales Tool</h1>
</div></td>
</tr>
</table></td>
</tr>
<tr>
<td width="192" rowspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="325" height="602" valign="top" background="images/Company-Boxed_SideBox.jpg"><blockquote>
<p>&nbsp;</p>
<p align="center">Hier vind je de laatste info!<br />
"info"</p>
</blockquote>


$result = mysql_query("SELECT * FROM products",$db);



echo "<table border=1>\n";



echo "<tr><td>merk</td><td>model</tr>\n";



while ($myrow = mysql_fetch_row($result)) {



printf("<tr><td>%s %s</td><td>%s</td></tr>\n",
$myrow[1], $myrow[2], $myrow[3]);







}



echo "</table>\n";







?></td>
</tr>
</table></td>

<td width="208" height="107" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="208" height="107" align="center" valign="middle" background="images/Company-Boxed_TobBox_01.jpg"><div align="center">
<h2><a href="index.html">Home</a></h2>
</div></td>
</tr>
</table></td>
<td width="208" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td color="#668014" width="208" height="107" align="center" valign="middle" background="images/Company-Boxed_TobBox_02.jpg"><div align="center">
<h2><a href="aanbiedingdoen.html">Aanbieding doen</a></h2>
</div></td>
</tr>
</table></td>
<td width="208" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="208" height="107" align="center" valign="middle" background="images/Company-Boxed_TobBox_03.jpg"><h2 align="center"><a href="Argumentatie.html">Argumentatie</a></h2
></td>
</tr>
</table></td>
<td width="208" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="208" height="107" align="center" valign="middle" background="images/Company-Boxed_TobBox_04.jpg"><div align="center">
<h2><a href="Toestelinfo.html">Toestel info</a></h2>
</div></td>
</tr>
</table></td>
</tr>
<tr>
<td height="495" colspan="4" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="832" height="495" align="center" valign="top" background="images/Company-Boxed_MainBox.jpg"><div align="center">
<p>&nbsp;</p>
<blockquote>

<p align="left"> </p>
<p align="left"><br />
</p>
<p align="left"></p>
<p align="left"> </p>
</blockquote>
</div></td>
</tr>
</table></td>
</tr>














<tr>
<td height="85" colspan="5" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="1024" height="85" align="center" valign="bottom" background="images/ja.jpg"><div align="center">
<h5>Copyright (c) 2006 <a href="mailto:[email protected]">Mike</a></h5>
</div></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>

$db = mysql_connect("localhost", "root");



interfoon_nl_db("mydb",$db);
?> <<-- Je had PHP niet afgesloten

Dat dus aanpassen, en dan moet je

<p align="center">Hier vind je de laatste info!<br />
"info"</p>
</blockquote>

// hier php nog weer openen
$result = mysql_query("SELECT * FROM products",$db);
ok ik ben iets verder heb het aangepast maar krijg nu het volgende :

Fatal error: Call to undefined function: interfoon_nl_db() in /data/members/free/tripod/nl/i/n/t/interfoon/htdocs/result.php on line 29

interfoon_nl_db("mydb",$db); Dat is de fout
________________________________

Probeer het eens zo:
mysql_select_db("mydb",$db);
hij werkt !
echter laat hij de hele tabel zien en filtert niet op criteria
Klopt, die code die jan je liet zien, eerder in het topic (waar de query wordt gemaakt) moet je gebruiken voor de result.php
Je hebt nu staan (select * from tabel), dus dan selecteerd die ook alles.

Reageren