GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   quick php question (https://gfy.com/showthread.php?t=525221)

mkx 10-06-2005 10:51 PM

quick php question
 
$id=$date_id;
$nextid=(1 number lower than nextid)

ex. if id=10, nextid=9

How do I write this in php?

PSD 10-06-2005 10:58 PM

do you mean something like this?

$nextid = $id-1;

myneid 10-06-2005 11:07 PM

you are probably looking for
$id--;

mkx 10-06-2005 11:07 PM

thanks, i will give that a try :)

Damian_Maxcash 10-06-2005 11:09 PM

Quote:

Originally Posted by myneid
you are probably looking for
$id--;

:thumbsup

mkx 10-06-2005 11:16 PM

thanks again! also whats a quick php page redirect code?

broke 10-06-2005 11:29 PM

Quote:

Originally Posted by mkx
thanks again! also whats a quick php page redirect code?

PHP Code:

header("Location: http://www.location.com/blah/blah"); 


mkx 10-06-2005 11:57 PM

it needs to be in php and i don't think it can be in the header as I have to redirect it after a bunch of hidden php code


All times are GMT -7. The time now is 07:18 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123