help in updating mysql

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dakkonz
Forum Commoner
Posts: 69
Joined: Sat Dec 27, 2003 2:55 am
Location: Asia

help in updating mysql

Post by dakkonz »

Code: Select all

<?php
echo "<td><a href="mailto:xxx@xxxxx.com" onClick="include_once('trial.php');" ><b>Send a Comment</b></a></td>";
?>
can anyone tell me wat is wrong?? i want to update a field in the database once ppl click on this link....
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

the code you posted will attempt to run a javascript function called include_once. It will not run the php script trial.php.
Post Reply