-
Posts
783 -
Joined
-
Last visited
Everything posted by ZulfadlyAshBurn
-
Moving timestamp converting to timestamp
ZulfadlyAshBurn replied to Fincikas's topic in PHP Coding Help
what you mean you cant explain? -
Moving timestamp converting to timestamp
ZulfadlyAshBurn replied to Fincikas's topic in PHP Coding Help
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? -
Moving timestamp converting to timestamp
ZulfadlyAshBurn replied to Fincikas's topic in PHP Coding Help
i still dont get you. o.0 -
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.
-
Moving timestamp converting to timestamp
ZulfadlyAshBurn replied to Fincikas's topic in PHP Coding Help
sorry, but can you explain clearer what you are trying to achieve? -
create a cron job to run a php script every hour
-
Facebook Connect Javascript sdk help (LOGOUT ISSUE)
ZulfadlyAshBurn replied to Lucky2710's topic in Javascript Help
use php sdk instead. its much easier. i used php sdk for my app. -
JavaScript to submit form automatically
ZulfadlyAshBurn replied to beanymanuk's topic in Javascript Help
<script> document.forms["paypal"].submit(); </script> -
use php to update the database
-
i suggest you follow mjdamato code.
-
$myvariable = $_SESSION['thestoredsession'];
-
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.
-
JavaScript to submit form automatically
ZulfadlyAshBurn replied to beanymanuk's topic in Javascript Help
<input type="hidden" name="bn" value=???"> value not started properly? -
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>";} } ?>
-
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
-
PHP Validate Two Emails If Match or Not?
ZulfadlyAshBurn replied to siabanie's topic in PHP Coding Help
the code is at the top? -
PHP Validate Two Emails If Match or Not?
ZulfadlyAshBurn replied to siabanie's topic in PHP Coding Help
Thanks -
htaccess is how you go about it there is probably no other way.
-
PHP Validate Two Emails If Match or Not?
ZulfadlyAshBurn replied to siabanie's topic in PHP Coding Help
i would need to look into your code but for now, im rather busy studying for my prelims. -
External Style sheet will not link? Help please!
ZulfadlyAshBurn replied to Stalingrad's topic in CSS Help
use style class instead of tags. -
PHP Validate Two Emails If Match or Not?
ZulfadlyAshBurn replied to siabanie's topic in PHP Coding Help
you can actually use part of the normal js code and implement it on the jQuery. -
External Style sheet will not link? Help please!
ZulfadlyAshBurn replied to Stalingrad's topic in CSS Help
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; } -
PHP Validate Two Emails If Match or Not?
ZulfadlyAshBurn replied to siabanie's topic in PHP Coding Help
maybe just stick to normal js if you would like. link -
External Style sheet will not link? Help please!
ZulfadlyAshBurn replied to Stalingrad's topic in CSS Help
remove the <style> & </style> on the style.css and use link href to link it. <link href="style.css" rel="stylesheet" type="text/css">