Jump to content

Lamez

Members
  • Posts

    1,686
  • Joined

  • Last visited

    Never

Everything posted by Lamez

  1. Take a look at MySQL databases, then learn about MySQL querys. its a good start.
  2. Is this really a hard problem? I am not really sure on how to solve any of this.
  3. would a IF statement do the job?
  4. my goodness, lets use the code tags!
  5. ah! <?php $username = "john_awesome68"; $q = mysql_query("SELECT * FROM `users` WHERE `username`='".$username."'") $r = mysql_fetch_array($q); echo $r['username']; ?> mess around with that!
  6. you mean like it shows suggestions and you click on it, and it does not add it to the input box? If so look at Ajax or JS
  7. I actually need to see the form.
  8. you could also use session variables.
  9. post the code that has set that page as the action
  10. preg_replace_callback()
  11. Session Variables When they visit the index.php assign a unique session variable, then on the other page is the variable is not set redirect them\give them an error.
  12. ok I am getting this error: Warning: md5() expects parameter 1 to be string, array given in /html_test.php on line 11 Check out my link: KrazyPick Link :d This is the code I am using: <?php //DB Connection $HTML = $_POST['html']; $results = preg_replace_callback('%\b((?:www\.|http://www\.|http://).*?)\s%si', UpdateDB, $HTML); function UpdateDB($add){ $id = md5($add); mysql_query("INSERT INTO url_list (ID, URL) values ('".$id."', '".$add."')"); return "<a href=\"http://links.krazypicks.com?url=".$id."\">KrazyPick Link</a> "; } echo $results; ?> Also in the DB, under the URL column, all it says is Array
  13. pop up! with a flash player so the user can control if they want it on or off!
  14. cool looks useful, will this work, if I have a paragraph, with a link somewhere in the paragraph? example "Hello, my name is Awesome, you can call me cool. Here is a link to my website: www.mywebsite.com Have fun, and enjoy your day!" lol, will that bit of code be able to find the link in something like that.
  15. look at the bottom left of the page.
  16. Ok, I want to make a new function to go along with my ELC, and I want it to search the string to see if it contains something like, www., http://www., or http:// then I want it to encrypt it(the whole URL\Link), add it to the DB(the encryption of the link), and add the regular link to the DB. Then I want it to take the link the user posted, and change the name, and link it to my ELC. Any idea what functions I need to look at, besides md5(), and sha1()? ELC = External Link Checker http://links.krazypicks.com
  17. don't forget to mark the topic as solved.
  18. change this: <?php echo "Thank you, <b>$name</b> for the following comments:<br /><tt>$comments</tt><p>We will reply to you at <i>$email</i>.</p>"; ?> to this: <?php $name = $_POST['name']; $comments = $_POST['comments']; $email = $_POST['email']; echo "Thank you, <b>".$name."</b> for the following comments:<br /><tt>".$comments."</tt><p>We will reply to you at <i>".$email."</i>.</p>"; ?>
  19. instead of using $uploadby, in your mysql statement, use $_SESSION['username']
  20. Ya I have looked at their sandbox.
  21. Yes I want to know this information as well,
  22. Lamez

    ELC

    I removed all the blacklisted items.
  23. @bluejay002 lol, I thought that was understood.
  24. Thanks!
×
×
  • 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.