Jump to content

chamari

New Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by chamari

  1. In the categories php I am getting the following error. I checked the syntax with the finished file and its correct. ( ! ) Fatal error: Call to a member function prepare() on a non-object in C:\wamp\www\source\phpcartoopmvc-empty-projectfiles\app\models\m_categories.php on line 35 Call Stack # Time Memory Function Location 1 0.0006 669736 {main}( ) ..\index.php:0 2 0.0039 727112 Categories->get_categories( ) ..\index.php:4 ( ! ) Fatal error: Call to a member function query() on a non-object in C:\wamp\www\source\phpcartoopmvc-empty-projectfiles\app\models\m_categories.php on line 54 Call Stack # Time Memory Function Location 1 0.0007 669616 {main}( ) ..\index.php:0 2 0.0160 726936 Categories->get_categories( ) ..\index.php:4 It is the same whether I pass a category or not. I think its not connecting to the database. Connection script in the init.php //Connect to database $server = 'localhost'; $user = 'root'; $pass = ''; $db = 'ks_shop'; $Database = new mysqli($server, $user, $pass, $db); Please help
  2. I am watching the mysql videos. I have wamp server installed and I dont know the user name and password, so I can run various sql commands from the command line. I tried this command -u root --password=root but i get an error. Please help so I can follow the video.
  3. chamari

    Icon Fonts

    Hi, I cant figure out which letter will display which icon with the icon fonts. Is there a map of all the letters and corresponding icons. Chamari
×
×
  • Create New...