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> Link to comment https://forums.phpfreaks.com/topic/113866-ajax-help-please-code-here/ 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? Link to comment https://forums.phpfreaks.com/topic/113866-ajax-help-please-code-here/#findComment-585123 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.