This topic is locked

Drop down menu in ****_list.php

2/22/2008 4:48:25 AM
PHPRunner General questions
W
waponline author

Hi,

can you help me on this one ?

I have found this code in the forum :
global $conn;

$links = "<select onchange=\"window.location.href=this.options[this.selectedIndex].value;\">";

$str = "select Modele from _modele";

$rs = db_query($str,$conn);

while ($data = db_fetch_array($rs))

$links.="<option value=\"_modele_list.php?a=search&value=1&SearchFor=".$data["Modele"]."&SearchOption=Contains&SearchField=Modele\">".$data["Modele"]."</option>";

$links.="<select>";

echo $links;
so I put it on the _lisp.php page to make it look like the picture below :


but when I select an item from this menu I got this error :


any help will be very welcome :-)

thank you

jb

J
Jane 2/22/2008

Hi,
it's difficult to tell you what's happening without seeing actual files.
Please publish your project on Demo Account and post a URL to your pages here or send it to [email=support@xlinesoft.com]support@xlinesoft.com[/email] along with instructions on reproducing this error.

I'll find what's wrong with your project inspecting it at Demo account site.

W
waponline author 2/22/2008

Hi,

it's difficult to tell you what's happening without seeing actual files.
Please publish your project on Demo Account and post a URL to your pages here or send it to [email=support@xlinesoft.com]support@xlinesoft.com[/email] along with instructions on reproducing this error.

I'll find what's wrong with your project inspecting it at Demo account site.


here is the link on Demo account : http://demo.asprunner.net/infos%5Fwaponlin...marque_list.php

jb