Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. Then how are you supposed to remember a users login? You should encrypt the information in your cookie.
  2. Just like how you pass values to another page, pass it to itself.
  3. Still may fall off the screen, better use crazy glue.
  4. Yep that will get you the bare-bones... Another idea is to try and get PHPBB1.0 or 2.0 and find a very basic style for it. That way you can add features on if you need them.
  5. (viewing in FF3) -When you click on support the left nav needs to be moved the the right a little to fit in the container. -Very low disk space offers... Other than what was mentioned before, I like it.
  6. You should really check out the pagination tutorial but... //for next pass $start += 1; //for prev pass $start -= 1; I think you meant $imgid-1 for previous. Anyway, why would they eventually get deleted? You should be checking if the rows exist so you don't get any errors but, for example, if you reach row 0 you should not show the "prev" link. Same with the last row, you shouldn't show "next". Am I understanding you correctly?
  7. mysql_fetch_assoc and mysql_fetch_array are basically the same thing.
  8. Should work, not tested... Not sure how to do it with 1 query. $inc = 2; //should be: $num_clicked = $_GET['position']; $num_clicked = 5; $prev = $num_clicked - $inc; $next = $num_clicked + $inc; $next_query = "SELECT * FROM table LIMIT {$num_clicked}, {$inc}"; $prev_query = "SELECT * FROM table LIMIT {$prev}, {$inc}";
  9. Maq

    search help

    It depends. If you just want simple example with a field and a query, not very long. I already gave you the PHP/MySQL part now all you have to do is create a basic HTML form with an input field for the letter the user wants to search. Let me know if you need help, please provide code before asking for it.
  10. Can we see your script? Why can't you use the POST method with hidden fields?
  11. Maq

    search help

    Yes, you can use a wildcard then order_by the field. For example if you want to grab the letter that was entered in the field by the user then you would probably do a post and put in in the query. Then you can have and ORDER BY clause. $letter = $_POST['user_letter_search']; $result = mysql_query("SELECT * FROM table_name WHERE name LIKE '{$letter}%' ORDER BY name ASC") or die(mysql_error()); If you want the user to toggle between ascending/descending then I would probably just make the "ASC" a variable.
  12. -Header needs to be re-designed. -You have, "site360,deadly,animal beasts,horrible,worlds,fastest,talles,biggest,highest", at the top of your page. Looks like these are meta keywords or something. -I don't like the background at all...
  13. You're not executing the query, you're just assigning it to a string... mysql_query("UPDATE news SET archived='1' WHERE id = $archived[$i]");
  14. Maq

    search help

    1) Make a form with fields and pass the values to the query. 2) Use: ORDER BY *your_field* ASC; ORDER BY *your_field* DESC; If could show some code, elaborate, you know that sort of thing, maybe we could help you further.
  15. Considering I haven't seen your script, nor do I know what it does, it's impossible to say. The probable answer is no, but if you could post your code and explain what it does I, or someone else, may be able to give you a definite answer.
  16. Neither do I, usually I'll just put links, copyright, and if it's powered by something. I Googled it for you and thought this site could give you some good ideas.
  17. -Orange colored links are really small on the "snippets" link. -Banner is very boring. -Feels like the site leans to the left a little. I like centered sites better. -Footer is empty.
  18. Amazing, I typed your problem description in Google and found this link in 2 seconds...
  19. Yes there is a way. The best way to do this is with AJAX.
  20. I think bobbinsbro is right, you need to add this context parameter in the file function. Try this: function checkcard($newcard) { $dealtcards = file("file.crd", FILE_IGNORE_NEW_LINES); if (in_array($newcard, $dealtcards)) { return true; } } ***Warning, I think FILE_IGNORE_NEW_LINES only work with PHP 5.0+.
  21. Maq

    newbee

    Do you have access to a web app like PhpMyAdmin? If you do then it's very easy to create tables and fields. What exactly are you trying to accomplish? How are you inserting into the database? Please show us some sort of code we can work with...
  22. I don't think it has to be moved. Just end it here and start a new one in the appropriate section.
  23. He never asked anyone to write the whole script for him. And yes you can have people write a whole script for you, it's called the freelance section. Looking at his last post it looks like he did Google AJAX and is now asking for specific help. You're right, I think there is an AJAX section, you may have better luck starting a whole new thread devoted to your next question.
  24. What is it SUPPOSED to do?
  25. Exactly. Even though ours were very similar mine gave some examples of substitutions you could use instead of XML.
×
×
  • 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.