User Profile

Collapse

Profile Sidebar

Collapse
ayukawaa
ayukawaa
Last Activity: Nov 25 '12, 05:00 PM
Joined: Sep 20 '12
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ayukawaa
    replied to Mysql: How to SELECT from diferent tables...
    in PHP
    No, I don't want to obtain multiples records from the diferent tables, I want A SINGLE RECORD with the most recent changes of ALL THE TABLES.

    The admin will have a history button to obtain all the changes made if he/she want, but when presenting info I want only ONE record.
    See more | Go to post

    Leave a comment:


  • ayukawaa
    replied to Mysql: How to SELECT from diferent tables...
    in PHP
    Rabbit no, that will select multiples values from multiples tables.

    One table can have 5 updates, but another table can have 23 updates, but I only want the LAST RECORD of EACH table of the id given .

    That's driving me crazy.

    *_*
    See more | Go to post

    Leave a comment:


  • ayukawaa
    replied to how to find number of online users
    You have to have something on the database updated everytime the user ask for a page.

    It could be a counter for the pages shown, or anything you want

    In my case, I have the sessions stored in the database, and they are updated on every request so you only have to SELECT COUNT()... FROM SESSIONS WHERE the time is now minus 10 minutes...
    See more | Go to post

    Leave a comment:


  • ayukawaa
    started a topic Mysql: How to SELECT from diferent tables...
    in PHP

    Mysql: How to SELECT from diferent tables...

    Due to the fact of the many fields asociated with a single company for some project (200+), I've have to change from a single row to 6 tables asociated with the main table through the id of the row of the main table...

    FIRST: I'm not allowed to DELETE or UPDATE ANYTHING.

    Each of the tables can be updated mutiples times...

    Every time a record is updated, it is INSERT as a NEW record (with the ID of the...
    See more | Go to post
    Last edited by zmbd; Sep 22 '12, 10:45 PM. Reason: placed code format around SQL

  • ayukawaa
    replied to make exefile of php
    in PHP
    Why don't you change from MYSQL to SQLITE ???????????

    SQLITE is only a FILE and PHP can access it directly.

    I have to done it some time ago for a CDROM and that worked FINE !!!
    See more | Go to post

    Leave a comment:


  • ayukawaa
    replied to How to send SMS via a webpage?
    in PHP
    There are many ways... first check with your telephone provider (NOT ISP)

    I've done it sending an email to my_own_number@m y_telephone_com pany.com with some special field in the headers that let them know where to send the email as SMS.
    See more | Go to post

    Leave a comment:


  • Use at the same time actions readed from the GET and POST.

    First, look for the action in the $_GET (insert/update/delete) and show the form based in the action given (see below).

    If the action does not exist, show a table with the LIST of the records from the database.

    In each row, add the actions like this

    Code:
    <a href="index.php?action=update&id=<?php echo $row_id;?>">UPDATE</a>
    ...
    See more | Go to post

    Leave a comment:


  • ayukawaa
    replied to retaining values on form reload
    in PHP
    I use the fields like this

    Code:
    <input 
    name="ejercicio" 
    type="text" 
    id="ejercicio" 
    value="<?php echo array_key_exists('ejercicio', $_POST) ? htmlentities($_POST['ejercicio'], ENT_COMPAT, 'utf-8') : ''; ?>"
    size="6"
    maxlength="4" />
    that works fine !!!!!!!!!!!!
    See more | Go to post

    Leave a comment:


  • Here's my own function for dealing with this... and works with ANY array

    $iit1=read_from _array[$_POST, 'iit1'];

    Code:
    /*
     * READ A VALUE FROM AN ARRAY
     * param array - array from where to read
     * param string - key to read from the array
     * param string - default_value to return if the key does not exist or the it is not a valid array
     * param php_function - php function to execute using the key value
    ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...