Jump to content

voip03

Members
  • Posts

    693
  • Joined

  • Last visited

Everything posted by voip03

  1. <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?
  2. $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
  3. <? $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"); ?>
  4. php redirect with a time delay similar to the Javascript redirect Does anyone know how to do this
  5. www.mywebsite.com/activate?php/id=x&code=3456756 correct way www.mywebsite.com/activate.php?id=x&code=3456756
  6. mysql_query("DELETE FROM Persons WHERE LastName='Griffin'"); http://www.w3schools.com/php/php_mysql_delete.asp www.tizag.com/mysqlTutorial/mysqldelete.php
  7. echo '<a href="?page_id=1072?currentpage=1&np=' . $num_pages . '">Next</a>'; $start = $_GET['$num_pages']*6; $display = $start+6;
  8. $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
  9. $start= $_GET['s']; $display= $start+6;
  10. check the values -> $start, $display
  11. SELECT * FROM `your_table` LIMIT 7, 12;
  12. http://www.w3schools.com/php/func_array_flip.asp let me know
  13. Your problem is when you go to page 2, result is still 1- 6 not 7-12.
  14. 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;
  15. please mark as solved. the topic solved button can be found at the bottom left of the page Thank you
  16. 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.
  17. $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>";
  18. Have you registered the session?
  19. Scenario #1: Visitor have sort the code? if so, can you please tell us what method you have used.
×
×
  • 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.