select user, count(0) as total, sum(status=1) as st1 from tablename group by user having total > 1000 and st1 > 500
There is a line of type sdfsdfqwesadasdasdasdasd.jpg. How to insert 10 position some the word to get dfsdfqwesadasdasdasdasdsome.jpg
// Well, for example, something like this
$filename = "abcabcabca.jpg";
$filename = substr($filename, 0, 10) . "NEW" . substr($filename, 10);
echo $filename; // abcabcabcaNEW.jpg
Find more questions by tags PHP