Image Upload Naming
I am working on a real estate system.
I'm needing uploaded images to follow an incremental naming system of propertyID_imagenumber.jpg
So, for its propertyID 51 I would hope to get:
51_1.jpg
51_2.jpg
51_3.jpg
What I'm getting, although amusing, is not what I had in mind:
51_[Increment].jpg
In the file name box on the wizzard I have:
<?php echo ((isset($_POST["propertyID"]))?$_POST["propertyID"]:""); ?>_[Increment]
Which gives me:
'FileName' => "".((isset($_POST["propertyID"]))?$_POST["propertyID"]:"") ."_[Increment]",
What am I doing wrong please?