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

Operator precedence assistance.
I did a quick Google search and couldn't quite find the answer I wanted in terms I could understand,

if else problem, help please
i have this script that i made only i try to also put in a if else for for some reason the script is

Data storage spaces in varchar2
Trying to understand what's happening.
I am selecting a value from a table that is defined as c

Array becomes unset by itself?
Hi,

I have a bit of experience with PHP but not extensive. It seems I cannot store any items

passthru() help
Hi everyone,
I'm new to the forum and to PHP. I have some pretty good experience writing shell sc

How would I protect......
I have a from, actually, a good amount of forms. How can I make it so you can't type the characters:

help with image text
Hi ...

see i need the text of the name and number to start in the center and always be in the

unserialize help, getting errors
hi all ,
I got a form with 6 fields (2 input and 4 select box), when the page loads one block is

insert PHP code into function
Hi,
I'm having problems when trying following:

I have:
Code: [Select]createBar("Do

phpmailer class & pop.gmail.com?
Code: <?php
$mail->IsSMTP();
$mail->Host = "pop.gmail.com";

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