Jump to content

zrweber

Members
  • Posts

    22
  • Joined

  • Last visited

About zrweber

  • Birthday 08/09/1990

Profile Information

  • Gender
    Male

zrweber's Achievements

Member

Member (2/5)

0

Reputation

  1. I have a question. I have a bunch of URL's I'd like to shorten. Here are examples of what the urls look like http://www.zrweber.com/websites/en/website1 http://www.zrweber.com/websites/en/website2 http://www.zrweber.com/websites/en/website3 Is there a way I can keep these sites in the directory, however if a url is typed like: http://www.zrweber.com/website1 It goes to: http://www.zrweber.com/websites/en/website1 I have HUNDREDS of sites I'd like to do this with. Is there an easy solution? Thanks!
  2. I'm making a checklist. One table holds the list with IDs. There are about 224 rows, each with its own ideas. Now I have another table to hold user accounts. When you create an account, it shows you a fresh new checklist that you need to start checking off. Could anyone please share techniques so I can have multiple accounts have their own list they need to check off? (ie, when a new person creatures a new account they should have their own list with NOTHING checked) The only way I can think of doing this is making 224 fields for the user account with the IDs of the checklist table to check if I checked it or not. Surely there's an easier way? Thanks
  3. I've had this concept for something I've been wanting to do for awhile, but I need to know if it's even possible in PHP. I've been seriously playing with PHP for a few months now and here's what I was wanting to do. On this website there is a list of players currently online http://www.tibia.com/community/?subtopic=worlds&world=Solera Is there anyway I could grab those list of players and store their names into a .txt file? This is just for fun. My actual goal is to create something that's grabbing that list of players every 5 minutes and showing me who has logged off and who has logged on.
  4. I have a form and a validation both on the same page, however I'm getting notices since I have undefined variables. How do I get around this? Notice: Undefined index: submit in C:\xampp\htdocs\5dollar\register.php on line 10 Notice: Undefined index: password in C:\xampp\htdocs\5dollar\register.php on line 12 Notice: Undefined index: repeatpassword in C:\xampp\htdocs\5dollar\register.php on line 13 Notice: Undefined index: paypalemail in C:\xampp\htdocs\5dollar\register.php on line 14 $submit = $_POST['submit']; $password = strip_tags($_POST['password']); $repeatpassword = strip_tags($_POST['repeatpassword']); $paypalemail = strip_tags($_POST['paypalemail']);
  5. That's simple! Thank you, that's exactly what I needed. How would I do it if I were to want results 5-10 instead of 1-10? EDIT - Nevermind, I figured it out. Thanks again
  6. I'm having some difficulty. I've tried a few things with no luck. :'( Is there a way where I can take only the first 10 results of $row['username']? $query = mysql_query("SELECT * FROM users ORDER BY dirStamp DESC") or die("Sorry there was an error."); $numrows = mysql_num_rows($query); while ($row = mysql_fetch_assoc($query)) { echo $row['username']; echo "</br>"; } Thanks in advance!
  7. Alright, I have a Datetime field in my database which I'm trying to store information in. Here is my code to get my Datetime, however it's returning to me the wrong date. It's returning: 1969-12-31 19:00:00 $mysqldate = date( 'Y-m-d H:i:s', $phpdate ); $phpdate = strtotime( $mysqldate ); echo $mysqldate; Is there something wrong with it?
  8. I have an idea of how I'm going to do it. I've only minorly used PHP, I know enough to make a pretty decent user registration and what not. And yes, I already have a data base where the people using this list will be registered and what not. My question is, say someone adds themselves to the list or bumps themselves up, how do I go about pushing everyone else down?
  9. How hard would something like this be? I have a database with all my users. I need an empty list and when a user clicks a button "Add me to the list" they are added to the first position in the list Slots 1. Tom 2. 3. 4. 5. Later, Jerry wants to be added to the list. So this happens Slots 1. Jerry 2. Tom 3. 4. 5. More people join the list 1. Bob 2. John 3. Jerry 4. Tom 5. Tom gets upset clicks the same button to join the list again, and he's bumped back up to first place. Slots 1. Tom 2. Bob 3. John 4. Jerry 5. Is this possible? And is so, how would I go about getting started on such a thing? I've been using PHP for about a year and a half.
  10. Alright, so I have a textarea where users can put in text. Everytime they put [ani] and click submit, I want the output to change [ani] into an html code: <img src="mypic.gif"> Is this possible?
  11. Alright, so I just started picking up PHP again and I have a pretty simple question. I have a html form that takes a string then writes it on another page. My problem is when I use quotations I'll get slashes in them on the page it writes the string on. Is there a way to clean that stuff up?
  12. So I just started working with php (not programming) a couple days ago. In this formula, I need to round something down to the nearest 5 OR 0. Whatever comes first. Any thoughts on how i might do this? Here's what I have so far. <?php $magicLevel = $_POST['magicLevel']; $playerLevel = $_POST['playerLevel']; $rune = $_POST['rune']; //gets the value "lmm" $maxDamage = 0; switch($rune) { case "lmm": $maxDamage = ($playerLevel*0.2)+($magicLevel*0.81)+4; break; } echo $maxDamage; ?> What I need to round down is this part: ($playerLevel*0.2) Thanks in advance!
  13. I'm sure this is easy, but I haven't messed with PHP in 2 years and need a huuuugee refresher. But I need something simple. I need a textarea that would show the HTML of another page, and allow you to edit the HTML of that page and save it, thus updating that page. Example: textarea.php has a textarea that shows the source of index.php When you edit and save the changes of the textarea on textarea.php it updates index.php This is really simple I'm sure, I just need a refresher on how I'd go about making this! Thank you very much for your time!
  14. How exactly do I do that? I'm using PHPMyAdmin, I dont know much at all about DB's, again I'ma big noobie lol but I'm really trying to learn PHP and MySQL.
×
×
  • 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.