Ok here is what i am really talking about a better explanation this image below is the Receipt table, basically where itsays ordernumber and you see 1 and then two order number 2's thats becasue both those orders are from the same order like when i made the order i had both those items in my cart and instead of combining both cart items in one cart it makes 2 different rows for every item but they both keep the same order number

kinda snazzy, but heres my question when someone orders they go add to cart checkout(select their payemnt method enter address etc) they it redirects to either paypal stormpay or my cc merchant, and they all use ipn which sends ONE variabel back to my server, that one variable is the order number in this case i will use order number 2 for example. This is another version for my digital downloads if you didn't know just an aka. but anyways if they would jsut buy one item i could just send thje ItemSKU (prodict code) over but if someone buy more than one digital item i have to set it this way. .
So i need the PHP code to pull the ItemSKU numbers from the databse with just knowing the OrderNumber, as its being the only thing sent back to my server. If soneone thats really familiar with PHP and MYSQL let me know i have tried multiple things but can't find a good answer. So just to say it one more time in ne sentnce i need the code to pull the itemSKU number from databse with just knowing the Ordernumber. I was thinking of maybe if $OrderNumber =="ONU"
then list item sku etc etc i was thinking along the lines ofsomething like this, if you know something i would really like that, thanks ----------Josh
p.s. heres the image