Jump to content

littlepeg

Members
  • Posts

    74
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

littlepeg's Achievements

Member

Member (2/5)

0

Reputation

  1. Hi, everybody. I just finished my first website. However, would you please suggest me what should I do if I want my website achieve high search frequencies and a high listing position? My website does include meta tags, but when I search in google, we cannot be found. Thank you very much. Any help would be appreciated. :)
  2. Hi MadTechie, it works now. Silly mistake. Thank you very much. :)
  3. Hi MadTechie, I just noticed I put the code you suggested in the wrong place. I changed it in the right place now and the error is: Unknown column 'email' in 'field list'.
  4. Hi MadTechie, thank you for your reply. I tried to change the code to what you suggested. The error message is the same: "Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/adtsfxfg/public_html/edit_user1.php on line 236". :'(
  5. I upload all the files for the website, and it connected to the database and most of the web pages works fine, except this one. :'(
  6. Hi, everybody. :)I met a problem and hope you can help me. Any help will be appreciated. I developed my first php website on my computer and tested it by using my university web domain, and it worked fine. However, when I upload this website to the other web domain that I applied. One of my web page cannot work properly, and shows error message: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/adtsfxfg/public_html/edit_user1.php on line 236. The codes are as follows: $query = "SELECT user_name, first_name, last_name, address, postcode, tel, email, agreetolist FROM users WHERE user_id=$id"; $result = @mysql_query ($query); // Run the query. [color=red]if (mysql_num_rows($result) == 1) { // Valid user ID, show the form.[/color] // Get the user's information. $row = mysql_fetch_array ($result, MYSQL_NUM); Would you please tell me why it works on one web domain but can't work on the other web domain. And how can I solve this problems. Thank you.
  7. Thank you very much. I will try it now. :)
  8. Hi GuiltyGear, thank you for your reply. However, you showed me how to output one pictures, but how would I output several pictures in a row? Thank you.
  9. Hi, I have a row of pictures (emoticons) at the top of the web page. And I want to output a story from my sql database underneath these pictures. Then I would like another row of the same pictures followed by another story from the database. Then I would like to continue repeating this sequence until all of the stories from the database are on this web page. How can I do this using php codes? I would be grateful for any help. Thank you.
  10. Hi, everybody, would you please tell me that what should I do if I want to output images using php code ? Any help would be grateful. Thank you
  11. Hi, it works well now. Thank you very much.
  12. There is no error. It just when I put three characters in for password, the value will be accepted rather than prompt a error message says: "Your password must be at least 6 characters long". :'(
  13. Hi, thank you. I tried it, but somehow still not working. :'(
  14. Thank you very much. I have a try now
  15. Oh, yes. Thank you. You found a mistake for me. I changed it. However, it is still not working, still could not check 6 characters for the entered password. if (!empty($_POST['password1'])) { if ($_POST['password1'] != $_POST['password2']) { $errors[] = 'Your password did not match the confirmed password.'; } else { [color=red]if (strlen($_POST['password1'])<6) [/color]{ $errors[]='Your password must be at least 6 characters long.';} else{ $p = $_POST['password1'];} } } else { $errors[] = 'You forgot to enter your password.'; }
×
×
  • 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.