Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. Sticky time, please read...
  2. Doesn't look like spam, just someone looking for attention. You don't have to remember, it says it right under his name!
  3. I'm not sure that would work if they skipped an input in the middle for some reason, it might lose all the ones before. Just use a simple empty($value) check and if not, append to the query. Good point, but with the proper validation it should work. I guess it depends on how he set his system up.
  4. I'm assuming UNKNOWN isn't the actual name? You would have to loop through like premiso said. This will give you the values for any GET method variable in the URL.
  5. Damn emo's, always trying to bring people down with them.
  6. What exactly do you mean? If you use GET you're passing variables via a URL and have to use the $_GET method to retrieve those values. If you use POST then you have to submit your form somehow and use $_POST to retrieve all of your values. Please read the basics.
  7. No sorry. I interpreted your question the wrong way. :-X
  8. Can we see your query execution? Do you have any debugging statements? Are the test and production DBs located on the same server?
  9. I don't like your banner. Gray shades and small font... Spice it up a little!
  10. You should use an array to keep track of what the user input was. Can I see your code?
  11. Try this, haven't tested it. $x=0; foreach ($_POST as $key => $value) { if($x==0) {$sql_string = $value;} else { $sql_string .= ", ".$value;} $x++; } SELECT * FROM data WHERE flagentTID IN ('$sql_string')
  12. Do you mean something like this where 1, 2, and 3 are substituted with your 20 text field values? SELECT * FROM tablename WHERE fieldname IN (1, 2, 3);
  13. At work, glad you got everything figured out. Mark it solved next time!!!
  14. 1) You should use a proper model. Put your PHP code at the top except where you echo out HTML. 2) Of course you're not getting correct results. You are using the GET method but need to use the POST method. 3) What exactly does this mean? What is your input? What is the output? Is there a pattern?
  15. -Most of your basic HTML syntax is wrong. You're missing quotes everywhere, your submit button doesn't have a name, you're declaring the GET method for your form but don't use it in sample.php. -Here's what you should do. Read up on basic HTML syntax. -Instead of using the GET method use the POST method. -In sample.php you need to use the POST method to get the input from country: $country = $_POST['country']; There's a lot more I could post here but try those first and come back with your updated files.
  16. -What kind of critiquing do you want? Because none of the functionality works. -Too much blank space. If you don't use the rest of the page then condense it into a container or something. -Footer is more than halfway up the page. -I like the header a lot. -Color scheme is nice. -Don't know what exactly it is when I get there, maybe add a description of some sort. -Any search with "Calculator" results in an error: Array ( [0] => calculus ) Notice: Use of undefined constant calculus - assumed 'calculus' in /home/.marble/ryannaddy/dudeel.com/results/toolsCalculator.php(35) : eval()'d code on line 1 -Got an error for "People" as well, but can't duplicate it.
  17. Not tested. $encoded_site = urlencode("http://www.test.com/index.php?name=andy&friend=john"); $pass = "http://www.mysite.com/file.php?site=".$encoded_site; echo $pass; //may have to use echo urldecode($pass) to view properly
  18. Read the link to the manual that ProjectFear provided: $sql = mysql_query("SELECT * FROM data WHERE data = 'data1'"); $num_rows = mysql_num_rows($sql); echo $num_rows;
  19. Yes you can. You should write a recursive function that performs the database operations. At the end just call sleep(300). Sleep delays execution, 300 is in seconds = 5 mins.
  20. What's your question...?
  21. What do you mean nothing happens? In this piece of code you have to do either two things, redirect to sentpw.php or echo, "Error. Please Contact Webmaster". if($result) { header("location: sentpw.php"); exit(); } else { echo "Error. Please Contact Webmaster"; } Please turn on errors like gaza said: ini_set ("display_errors", "1"); error_reporting(E_ALL); I don't really see a problem with your code. You should echo out your variables and queries to ensure that they have the correct values. It may be something to do with the mail configuration. Try emailing something to yourself.
  22. Oh OK, I guess his post was deleted.
×
×
  • 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.