Ahmm maybe you mean
want to update rose database from the website right ?
or you`re asking that cause your add_dtps script dont work?
1)
I dont know exactly what you need ...
I will create
something like tutorial ..
For example i will use level_change script and create my own exp_change script
<?php
/*
Dynasty CMS EXP_change script by Ultra
*/
if(!session_is_registered(Admin)) {
die('Access Denied');
}
?>
Here we will allow only administrators to change the HP of the players .
The Level_Change Script Form:
- <form id="form1" name="form1" method="post" action="?op=level_change">
- <table width="275" border="0" align="center">
- <tr>
- <td width="98">Character Name: </td>
- <td width="167"><label>
- <input type="text" name="textfield1">
- </label></td>
- </tr>
- <tr>
- <td width="98">Desired Level: </td>
- <td width="167"><label>
- <input type="text" name="textfield2">
- </label></td>
- </tr>
- <tr>
- <td>Are you sure? </td>
- <td><label>
- <input name="sure" type="checkbox" id="sure" value="checkbox">
- </label></td>
- </tr>
- </table>
-
- <p align="center">
- <input name="submit" type="submit" id="submit" />
- <br />
- <br />
- <?php
Here is the EXP Changing Script :
- ?>
- <form id="form1" name="form1" method="post" action="?op=exp_change">
- <table width="275" border="0" align="center">
- <tr>
- <td width="98">Character Name: </td>
- <td width="167"><label>
- <input type="text" name="textfield1">
- </label></td>
- </tr>
- <tr>
- <td width="98">Desired EXP: </td>
- <td width="167"><label>
- <input type="text" name="textfield2">
- </label></td>
- </tr>
- <tr>
- <td>Are you sure? </td>
- <td><label>
- <input name="sure" type="checkbox" id="sure" value="checkbox">
- </label></td>
- </tr>
- </table>
-
- <p align="center">
- <input name="submit" type="submit" id="submit" />
- <br />
- <br />
- <?php
[Also thats not important at all cause here you edit only the form..]
Level Change :
- <?php
- if(isset($_POST['sure'])) {
- mysql_query("UPDATE characters SET level = '".$_POST['textfield2']."' WHERE char_name = '".$_POST['textfield1']."'");
- echo 'Level changed successfully.';
- } else {
- echo 'If you want to change the level, then click the box!';
- }
- ?></p>
EXP Change :
- <?php
- if(isset($_POST['sure'])) {
- mysql_query("UPDATE characters SET exp = '".$_POST['textfield2']."' WHERE [color=#FF0000]char_name[/color] = '".$_POST['textfield1']."'");
- echo 'EXP changed successfully.';
- } else {
- echo 'If you want to change the level, then click the box!';
- }
- ?></p>
--------------
2) Are you sure that you have configure the mysql connection?
Cause for me works allright... or maybe its a bug from the new rev ( I dont know cause im not using it.... )
Hope it helps....