www.webdeveloper.com

Search:

Type: Posts; User: towerboy

Page 1 of 6 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    3
    Views
    660

    OK, this is what I have now. while($row =...

    OK, this is what I have now.


    while($row = mysql_fetch_assoc($result)) {
    if($row['hour'] !== $hour) {
    if($started) {
    echo "</tr>\n";
    ...
  2. Replies
    3
    Views
    660

    Wow, that looks so much better and load time is...

    Wow, that looks so much better and load time is drastically better. I made a change in the php code so that only the first minute was added to the table and duplicates were skipped, like this:
    ...
  3. Replies
    3
    Views
    660

    mysql time activity table

    Hello,
    This is what I have. One MySQL database/table with epoch time stored in one column and another logic number in another column. Looks kinda like this:


    epoch d1
    1391883000 1
    1391883026 0...
  4. Replies
    1
    Views
    714

    Or, if there is another way to build the database...

    Or, if there is another way to build the database that would make viewing the data easier, I would be open to that as well. Basically I have a bunch of microcontrollers all over and they are sending...
  5. Replies
    1
    Views
    714

    Find number of fields in MySQL record

    I am having a hard time trying to grasp how to do what I need to do here. I have a Database and inside I have a table (siteIndex) and each record has a list of user friendly names, all the other...
  6. Replies
    1
    Views
    854

    OK, so I finally found out a way to do what I...

    OK, so I finally found out a way to do what I need. Here is what is working for me.


    <!DOCTYPE html>
    <html>
    <head>
    <script>
    function up()
    {
    document.feedback.location =...
  7. Replies
    1
    Views
    854

    onmousedown send GET request

    Hello,

    I obviously don't know what terms to use when searching for this, so here is what I want to accomplish...

    I want to have a few buttons on a page, and each button has its own onmousedown...
  8. Replies
    5
    Views
    1,435

    The field type is "int" and this is the raw data...

    The field type is "int" and this is the raw data from 20 rows:

    1373261982
    1373261401
    1373261180
    1373260729
    1373260501
    1373259601
    1373258963
    1373258701
  9. Replies
    5
    Views
    1,435

    Thank you for the reply. I played around with...

    Thank you for the reply. I played around with that but all that does is return a single record from a week ago. It is at 6:30 PM, but the table is full of more than just that record that meets my...
  10. Replies
    5
    Views
    1,435

    Get row where epoch equals zero seconds

    Hi, I would like to know if there is a way to get row results where the stored epoch time is matched to the quarter hour and zero seconds. Like this:

    12:00:00
    12:15:00
    12:30:00
    12:45:00...
  11. How old? But only show two measurements of time.

    Hi,
    I have spent hours trying to come up with a solution to my problem but can't wrap my mind around anything that will work. What I have is 4 variables. They are:

    $days
    $hours
    $minutes...
  12. Replies
    2
    Views
    2,938

    OK Thanks! That is the super simple thing that I...

    OK Thanks! That is the super simple thing that I missed.

    Jeremy
  13. Replies
    2
    Views
    2,938

    onClick pass input box to function

    Hi,
    I am looking to do something with a few input boxes and a button that passes all of the input box values to a function but I can't get it to work. In IE when I try to send one of the values to...
  14. Never mind everyone... I got it figured out... ...

    Never mind everyone...
    I got it figured out...


    function checkit(chk){

    var insert_num = "insert" + chk;

    if (eval("document.repeaters." + chk + ".checked") == 1){
    eval(insert_num +...
  15. [RESOLVED] checkbox name passed to function

    Hi all,
    I have lots of checkbox's and when clicked on or off they need to call a function and evaluate true or false whether that checkbox is checked or not. This is what I have so far:


    // List...
  16. Replies
    2
    Views
    988

    OK, I can figure out how to subtract the hours by...

    OK, I can figure out how to subtract the hours by "X" but what if it goes on to the previous day? Example:

    2008-02-22 05:13:47 subtract 8 hours = 2008-02-22 21:13:47
    But the date stays the same....
  17. Replies
    2
    Views
    988

    Timestamp -8 GMT

    Hey all,
    I have a timestamp in the sql server and when I call that field I get:

    2008-02-22 18:13:47
    I need it to render:

    2008-02-22 10:13:47
    How can I adjust the hours to reflect the...
  18. Replies
    4
    Views
    818

    Ya, that should do it. It's been a while since...

    Ya, that should do it. It's been a while since i've done this. thanks.

    {edit}
    Ya that was it. Thanks.
  19. Replies
    4
    Views
    818

    ("SELECT * FROM $table")

    How do I get the number of records in a particular table when the table that I am interested in may change? For example:


    $get_rows = mysql_query("SELECT * FROM tablename");
    $num_rows =...
  20. Replies
    2
    Views
    820

    DELETE FROM table....

    Hi,

    What I am trying to do is delete a field that does not have a digit in it. This is what I have so far:

    $sql = "DELETE FROM table WHERE LENGTH(field1) > 9 AND (user_id) > 2";

    How do I...
  21. Replies
    13
    Views
    1,381

    OK, Maybe I am misunderstanding what "preg_match...

    OK, Maybe I am misunderstanding what "preg_match does. I thought it could be used to check for valid email addresses. I thought you could have it look at a variable and see if there was a username +...
  22. Replies
    13
    Views
    1,381

    Well, I thought I did answer your question. The...

    Well, I thought I did answer your question. The examples I gave are just that. The user could be anything that has one or two "letters" followed by one "digit" followed by one, two or three letters....
  23. Replies
    13
    Views
    1,381

    No, what needs to happen is the preg_match should...

    No, what needs to happen is the preg_match should see if a variable matches one of the above patterns. If this can't be done with preg_match, how can I do it?
  24. Replies
    13
    Views
    1,381

    preg_match pattern in username

    Hi,
    I am trying to cut down on spam registrations and I need a little help on understanding how to use the 'preg_match' function. All the usernames are going to be in a certain format.

    Like...
  25. Replies
    7
    Views
    996

    yintercept, OK Cool. Using: settype($node,...

    yintercept,
    OK Cool. Using:

    settype($node, "string");
    Makes it all work great.
    Thank you so much for the different aspects that you opened up about PHP to me. I never knew.
Results 1 to 25 of 145
Page 1 of 6 1 2 3 4
HTML5 Development Center



Recent Articles