<script type="text/javascript" language="javascript">
function selectedItem()
{
action="desc.php";
}
and this is the php script in a file called desc.php
<?php
$connect = pg_connect("dbname=allied_auto_parts user=user host=localhost password=password");
$description = pg_query($connect, "select description from parts");
$desc = pg_fetch_array($description);
?>
how do I get the javasript to access php variable $desc?
Can anyone help me with this?
RPJD

New Topic/Question
Reply



MultiQuote





|