How to show the difference between two data field in a database with php.


Posted on 16th Feb 2014 07:03 pm by admin

Hello php gurus,

how r u all... i'm not so well facing a typical problem please help me...
i'm working with php and mysql.

my problem is...
in a data base have two integer field like parent_id & child_id. i want to make the difference between the data of the two data field. such as...
table name: tbl_something
field name: parent_id and child_id
data in the field like this: parent_id: 10,12,13,14,15. and child_id: 10,11,13,14,16.
by making the difference between them my wanted result will be like this:
different parent id=12,15 and different child id =11,16.

please if any one can help please help... i'm in very problem.

thanks

No comments posted yet

Your Answer:

Login to answer
283 Like 47 Dislike
Previous forums Next forums
Other forums

Default TimeZone
The server I'm working with is hosted in America so all times inserted into the database are coming

Multiple server callbacks (NOT POSTBACKS)
Hello, I have 2 different javascript client side functions that are on timers. When the timers elap

Header redirect
Hello ive got a problem ive got form with its action set to itself.
Code: <form id="f

mysql select with $_get ?
Hi, i have this code:
Code: // If char id is 0 and character dont exist do:
if ($_GET["id

Disabling SAP menu
How do I disable SAP menu for all the users and just restrict them to User Menu in SAP ECC 6.0?

AJAX form submit
I recently built a form that submits data to my database with an ajax function that is called throug

PHP and SMS
Hi all forum members. I am new here and am unsure what category shoild I post this in.
Moderator

Checking if field is empty AND using !is_numeric
Hi lads,

Need to be able to display an error message (using isset?) that says "Cant lea

Curly Bracket Delimeters.
I'd always believed that the starting and ending delimeters in preg_ functions had to be the same ch

Parse error: parse error in C:wampwwwlogspagesmembers.php on line 16
I dont see the problem with this, I always get Parse error: parse error in C:wampwwwlogspagesme

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash