Valhalla1,
I have a script at home that pulls down mtgox ticker data and puts it into php variables. Keep in mind that you will probably want some kind of average to be taken rather than the most current price.
I will post the snippet later today.
Kind Regards