Jump to content

ZulfadlyAshBurn

Members
  • Posts

    783
  • Joined

  • Last visited

Everything posted by ZulfadlyAshBurn

  1. what you mean you cant explain?
  2. so basically you want to create a script which makes a user upgrade his level after he click a button with 5 minute time delay?
  3. i still dont get you. o.0
  4. create a cron job on your server which runs a php code every minute if you want. in that php script, the code updates the php script.
  5. sorry, but can you explain clearer what you are trying to achieve?
  6. create a cron job to run a php script every hour
  7. use php sdk instead. its much easier. i used php sdk for my app.
  8. <script> document.forms["paypal"].submit(); </script>
  9. use php to update the database
  10. i suggest you follow mjdamato code.
  11. $myvariable = $_SESSION['thestoredsession'];
  12. you must query your login first then display the form if error. <?php session_start(); $submit = $_POST['submit']; $lusername = $_POST['username']; $lpassword = $_POST['password']; $con = mysql_connect("localhost","username","password"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("database_name", $con); if(!isset($_POST['submit'])) { echo "<font size=6><fontface=verdana>Login</font>"; ?> <form action="<? echo "$PHP_SELF"; ?>" method="POST"> Username: <input type="text" name="username"><br> Password: <input type="password" name="password"><br><br> <input type="submit" name="submit" value="Log In"></form> <?php } if(isset($_POST['submit'])) { $get = mysql_query("SELECT count(userid) FROM users WHERE username='$lusername' and password='$lpassword'"); $theresult = mysql_result($get, 0); if($theresult == 1) { echo "<font face=verdana><font size=3><font color=red>Error! Invalid username and password combination.</font>"; } } else { $_SESSION['username']; echo "<font color=green><font face=verdana><font size=4>You are now Logged In, " .$_SESSION['username']. "</font>"; } ?> this should work.
  13. <input type="hidden" name="bn" value=???"> value not started properly?
  14. modify your script to this <?php session_start(); $submit = $_POST['submit']; $con = mysql_connect("localhost","username","password"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("database_name", $con); if(!$submit) { echo "<font size=6><fontface=verdana>Login</font>"; ?> <form action="<? echo "$PHP_SELF"; ?>" method="POST"> Username: <input type="text" name="username"><br> Password: <input type="password" name="password"><br><br> <input type="submit" name="submit" value="Log In"></form> <?php } $lusername = $_POST['username']; $lpassword = $_POST['password']; if($submit) { $get = mysql_query("SELECT count(userid) FROM users WHERE username='$lusername' and password='$lpassword'"); $theresult = mysql_result($get, 0); if($theresult == 1) { echo "<font face=verdana><font size=3><font color=red>Error! Invalid username and password combination.</font>"; } else { $_SESSION['username']; echo "<font color=green><font face=verdana><font size=4>You are now Logged In, " .$_SESSION['username']. "</font>";} } ?>
  15. you did not specify what is $submit at the start of the php script. thus if(!$submit) { echo "<font size=6><fontface=verdana>Login</font>"; wont work
  16. the code is at the top?
  17. htaccess is how you go about it there is probably no other way.
  18. i would need to look into your code but for now, im rather busy studying for my prelims.
  19. use style class instead of tags.
  20. you can actually use part of the normal js code and implement it on the jQuery.
  21. here you go. index.php <html> <head><title> Hello World </title> <link href="style.css" rel="stylesheet" type="text/css"> </head> <body> <?php echo "<banner>Welcome to Hangeia!</banner><br><br><top>Testing this!</top><br><br><body>Testing this again!!</body>"; ?> </body> </html> style.css banner{ font-size: 30px; font-color: black; font-family: verdana; } top{ font-size: 8px; font-color: red; font-family: verdana; } body{ font-size: 14px; font-color: blue; font-family: verdana; }
  22. maybe just stick to normal js if you would like. link
  23. remove the <style> & </style> on the style.css and use link href to link it. <link href="style.css" rel="stylesheet" type="text/css">
×
×
  • 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.