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

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

mails going in spam??
The mails I sent to folks in my database using mail(function) are going in spam??

Any idea ho

Force download script not handling files with spaces properly
I have a regular old php force download script, uses this code:

Code: header("Cache-Cont

whats wrong with my code please help!!!
this is the error


Warning: mysql_close(): supplied argument is not a valid MySQL-Link res

Material xxx does not exist in plant xxx
Dear All,

I am working for a steel project which is repetitive manufacturing.

Batch Related Pricing
Hi, I need some clarity on the batch related pricing

For example the following are the b

Images in email problem
I found this script for sending emails, it works but if the email has <img src="image.jp

sql error
I have been looking at this code for 20mins and can't work out what I am doing wrong. There is somet

php global variable
how can we create global variable so we can use its value in any form.. Please give example to

check if string contain only a-z/A-Z
Is where any way to check if string contains only a-z/A-Z, without writing an array with all possibl

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