This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### http://www.mysqltutorial.org/mysql-row_number/ | |
# simple row number | |
set @row_number = 0; | |
select (@row_number := @row_number + 1) AS num, id | |
FROM Term; | |
# select row number for each group ----------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Article extends Base { | |
function getUploadDir() { | |
# e.g. something like this | |
return "upload/articles/article-$this[id]"; | |
} | |
} |