Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. Even so, I believe you have to restart your web server for the changes to take effect.
  2. Good, but in the future please be sure to use tags around code for proper formatting and syntax highlighting.
  3. You should have an id associated with the title so you can just increment and decrement by 1.
  4. What part are you having trouble with?
  5. Please share. Also, you should mark as SOLVED if that's the case.
  6. Please post your relevant code.
  7. You probably want to compare dates with strtotime. You can convert it back to proper format with date.
  8. SELECT them first.
  9. Why not? Are you supposed to assign $utest to that array? What is the value of $utest? Your code looks fine, I'm not sure what the issue is here... Please elaborate.
  10. You need to give date it's first formatting parameter: $today=date('m/d/y'); $time="6 MONTHS"; $expires = date('m/d/y', strtotime("$today + $time")); print "$today and $expires"; ?>
  11. If you hardcoding a username works then it's probably the session. Have you echoed the session array to see what it contains? Do you have session_start at the top of all the scripts that use sessions?
  12. You get some of the meds I didn't need... or a cold beer @Toby's (on the waterfront) I'm there!
  13. What's my prize?
  14. That's called a, "UNIX Timestamp", BTW.
  15. Whitespace: error_reporting(E_ALL ^ E_STRICT); global $nextone; $chosen1="another"; $chosen2=$_GET["nextone"]; // var_dump($chosen2); DON'T NEED THIS if ($chosen1==$chosen2) { header("Location:http://ww2.ohsd.net/bbp/reports/datamine1.php"); exit; }
  16. That's due to output/whitespace before you call the header function. Please post the code from the last header call to the top of the page, in tags. Here's a sticky for an in depth explanation: http://www.phpfreaks.com/forums/index.php/topic,37442.0.html
  17. I mean, the last one ordered would presumably be the last one inserted. But this way wouldn't be reliable. You would have to do something like: SELECT * FROM orders ORDER BY id DESC LIMIT 1 You need to have a 'date' column in your table to have queries like this. NOTE - Color tags are recognized inside code tags.
  18. What about the error_reporting? Did it output anything? Are you sure you don't have any HTML whitespace seeping through?
  19. You would need a date column in order to do that, how else can you know what the order is supposed to be? Anyway, it would be something like: ORDER BY date_field DESC Moving to MySQL Help section...
  20. We need more information. You should have an auto-increment id for the username's primary key.
  21. Put this at the top of your page, it will tell you what the error is: ini_set ("display_errors", "1"); error_reporting(E_ALL); You may have a whitespace issue. NOTE: Please use the built in tags around you code for proper formatting/syntax highlighting.
  22. [quote author=jackpf link=topic=54859.msg1176631#msg1176631 date=1241463323] That would save me a lot of time though. I download my entire site like 20 times a day when I'm editing it to make sure I don't screw anything up. [/quote] And this is exactly what subversion is for.  There are different versions you can revert back to if you screw anything up.  I'm not sure what hosts support CVS/SVN but it's definitely worth looking into.
  23. Exactly, w3evolutions do you have a question? I don't see any spam, are you trying to write your own tutorial?
  24. [quote author=Ken2k7 link=topic=54859.msg1176609#msg1176609 date=1241462215] CuteFTP has an editor I used back when I was still using Windows. [/quote] I see, I've never used an editor in an FTP client, probably wouldn't want to anyway.
×
×
  • 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.