Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. Maq

    [SOLVED] My Rank

    SELECT username FROM table WHERE score > (SELECT score FROM table WHERE username = '$username');
  2. Maq

    Search

    So what's the problem? Do you get errors, what actually happens? First of all NEVER use short tags always start PHP with "<?php". How are you supposed to get $row['name'] when you only SELECT orig?
  3. To display all the info you need a while loop like this: $resulttargetcr = mysql_query("SELECT Target FROM table WHERE Country='US'") or die(mysql_error()); while($rowtargetcr = mysql_fetch_row ($resulttargetcr)) { echo $rowtargetcr['ID'] . " - " . $rowtargetcr['Country'] . " - " . $rowtargetcr['Target'] . " "; } Then just do your other query inside this while loop.
  4. Yeah that mean you have an error somewhere. Add this to the top of your script: ini_set ("display_errors", "1"); error_reporting(E_ALL); Like I said, you need to use HTML table tags to format neatly.
  5. Hmm, that's good to know. I thought it still returns an empty array. I guess not...
  6. Try: foreach($_POST['state'] as $statename)
  7. If you want a table you need to use HTML table tags to format it. Did you get an errors? Try this: //execute the SQL query and return records $result = mysql_query("SELECT id, sandwich, price FROM sandwiches") or die(mysql_error()); //fetch tha data from the database while ($row = mysql_fetch_array($result)) { echo $row['sandwich'] . " " . $row['price'] . " "; //display the results }
  8. Where is this data coming from? All you do in your script is display all the sandwiches and id's from the sandwiches table. You need to use INSERT. But again, where is this data you would like to 'place in your mysql DB'?
  9. I don't want to show this code it's a google analytics code i just want to paste it on every page so that i track my users their visits .... I know what Google Analytics is. Just put it in the footer or header include file, then it will keep track of every page.
  10. The file size should be fine as it is very small for DB data. I would run this script via CLI. Nice script BTW, short 'n sweet!
  11. First of all, I don't use Joomla so I'm not sure how the whole system works. Where do you want to add these lines (header, footer, nav)? Check to see if the location of where you want to add these lines is just an included file.
  12. I can't believe I'm giving this tip, use ctl+f and find $agreement. If you are positive it's an array then print_r will work: print_r($agreement);
  13. Very awesome, I'm going to definitely try it out!
  14. Maq

    Need Some Help

    1) Wrong section. 2) Your question doesn't make any sense. 3) What KIND of information? 4) Immediately... good luck!
  15. Isn't the header included on every page?
  16. What exactly do you mean... ???
  17. He's probably changing it as we speak... type...
  18. Still has 5 SQL Injection FAILURES. You want me to list them om?
  19. Sure, that's what a lot of sites do. They have a list of like 10 questions they ask randomly.
  20. Random, or, you could make up your own weird question.
  21. I agree with you. But the problem with that is when the i7 Core finally comes out, in the next few months you're going to wait for the i8 Core to drop, then a few more months, guess what? the i9 will be out in a couple months. See the cycle? You mine as well wait until you HAVE TO upgrade, IMO.
  22. Why can't you just add it to the header...? Then it would be only inserting it on 1 line. Just do it a row below the header. Try it out! Then it should be easy. Or you don't think Joomla uses HTML? lol
  23. The simplistic look is well accomplished. It's a little too simple for me, but if that's what you want. I like the design as a whole. A few points of opinion: -Give the footer some color. -Give the text some color (gray). -IMO the outer glow of the leaf looks good. Other than that I would need to see some more pages.
  24. Use a captcha. Either that or ask a simple question for the user to answer, "What's 2 + 2?"
  25. This is an odd question. So you, or the guys, developed enterprise level systems that aren't efficient OR secure? Google, tutorials, development standards, books etc... Amazon.com?
×
×
  • 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.