Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. I assume you haven't tried it yet but, you're welcome!
  2. Look at $pagenum. It's ALWAYS equal to 1. $pagenum is never going to be reset when you click on a link (refresh the page). I think you should do: //This checks to see if there is a page number. If not, it will set it to page 1 $pagenum = (isset($_GET['pagenum'])) ? $_GET['pagenum'] : 1; Now you know what page you just clicked on to set up your links for the next click. $_GET['pagenum'] = the page that the user just clicked on $pagenum will equal $_GET['pagenum'] to do the calculations of what's next/previous/first etc... Do this make sense?
  3. Sure, if you're using Apache go here. You'll find plenty of examples. I'm not exactly sure what you're trying to do, there may be an easier way. Anyway I hope this helps.
  4. Nevermind it works. For some reason the first time I went there nothing happened... I think the game play is good. It would be better if the betting was on the same page... And it passes sql inject me!
  5. It doesn't do anything. I put a number in and clicked "Place Bet", the number disappeared and nothing happened. Maybe this is why? action="">
  6. Not after the page load, but you can use mod_rewrite to alter the URI to keep certain things hidden...
  7. Maq

    PHP URLS

    Yes, please just mark this as solved and start a new thread in the Regex section with what you have.
  8. You should have full access to it. It's just like normally connecting to a database on your server. All the settings should be the same except the database selection.
  9. The best thing to do is make an attempt and post a specific problem. This way, it shows that you tried so people will be more willing to help you AND it's easier for us because if there's a specific problem than we can usually answer relatively quickly. Good luck.
  10. Maq

    PHP URLS

    /a href="?([:\/\w\s\d\.]*)"?/
  11. Don't you mean elseif ($to == $result2->location_id) { echo " You are already in this city. " ; } Not: elseif ($to == $result2->location_id) echo " You are already in this city. " ; { }
  12. You need to store it somewhere. Either use another $_GET variable or store it in a hidden field.
  13. Maq

    $_GET

    I agree! I could probably fill the first page with the mistakes and comments I've seen...
  14. Maq

    $_GET

    Hehe. Man there have been some pretty bad mistakes today. I may have to use this one as a signature...
  15. Doesn't matter, now you're just going to copy and paste what I wrote and really not learn much. I used to do the same thing until I got a web development position for my internship and had to write my own queries everyday. :-\ Trust me, failing miserably is much better for you than CnP'ing.
  16. Maq

    $_GET

    I just tested it on my server and it works. Are you sure you're editing your localhost file? Other than that I'm not sure, you don't have to turn anything on to have GET to work.
  17. Maq

    $_GET

    What's the URI?
  18. Maq

    $_GET

    Your syntax is wrong!!!!! $testingget = $_GET['testing'];
  19. Please make an attempt next time. UPDATE ibf_topics SET state = 'Open' WHERE forum_id = 397
  20. Maq

    $_GET

    What is happening? Could you post some code?
  21. That wouldn't be any fun!
  22. emexinc, You may want to post ALL of the relevant code (I assume there's more) so we can help you and not guess.
  23. If you're restricted to use the excel sheets then you have to use mark bakers solution. What he suggested are just packages that have a special API to handle .xsl(x) files. Good luck!
  24. Why are you assigning a number to a $_GET? I assume for testing purposes. Try this, not sure if it's exactly what you want but should give you a good idea: *NOT TESTED* $_SESSION['idnum'] = 4; $_GET['id'] = 1; $id = $_GET['id']; $ses = $_SESSION['idnum']; $query "SELECT * FROM table WHERE id = $id and friend = ANY (SELECT friend FROM table WHERE member = $ses) GROUP BY member";
  25. values ('$column_1', '$co,lumn_2')") or die(mysql_error()); Should be: values ('$column_1', '$column_2')") or die(mysql_error()); Sorry, I don't really have a testing environment right now
×
×
  • 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.