delickate Posted July 9, 2008 Share Posted July 9, 2008 <html> <head> <script src="saniAjax.js"></script> </head> <body> <? $con = mysql_connect("localhost","root",""); if (!$con) die('Could not connect: ' . mysql_error()); mysql_select_db("pinpoint", $con); $q=mysql_query("select * from tbl_market_news "); ?> <form> <select id="myCombo" onchange="SaniDoInAjax(this.value)"> <option selected="selected"></option> <? while($r=mysql_fetch_assoc($q)) { extract($r); ?> <option value="<? echo $mrtn_id; ?>" ><? echo $mrtn_source; ?></option> <? } ?> </select> </form> <p><span id="txtResultPlaceHere"></span></p> </body> </html> Quote Link to comment Share on other sites More sharing options...
dannyb785 Posted July 9, 2008 Share Posted July 9, 2008 uhhhhhhhh... are we supposed to mind read what the problem is? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.