Jump to content

AJAX HELP please Code here


delickate

Recommended Posts

<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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.