Hi,
I am using the following code to populate company industry from a tabel:
<?php if ($_GET["id"]) { ?>
<tr>
<td valign="middle">Industry</td>
<td valign="middle">:</td>
<td valign="middle">
<?php
$mysql_command = "CALL sp_populate_company_industry(:param_company_guid)";
$mysql_query = $mysql_connection->prepare($mysql_command);
$mysql_query->bindParam(':param_company_guid', $company_guid, PDO::PARAM_STR);
$mysql_query->execute();
while($mysql_row = $mysql_query->fetch())
{
echo "<img src='" . $_SESSION["domain_name"] . "images/delete_16X16.png'>" . " " . $mysql_row['industry_name'] . "<br><hr>";
}
?>
</td>
</tr>
<?php } ?>
As you can see, I have added an img to allow user to delete the choosen industry using (let's call it delete_industry.php)?
How can I do this using $.ajax and php?
Thanks.
Jassim