Jump to content

akitchin

Staff Alumni
  • Posts

    2,515
  • Joined

  • Last visited

    Never

Posts posted by akitchin

  1. Ok, if you don't want to take any advice I won't waste my time.

     

    Here's me thinking you posted a link to your site so people could tell you what's good and what's bad about your site.

     

    no you are bored and trying to stir an argument and i have no reason to listen to you. if you actually have some helpful suggestions i will be all ears.

     

    your definition of "helpful suggestion" differs greatly from the generally accepted one. you define "helpful suggestion" as anything you will agree with. isedeasy had nothing but helpful intentions regarding your scaling issue. there's no need to be outright dismissive or contentious.

  2. it's worth mentioning that 8.5% of that tax is quebec-only (PST). the tax rate here (alberta) is 5%, as there is no PST here.

     

    this is just sales tax, not income.

  3. it's a pretty simple calculation:

     

    total + 13.5% of total
    = total + (13.5/100)*total
    = total + 0.135*total
    = total*(1 + 0.135)
    = total*1.135

     

    if you can't follow that, i would suggest looking up a basic math tutorial.

  4. And that doesn't sound conceited...

     

    so it's conceit to be offended when someone comes along and marginalizes work that you've taken the time to specialize and excel at, to nothing more than a "holier-than-thou" attitude? i think you're confusing conceit with indignity here.

  5. well, one major concern is that your background actually distracts the user from the message you're trying to get them to focus on. a simple, single-colour or at least patterned background would be a step in the right direction. you're also wasting a fair bit of space - you might consider enlarging the main content box a bit and giving some of the content more padding?

  6. try spybot search & destroy, as well as lavasoft ad-aware.

     

    [...] and mp3 etc etc. help me out.

     

    if you two had a "special song," i would start by deleting it. that's certainly a plausible and fitting place for her to have installed the spyware.

  7. a) it's not a very nicely-designed site. for such a small amount of content, you could certainly put a little more effort into prettying it up?

     

    b) dark themes make reading difficult, and considering most of your selling points lie within that single paragraph, you should be making reading the easiest thing for the user to do. try light backgrounds and dark letters.

     

    c) "Buisness" is not how one spells business.

     

    d) i would suggest putting the completed works at the top of the list, followed by coming soon - clients are often more interested in real, completed projects rather than ones that have yet to be.

  8. i used to be a PC fan, but since getting my XBOX360, i have a tough time deciding to sit at my computer and play when i have the option of sitting on my couch and playing. i pretty much only play online with a friend, and so far i only own rainbow six: vegas 2 and CoD: world at war. both very solid games.

     

    mind you, apart from this last weekend, i haven't touched the xbox since april.

  9. SELECT stuff FROM table WHERE WEEK(last_login_field) < WEEK(NOW())

     

    On a side note.. can MONTH() (if it exists??) be used the same way?

     

    indeed it can. in fact, MySQL has a whole series of handy functions for dealing with data, the only stipulation for their use being that you choose the appropriate data type for the given column:

     

    MySQL 5.1 Function reference

     

    for this thread in particular, have a look at 11.6: Date & Time Functions.

  10. neither of the above posts will work for the scenario proposed, as it will force a week's difference between logins (rather than one login per calendar week). try the query using WEEK() and see if it tickles your fancy (ie. solves your problem).

  11. what you would do is store the date of login as a DATE or a DATETIME field type. then, you can use WEEK() on that column to determine which week that last login was, and compare it with which week you're currently in:

     

    SELECT stuff FROM table WHERE WEEK(last_login_field) < WEEK(NOW())

     

    this would select all rows where the `last_login_field` occurred during a week prior to the current.

  12. it's because those variables are undefined, but you use them in conditionals and plug them into a string without checking if they're set first anyway.

     

    notices in general will not break any scripts (not strictly speaking at any rate - they could tip you off to any indirect messing up), but they point out places that your code could certainly be better. in this case, before using any undefined variables, you should check if they exist.

     

    if you want to have notices turned off, you can lower your error_reporting level using that function.

  13. Or if your string is supposed to have string in other places, and you only want them removed when next to the trailing hyphen, you would use this:

     

    $strWithSpace = '--abc d e f ghijklmno --';
    
    $newString = str_replace(' --', '', $strWithSpace);
    echo $newString; //Returns --abc d e f ghijklmno--
    

     

    actually, it will return:

     

    --abc d e f ghijklmno

     

    because you've replaced the entire " --" string with an empty one. you'd need:

     

    $newString = str_replace(' --', '--', $strWithSpace);

     

    EDIT: yosii, in future it would help to know exactly HOW neither of those work. what are you putting in, and what is coming out? my answer is still only a guess, because you haven't provided any information.

  14. when the error is on the closing PHP tag, usually it means there is a mis-matched brace in your code. a brace is also known as a curly bracket. indeed, you forget to close your initial if() statement block, so PHP is not expecting your code to end.

×
×
  • 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.