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..
User Profile
Collapse
-
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...Leave a comment:
-
HI,,,
Can u please show the code.And reshape ur q with clearity..
Thanks.Leave a comment:
-
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... -
-
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
-
Thanks Ronlad for ur help.
i make some changes in it.. and now it is working..
Thanks again for ur kind work on this prob...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.'); }Leave a comment:
-
Thanks Ronald for help..
I will test this, if any problem i will post reply...
ThanksLeave a comment:
-
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..Leave a comment:
-
Thanks Ronald the problem is not solved with that.
i dont know why....
Plz help me out of this prob.
Thanks...Leave a comment:
-
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 -
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,
...Leave a comment:
-
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" -
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... -
-
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.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...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.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... -
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...
No activity results to display
Show More
Leave a comment: