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...
Okay hopefully easy one..
Moderator: General Moderators
Re: Okay hopefully easy one..
$pid += 1;
You need to provide a little more information than that.
You need to provide a little more information than that.
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Re: Okay hopefully easy one..
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
?>