How can I add the user_id of the user table to the file upload name?
I have tried:
$filename = 'id_'.<?php $user = JFactory::getUser(); echo $user->id; ?>.'_'.date('YmdHis').'_'.$chronofile['name'];
but it doesn´t work.
I have tried:
$filename = 'id_'.<?php $user = JFactory::getUser(); echo $user->id; ?>.'_'.date('YmdHis').'_'.$chronofile['name'];
but it doesn´t work.
Hi navajofra,
The PHp tags are effectively already open so adding more doesn't help. Please try this:
Bob
The PHp tags are effectively already open so adding more doesn't help. Please try this:
$user =& JFactory::getUser();$filename = 'id_'.$user->id.'_'.date('YmdHis').'_'.$chronofile['name'];
Bob
This topic is locked and no more replies can be posted.