Good day to all MASTERS!!
i have a simple problem here right now, and i think any PHP/MySQL Masters here can help me...
anyway, i have 3 tables in 1 Database. category1 , category2 , and category3 . these tables will be viewed in one page. but the problem is, how can i possibly code this? anyone?
here is my actual coding before... if there's any corrections... i appreciate it very much !
[PHP]$query = "SELECT category1.*, category2.*, category3.* FROM `category1` INNER JOIN `category2` IN `category1` = `category2` INNER JOIN `category3` IN `category3` = `category2` ORDER BY `id` DESC LIMIT $offset, $rowsPerPage";[/PHP]
by the way, this code is under and running by pagination..
i have a simple problem here right now, and i think any PHP/MySQL Masters here can help me...
anyway, i have 3 tables in 1 Database. category1 , category2 , and category3 . these tables will be viewed in one page. but the problem is, how can i possibly code this? anyone?
here is my actual coding before... if there's any corrections... i appreciate it very much !
[PHP]$query = "SELECT category1.*, category2.*, category3.* FROM `category1` INNER JOIN `category2` IN `category1` = `category2` INNER JOIN `category3` IN `category3` = `category2` ORDER BY `id` DESC LIMIT $offset, $rowsPerPage";[/PHP]
by the way, this code is under and running by pagination..
Comment