|
Thanks, and its because I'm not so skilled at PHP.
Basically this is what I want..
Let's say i have an article (1). And in this article I have many facts (2). So for each fact, i give i want to cite it and give a reference for it (3). Therefore at the end of each fact I add a little citation. The citation number links to the bottom of the page, where there is a quick source (4). This is similar to Wikipedia (5).
But now, lets say I want to add a sentance in-between 2 and 3, and make a citation for tht sentance. I would label it '3' but then I would need to go back, and relabel the old 3 as '4', the old 4 as '5' etc...
make sense?
so What i want to do is make it so that instead of just putting numbers, i have some sort of variable that adds one as it goes down the page. I thought to use like a javascript which first put the number then adds one...?
<?php
$number++;
echo $number;
?>
would that work?
|