Jump to content

premiso

Members
  • Posts

    6,951
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by premiso

  1. I think most clients would rather have you as their slave
  2. Don't necro dead threads. Create your own, this was from 2007...
  3. Moving back, this is not a regex problem at all. As jesi pointed out, it was already answered in his original post. Edit: Looks like gurus cannot move anymore. Either or, it is not a regex issue.
  4. Wait...there is no Troll group? I have been lied to. And your posts are a lie to Philip. /me feels like an abused hooker.
  5. What do you have in place already? Show us the form and the php side of things and we can help you getting it secured.
  6. Revert back to the old policy, No more username changes?!
  7. Change the AllowOverride None to AllowOverride All under the /var/www and it should fix your issue after an apache restart.
  8. Does your apache allow override in the server definition?
  9. I would have kept my mouth shut! =\ Ninja Mode is pretty damn cool.
  10. Your topic is incorrect. It should be "404 Not Found"
  11. A true ninja. Ninja VANISH!
  12. "I don't always write code, but when I do I write it in one line."
  13. I would say this is a retarded topic since PHP6 has been canned and they are moving straight to PHP10.
  14. You sure can, however, it probably won't get turned into a link and just look awkward to the person who reads the email
  15. <?phpif (!defined('SYS_STARTED')) I think it should be <?php if not <?phpif but of course I could be wrong.
  16. Grasping at straws, but maybe this: $start_date = new DateTime(); $TD = $start_date->diff(new DateTime(strtotime($KickOffMatches[2])));
  17. Ok this is just weird: $RawTime = strtotime(date('H:i', strtotime($KickOffMatches[2]))); Why are you strtotime, then date, then strtotime again? However, ignoring the confusion there, your problem is that DateTime expects a timestamp, not a date modified format (unless you do createFromFormat). $start_date = new DateTime(time()); $TD = $start_date->diff(new DateTime($KickOffMatches[2])); Should fix the exception.
  18. Well without that we are spinning our wheels trying to assist you. You do know that the errors are generally logged to files as well. Depending on the WebServer, it should be in something like /var/log/apache2/error.log or /var/log/nginx/error.log or some form of that.
  19. For lowend VPS's: My favorite: http://buyvm.net Other decent ones: http://hostigation.com http://budgetvm.com http://chicagovps.net/ I have 1 VPS with the "Others" and 22 with BuyVM
  20. STOP POSTING IN THIS THREAD >.< =\ (cap rage) *premiso is now a sad panda! mmm Just for shits n giggles:
  21. It would help to post the fatal error message.
  22. You have to have some logic in it. He is using smarty for his .tpl. View logic, does require some logic to not duplicate code and even build stuff dynamically. You are on the right track, but that statement is just wrong. Now if he was doing Business Logic in the view Logic, ok. But looping through data and displaying it conditionally is OK to do and is needed, unless you feel like making 500 files and duplicating a ton of code. And... What? *premiso shakes his head slowly. And... It is just Smarty, I don't think the .tpl extension really matters just what smarty people tend to use. I am quite partial to .phtml myself
  23. internet.bs
  24. $insert = array(); while($row = mysql_fetch_assoc($AllWine)){ $unit_price = "$".number_format(($row['wish_bottle'])/($row['wish_case']), 2); //$unit_price2 = ($unit_price)*($row['wish_case']); $message .= "<tr> <td align='center'>".$row['wish_bottle_LTO']."</td> <td align='left'>".$row['wish_client']."</td> <td align='center'>".$unit_price."</td> <td align='center'>".$row['wish_case']."</td> <td align='right'>$".number_format($row['wish_total'], 2)."</td> </tr>"; $insert[] = "('', '".$_GET['FinOrder']."', '".$today."', '".$row['wish_client']."', '".$_GET['Total']."')"; } if (!empty($insert)) { mysql_query("INSERT INTO recording_tbl (record_id, record_client, record_date, record_info, record_price) VALUES " . implode(", ", $insert)); } That is what she meant. It is better and way more efficient to execute it all in one query (the syntax for that MySQL is called extended inserts). As long as I didn't make some weird syntax error that is
×
×
  • 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.