User Profile

Collapse

Profile Sidebar

Collapse
mmarif4u
mmarif4u
Last Activity: Feb 3 '07, 04:32 AM
Joined: Sep 30 '06
Location: Malaysia
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • The best way for this in my mind is to store ur data which u want to
    display in the page to a temp table in the db,then display it from that
    table,,,
    For example:
    Make new table with protemp,make fields which u want to display
    ,when u search one by one the data will comeout, with the stored one...

    May be this will work,, i am not sure
    u can try it...

    Good Luck..
    See more | Go to post

    Leave a comment:


  • u r searching ur db, not inserting data...
    ok so u want that all the data showed in one page...

    Remove distinct from select statement then see what are the results...
    See more | Go to post

    Leave a comment:


  • HI,,,

    Can u please show the code.And reshape ur q with clearity..

    Thanks.
    See more | Go to post

    Leave a comment:


  • mmarif4u
    started a topic Auto increment numbers in php
    in PHP

    Auto increment numbers in php

    Hi guys,,,

    I have simple problem,
    Problem is that, i want that a php variable create date with numbers,

    look like this:

    $rtno = date("md,here some numbers but auto increment start from 001
    and going on");
    here md is month and date...
    Is i am right or to create it on some other format like
    two variables like :
    $autoincre= number("generat e numbers...
    See more | Go to post

  • mmarif4u
    replied to How to prevent multiple entries to db
    Problem Solved
    See more | Go to post

    Leave a comment:


  • mmarif4u
    started a topic How to prevent multiple entries to db

    How to prevent multiple entries to db

    Hi everybody,,,
    I am facing problem,
    Problem is that i have a user with ic already have in my database.
    But my query enter another data to db when i try to enter that ic
    again.i want that only one ic exist in db.i make query but t only checks the
    format like 1234 or 5462313 not 123aa and 123333-12-1234
    I want to check the format like 123456-12-1234..
    My query is:
    Code:
    // Check for existing
    ...
    See more | Go to post

  • mmarif4u
    replied to How to check this valus against mysql
    in PHP
    Thanks Ronlad for ur help.
    i make some changes in it.. and now it is working..

    Code:
    if (preg_match('#^[0-9]{6}-[0-9]{2}-[0-9]{4}$#', $ic)) { 
       
        }
        else {      
        error('IC Number format is not Valid.\\n'.
                  'Please try again.');
           }
    Thanks again for ur kind work on this prob...
    See more | Go to post

    Leave a comment:


  • mmarif4u
    replied to How to check this valus against mysql
    in PHP
    Thanks Ronald for help..

    I will test this, if any problem i will post reply...

    Thanks
    See more | Go to post

    Leave a comment:


  • mmarif4u
    replied to How to check this valus against mysql
    in PHP
    Thanks Ronald For reply have a great 2007.

    I am now far away From my PC.
    i will test it later..
    But u use \d except of [0-9] ,, it will work..
    I dont want to echo if the icnumber format is correct but if
    wrong then error(i have common.php in which i call error mag), not echo..

    Thanks again for ur help..
    See more | Go to post

    Leave a comment:


  • mmarif4u
    replied to How to check this valus against mysql
    in PHP
    Thanks Ronald the problem is not solved with that.
    i dont know why....
    Plz help me out of this prob.

    Thanks...
    See more | Go to post

    Leave a comment:


  • mmarif4u
    started a topic How to check this valus against mysql
    in PHP

    How to check this valus against mysql

    Hi everybody...

    I want to enter values to db like the following,,,
    Format is like this (810605-14-6356)
    This is the rite format, No a to z letters...
    6 digits then - then 2 digits then - then 4 digits.

    Code:
     dbConnect('db');
        
       $ic = $_POST['icnumber'];
       
       if (preg_match('#^[0-9]{6}-[0-9]{2}-[0-9]{4}$#', $ic)) { 
        //$ic is valid
        error ('IC
    ...
    See more | Go to post

  • mmarif4u
    replied to How to insert these values to database in php
    in PHP
    Ronald the problem is simple 1st i want to check the icnumber
    & access code if it exists in the database than it insert the other values
    like fullname,email, handphone,usern ame etc, But if these 2 not exists in
    the database than data not stored in the database...

    For example my ic number is 123456 and access code is 456,i enter
    these values to the text box with completing the form like name=arif,
    ...
    See more | Go to post

    Leave a comment:


  • mmarif4u
    started a topic How to insert these values to database in php
    in PHP

    How to insert these values to database in php

    Hi everybody,
    I already post a thread like this but that was in mysql.
    Here i have a problem with all the code,,

    Code:
    <?php // signup.php
    
    include("common.php");
    include("db.php");
    
    if (!isset($_POST['submitok'])):
        // Display the user signup form
        ?>
    <!DOCTYPE html PUBLIC "-//W3C/DTD XHTML 1.0 Transitional//EN"
    ...
    See more | Go to post

  • mmarif4u
    started a topic Mysql Query does not select Ic number

    Mysql Query does not select Ic number

    Hi every one,
    I write down the code for a page that a user enter thier
    ic number with his access code(which is already in the database)
    but now i am facing problem, coz without sessions i want it to confirm
    tha values against the database & than go for next page where user can
    enter thier other details, like fullname,email, username,h/p etc.
    Is for this the sessions required.

    My mysql is...
    See more | Go to post

  • Thanks ronverdonk its working.

    Now every thing is clear.
    See more | Go to post

    Leave a comment:


  • Hey man i solve the other problem now php code checks the
    two fields for confirmation.
    Only one problem remain where to put the print button code.
    See more | Go to post

    Leave a comment:


  • Yes I got it subbukumararaja ,
    Thanks for ur help Error msg now ok.
    But others still have....

    If u dont mind can i ask another question Can i insert Date with
    coming 1 month to mysql, have u any idea on this.

    I am working on it may be i will do it.

    but if u have idea plz share it with me.

    Thankss...
    See more | Go to post

    Leave a comment:


  • Thanks for ur reply subbukumararaja
    I want to remove javascript for Q 1 that only php check the validation But
    How .....,When i input some value without confirm it, the data stored in
    the database.

    Other i remove the tags but how to echo the msg plz can explain it
    with common.php code.where to put ECHO statement.
    See more | Go to post

    Leave a comment:


  • Error msg cannot showed in php & txt box matching not work

    Hi everyone.

    i make a page that a user input thier icnumber with confirm ic number,
    it saves the data to mysql db with current date and a random access code
    generated automatically, NOW i have some problems facing..
    1: How to match both txt box vlaues that r same or not.Is there php code for it.
    2: I want to put a print button in the code where the code display the page after
    entring the icnumber
    ...
    See more | Go to post

  • mmarif4u
    started a topic Need Help on user registration form
    in PHP

    Need Help on user registration form

    Hi every body,,,
    I have to make php scripts with mysql for prepaid customers.
    Problem is i want assiatnce...... ..
    i have two fields in html form one is Activation Code and
    the other is Access Code, How to compare these with mysql
    table to verify the codes.and then to go to registration page.
    where user enter their username,passwo rd,confirm password,
    fullname,Ic number,email for confirmation(An email...
    See more | Go to post
No activity results to display
Show More
Working...