Jump to content

[SOLVED] Interpreting ‘$user_’ as a variable rather than ‘$user’.


cs.punk

Recommended Posts

Ok guys, a naming problem.

$file_dir = "photos/originals/$user_$user_id_$file_count.jpg";
move_uploaded_file ($file_tmp, $file_dir);

 

I want a file like : ‘user_23_1.jpg’…? But it seems to be interpreting  ‘$user_’ as a variable rather than ‘$user’.

 

Thanks. :)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.