Array putting out the wrong data ...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
chocomarker1
Forum Newbie
Posts: 1
Joined: Sat Jan 15, 2011 1:36 am

Array putting out the wrong data ...

Post by chocomarker1 »

I'm running a small voucher business for restaurants however I have a big problem:

Users can access their voucher that they via their account. They click on their voucher (voucher.php) which will then have their title of voucher ($vouchertitle in the MySQL database), Voucher validity ($Voucherstart and $Voucherend), which are stored in a products structure in the database. But here's when it goes funky, I also have a supplier structure, which has $supplierArray['VoucherAddress'], $supplierArray['address'] and $supplierArray['company'], which are called when voucher.php is opened: However, this crappy $supplierarray displays me the VoucherAddress, address and company only of the supplier of the latest voucher created, and NOT of their "real" respective supplier.

does anyone sense a solution for this as in where to look into? it actually worked fine but it seems like my mysql database is going bonkers with the heavy traffic load in the last days... thanks for any help in advance! :)
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Array putting out the wrong data ...

Post by requinix »

Should be obvious, but you have to fix where the $supplierArray gets its data.

And that's all I can offer because I know absolutely nothing about the code you're running or how the system works.
Post Reply