User Profile

Collapse

Profile Sidebar

Collapse
mkjame
mkjame
Last Activity: Aug 3 '09, 06:31 AM
Joined: Nov 25 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • mkjame
    started a topic Loop Logic question

    Loop Logic question

    I am having a little issue with this script:

    Code:
      // loop thru the rows based on the selection of the user
      for (var i = XLSRowFrom; i <= XLSRowTo; i++)
       {
        XLSArray[i] = oXLS.ActiveSheet.Cells(i -1 ,1).value
        alert(XLSArray);       // -----------------------> results (,,,8,9,10)        should be (8,9,10)
        }
    Any ideas?
    See more | Go to post
    Last edited by gits; Aug 3 '09, 07:24 AM. Reason: added code tags

  • mkjame
    started a topic How to sanitize php variable efficiently
    in PHP

    How to sanitize php variable efficiently

    I need to find the best way to efficiently sanitize $_POST, $_GET variables by type of variable (if $_POST['email'] then verify if it is really an email, if $_POST['zip']; verify if it's a 5 digits number, etc...)

    Any functions to recommend?

    Thank you in advance.
    See more | Go to post

  • Thank you for the reply. See my problem is that in one table (dbname.agents) I have 72 rows and in the other table (dbname.users) I have 85 rows. I want to eliminate "automatica lly" the 13 rows difference and I thought the way to do it is to compare the existing email address in dbname.agents with dbname.users by using a common value which is the email.

    Any ideas?

    Thank you in advance for your help!!...
    See more | Go to post

    Leave a comment:


  • How to return the rows that doesn't match two tables?

    Hi everyone!

    I am actually coding a php script and I want to return all the values that doesn't have a relation between two tables.

    Basically I have two tables, one is called users, the other one is called agents, the structure of the users table is the following:
    ID (auto_increment ) | username (email address) | password

    the structure of the agents table is the following
    ID (auto_increment )...
    See more | Go to post
    Last edited by mwasif; Nov 25 '07, 10:37 AM. Reason: Added [CODE=mysql]/[/CODE] tags
No activity results to display
Show More
Working...