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.
Did you know?Explore Trending and Topic pages for more stories like this.

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

what business processes?
Hi,

A general question. What business processes (like OTC - Order to Cach, P2P, R2R etc)

Problem writing URL into database
How would I write this into the database?

<?php echo "http://".$_SERVER['SER

Help with setcookie()
Merry Xmas to those on this foruum
Older guy here with some experience but not allot so please be

Login page problems
I developed a website a few months ago and I am now having an issue with logging into it. The place

CHMOD script
Hi,

I need a script to read all files in a folder and set to 777.

Can anyone help out

Sessions work for me and not others?
I'm having a bit of bad luck with sessions. In the past they have worked fine for me, but this time

How to use Substr
I want to check for the word CATEGORY: inside a string which can be CATEGORY: ITEM
and remove the

help with mysql_error()
Hi,

I am trying to insert data into a table, but I am not able to insert it. I wanted to see

Preloading images
Posting this question here because I am not sure where this should belong.I am building an asp.net a

how to insert value
I am having file bookissueadd.php..... in which i am having tag

<td height="21&q

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