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

help with email script...
hey

I need help with my mail script

when the form on http://www.mcgdesignstudio.com/c

php forms and database navigatio
Hello,
I'm new to php and i'd like to post the following.
I have written code to get records f

Multiple Pages
Hi. Im very new to php. I'm trying to create a basic login/registration page.

So I have a bas

I have a parse error in this query help..
Code: $query1="INSERT INTO `rating` (`item_name`, `rating`, `ip_address`, `date_rated`) VALUES

An odd assignment statement. Can someone explain this assignment to me?
What purpose is served by the bit of code between the two equal signs in the $installurl set? Is th

Specific name typed, specific image shown on html page
Hello,

Fairly new to PHP and was curious if someone might know how to solve a fairly simple r

PHP Display Telephone Number On Referrer
I have used the php below to show a different telephone number in the header of the site depending u

MySQL query problem
When I try to run the following piece of code, I get this error:
QuoteWarning: mysql_query(): sup

ALV List Display to point to another report on Double Click
Hi,

I want my ALV List Display to point to another report on Double Click on its line ite

Why does first ever HttpSendRequest take longer?
I promise this isn't as simple as it sounds. I'm wondering why the the first ever call to HttpSendRe

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