Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. If you don't use kenrdnsn's solution, then you're going to have to invoke the sort method on the array that contains all the file names ($files). glob is made for such a task, you should probably use it instead.
  2. MIN() is an aggregate function that takes a field, not a value. Try: SELECT date_field FROM table ORDER BY date_field ASC LIMIT 2
  3. Use double quotes around the query string or else you will have to escape the single quotes around the vars. VALUES('$var1', '$var2', '$var3')
  4. Assuming they're 'DATE' types, you can use: ORDER BY date_field ASC LIMIT 2
  5. Sweet. You could study up every time you take a sip. Another good one for those of you who deal with CSS a lot: http://www.zazzle.com/css_is_awesome_mug-168716435071981928
  6. Considering that sort takes an array, you may want to give it the array with the folder names.
  7. $new = "INSERT INTO jos_keyword_filter (`IP/UA`) VALUES('$addFilter')"; $result = mysql_query($new) or die(mysql_error()); nice, it worked. Aren't ticks disabled in safe mode though? Sorry, I don't know.
  8. An empty array and a variable by itself with incorrect syntax. What exactly is that supposed to do?
  9. You're welcome BTW - You can mark the topic solved by clicking on the link in the bottom left.
  10. - Get rid of the ads until you have a decent amount of traffic, unless you like getting a $10 check from Google every 3 months. - The banner looks very unprofessional. You stole Joomla!'s icon, changed the colors and plain black text for your banner font. The gray shades also don't match. - Other than that it looks clean and easy to read and navigate. In other words, all of the 3rd party software that has been integrated into the site looks nicely merged.
  11. \n - Newline \r - Carriage Return Like I said before, newlines and carriage returns are used for text emails, 's are used for HTML. Are you still having this issue?
  12. PHP Help. Don't worry, I moved it there already. //TEXT $content .= $_POST['fullname'] . "\n\r"; $content .= $_POST['coname']; //HTML $content .= $_POST['fullname'] . " "; $content .= $_POST['coname']; Text emails use newlines and carriage returns, HTML uses . Can you post your header information as well?
  13. Either '\n\r' or ' ' should work. What's your header look like?
  14. I'm not sure what you're trying to do. If $_SESSION['myusername'] is not set then it redirects to "index.php". If it is set then it does nothing... The other code wouldn't even be executed.
  15. Looking back on it, you've posted 2 different scripts. Which is it?
  16. The only thing your script should be doing is if $_SESSION['myusername'] is not set then it redirects to index.php. What exactly is not working?
  17. I've never used dreamweaver so it could be something specific to that editor. Maybe, I'm not sure what you're referring to. I don't think you do either.
  18. Echo out your session array to see what's actually in it. print_r($_SESSION); (after your session_start(); line)
  19. There is no > in your code. What do you want me to say? What color is the highlight? What error does it output?
  20. When someone doesn't answer your question within 10 minutes please don't start a new thread about it. http://www.phpfreaks.com/forums/index.php/topic,261884.msg1233169.html#msg1233169
  21. What? It doesn't surprise me that Dreamweaver generated erroneous code.
  22. Just put it at the top directly after your opening
  23. Then change it to 3 seconds...
×
×
  • 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.