• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

PHP help

razor

New Member
okay i pulled this array data[8] from a database. it is an interger. i want to add 1 to it. how would i do that? i have tried this but it gives me a parse error:
$views = data[8] + 1;
 
$update = $data[8]+1; is what i used to fix it, data[8]++ doesnt work. the only problem is it wont go any farther than one when i reload the script. what it is a counter of the views of a page and then it inserts it into a database.

[Edited by razor on 12-14-2000 at 04:41 PM]
 
Back
Top