Jump to content

custom functions ...


manix

Recommended Posts

maybe this might work?

 

 

<script>
function demote(){
<?php $userprofile=$_GET['user'];
mysql_query("UPDATE users SET adlevel=adlevel-1 WHERE username='$userprofile'");
?>
}
</script>

<body><input type='button' value='Demote' onclick='demote()'/></body>

 

Link to comment
https://forums.phpfreaks.com/topic/240701-custom-functions/#findComment-1236308
Share on other sites

maybe this might work?

 

 

<script>
function demote(){
<?php $userprofile=$_GET['user'];
mysql_query("UPDATE users SET adlevel=adlevel-1 WHERE username='$userprofile'");
?>
}
</script>

<body><input type='button' value='Demote' onclick='demote()'/></body>

 

I liked the idea but it didn't work

Link to comment
https://forums.phpfreaks.com/topic/240701-custom-functions/#findComment-1236312
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.