Jump to content

ugintl

Members
  • Posts

    19
  • Joined

  • Last visited

Posts posted by ugintl

  1. Arrrh! Can't install database.
    SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes, query was: CREATE TABLE `email_triggers` ( `id` int(10) NOT NULL AUTO_INCREMENT, `enabled` enum('0','1') COLLATE utf8_unicode_ci NOT NULL, `trigger_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `observer` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `trigger_name_2` (`trigger_name`,`observer`), UNIQUE KEY `trigger_name_3` (`trigger_name`,`observer`), KEY `trigger_name` (`trigger_name`), KEY `observer` (`observer`), KEY `enabled` (`enabled`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci

  2. I have a marketplace website in development stage. I searched the internet, but did not find anything. User has 2 options, either can signup as a company or individual. In other words seller or buyer resp.

     

    1. I want to hide buyer information in search results. How? Any tutorial with complete code/snippet?

     

    2. I want to hide seller and buyer contact details. Currently, logged-in members can see contact details. Any tutorial?

  3. I guess you should have kept it simple and straight. I found this and it worked.

    <?php    // First execute a common code to connect to the database and start the session    require("includes/common.php");        // At the top of the page check to see whether the user is logged in or not    if(empty($_SESSION['user']))    {        // If they are not, redirect them to the login page.        header("Location: login.php");                // Remember that this die statement is absolutely critical.  Without it,        // people can view your members-only content without logging in.        die("Redirecting to login.php");    }
  4. I uploaded website files to the web root and when i tried to access it via www.mydomain.com it gave following error

     

    A Database Error Occurred

    Error Number: 1146

    Table 'webpk_16901224_app.sesion' doesn't exist

    INSERT INTO `sesion` (`session_id`, `ip_address`, `user_agent`, `last_activity`, `user_data`) VALUES ('1912dd6c2dd5c411cde798d9496c9a9a', '119.157.163.66', 'Mozilla/5.0 (Windows NT 5.1; rv:42.0) Gecko/20100101 Firefox/42.0', 1448544788, '')

    Filename: libraries/Session.php

    Line Number: 328

     

    I tried to create a table like following through phpmyadmin, but i get an error "key id does not exist". My database name is webpk_16901224_app and it is empty. There are no tables.

     

    create table tablename(
    id INT NOT NULL,
    name VARCHAR (20) NOT NULL,
    age INT NOT NULL,
    PRIMARY KEY (id)
    );

     

    The website script has 3 sql files, but i don't know how to use them. SQL files are attached.

    Desktop.zip

  5. I have a website script built with php, html, css and javascript. I want to show custom page to non logged-in/registered users and after they login, they should go to index page or you can say dashboard.

     

    Currently a visitor goes directly to index page with login or register options. My website's index.php and template's index.html files are attached.

     

    Moreover, I would appreciate if anyone can tell me how can I bootstrap my website (ugintl.move.pk). I guess it is the template which needs to be modified. template folder's snap also attached.

     

    Waiting for a helpful reply :Pleased:index.html index.phppost-191842-0-32097900-1448034989_thumb.png

  6. thank you. I will look at these links. Someone told me that "to make your website responsive, change css or to bootstrap, you have to change the html". Is it true? Only changing the html will make my website responsive? Bootstrap is responsive itself.

  7. I have a script developed in php. It is non-responsive. I want to convert it to a responsive website. Is there any free tool or software or step by step guide to do it? I know a little html and css, but not php. I was wondering if there is a place where I can import my existing template, apply bootstrap with one click and export. It is an open source script and can be downlaoded from phpb2b.com.

×
×
  • Create New...