i would like to do a script something like this:
<script>
function termektorol(kod)
{
<?php $parancs="delete from mex_telefon where id='?>kod<?php'";
if(mysql_query($parancs))
{
?> alert (kod); <?php
} ?>}
</script>
If i replace the 'kod' with just an actual id it deletes the thing,but i cant get it to work with the 'kod' from the function.I think its only synthax error,but i dont know how to fix it.