voip03
Members-
Posts
693 -
Joined
-
Last visited
Everything posted by voip03
-
<html> <head> </head> <body> <h2> hello</h2> <body onLoad="setTimeout('delayer()', 5000)"> <h3> Hello world</h3> </body> </body> </html> can write a code like it?
-
Need help selecting values from a MySQL populated dropdown menu :)
voip03 replied to manuelV's topic in PHP Coding Help
$options.="<OPTION VALUE=\"$id\">".$name.'</option>'; use echo echo "<OPTION VALUE=\"$id\">".$name.'</option>'; http://www.w3schools.com/TAGS/tryit.asp?filename=tryhtml_option_value -
redirect with a time delay similar to the Javascript redirect
voip03 replied to voip03's topic in PHP Coding Help
alternative to onload in js -
<? $title = "Activate Your Account"; require("styles/top.php"); require('connect.php'); $id = $_GET['id']; $code = $_GET['code']; if ($id&&$code) { $check = mysql_query ("SELECT * FROM users WHHERE id='$id' AND code='$code'"); $checknum = mysql_num_rows($check); if ($checknum==1) { //run a query to activate the account $acti = mysql_query ("UPDATE users SET activated='1' WHERE id='$id'"); die("Your account is activated. You may now log in"); } else die("Invalide ID or Activation code."); } else die("Data Missing!"); require("styles/bottom.php"); ?>
-
redirect with a time delay similar to the Javascript redirect
voip03 replied to voip03's topic in PHP Coding Help
is it possable with PHP -
Need help Deleting/Updating users in a database
voip03 replied to MjM8082's topic in PHP Coding Help
MjM8082 do u know how to delete a recoed. -
www.mywebsite.com/activate?php/id=x&code=3456756 correct way www.mywebsite.com/activate.php?id=x&code=3456756
-
can u use trim
-
How to Delete User from MySQL database in php file
voip03 replied to MjM8082's topic in PHP Coding Help
mysql_query("DELETE FROM Persons WHERE LastName='Griffin'"); http://www.w3schools.com/php/php_mysql_delete.asp www.tizag.com/mysqlTutorial/mysqldelete.php -
echo '<a href="?page_id=1072?currentpage=1&np=' . $num_pages . '">Next</a>'; $start = $_GET['$num_pages']*6; $display = $start+6;
-
$query = "SELECT ticket_number, first_name, surname, email, product, retailer, DATE_FORMAT(dop, '%d %M %Y') AS dop, message, address, DATE_FORMAT(created, '%d %M %Y %r') AS created, status FROM support_dev WHERE status='Closed' ORDER BY ticket_number ASC LIMIT 7, 12";} do it manually
-
$start= $_GET['s']; $display= $start+6;
-
check the values -> $start, $display
-
SELECT * FROM `your_table` LIMIT 7, 12;
-
http://www.w3schools.com/php/func_array_flip.asp let me know
-
Your problem is when you go to page 2, result is still 1- 6 not 7-12.
-
When you go to page 6, need to display number of result. eg. Page1 display only 1-5 results Page 6 -> 30-35 In query u need to limit 30 to 35;
-
please mark as solved. the topic solved button can be found at the bottom left of the page Thank you
-
You will get error
-
Learn to google it
-
PHP session solves this problem by allowing you to store user information on the server for later use (i.e. username, shopping cart items, etc). However, this session information is temporary and is usually deleted very quickly after the user has left the website that uses sessions. It is important to ponder if the sessions' temporary storage is applicable to your website. If you require a more permanent storage you will need to find another solution, like a MySQL database. Sessions work by creating a unique identification(UID) number for each visitor and storing variables based on this ID. This helps to prevent two users' data from getting confused with one another when visiting the same webpage. Note:If you are not experienced with session programming it is not recommended that you use sessions on a website that requires high-security, as there are security holes that take some advanced techniques to plug. Starting a PHP Session Before you can begin storing user information in your PHP session, you must first start the session. When you start a session, it must be at the very beginning of your code, before any HTML or text is sent. http://php.net/manual/en/function.session-start.php http://www.w3schools.com/php/php_sessions.asp Ps. Learn to google it; you will get more more answer.
-
$message = "Hello $firstname. Welcome to *******.com Below is a link for you to activate your account on ******.com\n\n <a href='http://www.sitename.com/login.php'>Clicke Here to Activate Your Account: http://www.*******.com/activate.php?code=$code</a>";
-
Have you registered the session?
-
Scenario #1: Visitor have sort the code? if so, can you please tell us what method you have used.