Welcome Guest, Not a member yet? Register   Sign In
New to PHP, need a little guidance
#5

[eluser]Aken[/eluser]
Your mistake is that you aren't doing anything to turn your IDs and totals into the format you want.

Put all your follow_id's into an array using something like

Code:
$follow_ids[] = $data['follow_id'];

Then use implode() to turn them into a single string. For your totals, use math to increase a single variables total.

Code:
$total += $data['total'];
// Same as:
$total = $total + $data['total'];

Note I didn't just write out the whole solution for you. You should understand it more if you code most of it yourself, so there's a start!


Messages In This Thread
New to PHP, need a little guidance - by El Forum - 10-12-2012, 02:33 AM
New to PHP, need a little guidance - by El Forum - 10-12-2012, 02:56 AM
New to PHP, need a little guidance - by El Forum - 10-12-2012, 04:07 AM
New to PHP, need a little guidance - by El Forum - 10-12-2012, 04:17 AM
New to PHP, need a little guidance - by El Forum - 10-12-2012, 03:48 PM
New to PHP, need a little guidance - by El Forum - 10-13-2012, 12:18 AM
New to PHP, need a little guidance - by El Forum - 10-13-2012, 03:18 AM
New to PHP, need a little guidance - by El Forum - 10-15-2012, 12:10 AM
New to PHP, need a little guidance - by El Forum - 10-16-2012, 01:06 AM
New to PHP, need a little guidance - by El Forum - 10-16-2012, 05:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB