Search:

Type: Posts; User: mcarman

Page 1 of 2 1 2

Search: Search took 0.07 seconds.

  1. Thread: SQL Timer?

    by mcarman
    Replies
    5
    Views
    756

    Check with your web host, most good web hosts...

    Check with your web host, most good web hosts will let you set up cron jobs, especially if they offer PHP-MYSQL support. If your host has a user interface like C-Panel or something look around for a...
  2. Thread: SQL Timer?

    by mcarman
    Replies
    5
    Views
    756

    You can do it by running a php script with a cron...

    You can do it by running a php script with a cron job or through windows task scheduler (depending on the server OS you are using).

    have it run your script, ex: c:\>C:\php\php.exe reset_fields.php...
  3. Replies
    5
    Views
    852

    Technically true, but I hate having to escape...

    Technically true, but I hate having to escape things if I don’t have to. And the code reads easier if the SQL is long or frequent.
  4. Are you still having trouble with this? If so, I...

    Are you still having trouble with this? If so, I had written a javascript similar to what I think you are talking about a while back and it might work for you. My script uses one select box of...
  5. Replies
    5
    Views
    852

    Five things i noticed in the INSERT sql: 1)...

    Five things i noticed in the INSERT sql:

    1) You need to use double quotes ON the sql so you can use single quotes IN the sql statement: $sql = "INSERT INTO users VALUES('', 'autoID', 'username',...
  6. Replies
    4
    Views
    566

    i would write it as: ...

    i would write it as:

    if(mysql_num_rows($result) == 0) {
    echo no records
    } else {
    while ($row = mysql_fetch_array($result)) {
    ...
  7. Replies
    4
    Views
    383

    Also, make sure that your web hosting company is...

    Also, make sure that your web hosting company is not inserting any of their own scripts in there. I had a problem with an old web hosting company of mine that kept adding their own stat tracking...
  8. run the php.exe and give your file as a...

    run the php.exe and give your file as a parameter.

    c:\>C:\php\php.exe myfile.php

    your php file can run sql or any other php function.
  9. You can use task scheduler however it is nowhere...

    You can use task scheduler however it is nowhere near as comprehensive as cron jobs but it will still work. You just have to make several entries for the same thing to have it run your task around...
  10. no, it wont give your error message like that...

    no, it wont give your error message like that alone, i was more showing you how to redirect on error. but you can simply pass the error with the redirect string like this:


    if (!$name) { ...
  11. the format should be like this: if ((!$this)...

    the format should be like this:

    if ((!$this) || (!$that) || (!$theotherthing)) {
    header("Location: register.php");
    exit;
    }
    else {
    do something;
    }
  12. Thread: SMTP Mail

    by mcarman
    Replies
    3
    Views
    469

    You dont need access to anything, all you need to...

    You dont need access to anything, all you need to know is who the service provider is. ex: cox, comcast, roadrunner... then go to their home page and look under help->mail setup or what not and they...
  13. Replies
    10
    Views
    1,330

    Hmm… I don’t know what I was thinking; I don’t...

    Hmm… I don’t know what I was thinking; I don’t suppose it would be a problem performance wise to put the data in your DB. I would still organize it by page rather than paragraph though.

    To answer...
  14. Replies
    10
    Views
    1,330

    Wow, that’s a lot of typing. To be honest I have...

    Wow, that’s a lot of typing. To be honest I have never dealt with putting that much data, an entire books worth, in to a database. If you are just working with a few books I guess it wont be too bad...
  15. Replies
    10
    Views
    1,330

    Let me ask you, because I am not completely...

    Let me ask you, because I am not completely following what you are planning to do, are you storing the entire contents of the book in your db? I was assuming you were just reviewing the books or...
  16. Replies
    10
    Views
    1,330

    If you want to make sure your project is not...

    If you want to make sure your project is not limited you should review your database normalization rules. That is the key to flexibility and scalability. I see a few potential rules violations but...
  17. Replies
    3
    Views
    815

    If I am following what you want, you want the...

    If I am following what you want, you want the email that is sent to 'question@server.com' to display the subject, email body and the persons email that sent it?

    If that is what you are looking...
  18. Thread: PHP sessions

    by mcarman
    Replies
    7
    Views
    706

    They would need more than just the login script...

    They would need more than just the login script but if you are not comfortable posting it then PM it to some one you trust who knows what to look for. But if you look around this forum you will see...
  19. Thread: PHP sessions

    by mcarman
    Replies
    7
    Views
    706

    You may have to post your login script for...

    You may have to post your login script for analysis. There is definitely an error somewhere.

    EDIT: I wont say definitely but its highly likely.
  20. Thread: Session Help!

    by mcarman
    Replies
    2
    Views
    645

    That is a tricky situatioin. I would start by...

    That is a tricky situatioin. I would start by rethinking your ordering. Perhaps the text to engrave should be the key and the product a simple value since the text is what needs to be unique.
    ...
  21. Replies
    3
    Views
    799

    Rather than go in to a long winded explanation I...

    Rather than go in to a long winded explanation I will simply present you with this: How to

    But like Maverick said, it is easier, faster and more efficient to just store the name of the image and...
  22. Thread: PHP sessions

    by mcarman
    Replies
    7
    Views
    706

    What errors is it generating? Thats the most...

    What errors is it generating? Thats the most helpful thing to post if you are incountering problems that you need help with.

    With out knowing what errors may be occuring the only thing I could...
  23. Replies
    8
    Views
    717

    Jazzgame is correct, you should have quotes...

    Jazzgame is correct, you should have quotes around $ip. I would change your sql to "SELECT a_authenticate FROM authen WHERE a_ip =' $ip' ". This should correct the problem.
  24. Thread: Php Stmp

    by mcarman
    Replies
    5
    Views
    690

    Are you trying to use a username and password in...

    Are you trying to use a username and password in yout SMTP settings? If so remove them and try it with out and see if it works.
  25. Thread: VTM questions

    by mcarman
    Replies
    14
    Views
    1,587

    My fault, I am actually using MySQL v4.0.17,...

    My fault, I am actually using MySQL v4.0.17, since you are using 4.1 read this:

    MySQL 4.1 and up uses an authentication protocol based on a password hashing algorithm that is incompatible with...
Results 1 to 25 of 34
Page 1 of 2 1 2