• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Database driven urls

#2
It's the same, but different names.
https://codeigniter.com/user_guide/datab...base-class
https://codeigniter.com/user_guide/datab...y-bindings
https://codeigniter.com/user_guide/datab...ult-arrays
https://codeigniter.com/user_guide/incom...uting.html

PHP Code:
/**
 * --------------------------------------------------------------------
 * Route Definitions
 * --------------------------------------------------------------------
 */

$db  Database::connect();
$res $db->query("SELECT * FROM `routes` WHERE `name` = ?"$name);
foreach(
$res->getResult() as $row)
{
    
// ...

Reply


Messages In This Thread
Database driven urls - by mickrus - 05-18-2020, 04:15 AM
RE: Database driven urls - by jreklund - 05-18-2020, 10:37 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.