Page 1 of 1
Okay hopefully easy one..
Posted: Thu Feb 05, 2009 1:07 pm
by teezilla
I want to to add 1 to every returning PID.. not the value 1 but change 214 to 215. and if it returns again 215 to 216.
Any Ideas would be greatly appreciated...
Re: Okay hopefully easy one..
Posted: Thu Feb 05, 2009 2:01 pm
by papa
$pid += 1;
You need to provide a little more information than that.
Re: Okay hopefully easy one..
Posted: Thu Feb 05, 2009 5:23 pm
by RobertGonzalez
You are incrementing your value. In PHP there are a few ways to increment:
Code: Select all
<?php
$val = 1;
$val = $val + 1; // You could use any number, not just one
$val += 1; // Again you could use any number here
$val++; // This adds one, but only after $val is evaluated by the engine
++$val; // This adds one before $val is evaluated by the engine
?>