dip's Profile
Team Leader
667
Points

Questions
105

Answers
28

  • Team Leader Asked on December 5, 2018 in HTML.

    World Wide Web uses HTTP Servers, better known as web server.Receive HTTP type request and send requested file in packets.

    WWW Structure:

    • Clients use browser application to send URIs via HTTP to servers requesting a Web page.
    • Web pages constructed using HTML (or other markup language) and consist of text, graphics, sounds plus embedded files.
    • Servers (or caches) respond with requested Web page Or with error message.
    • Client’s browser renders Web page returned by server
      Page is written using HTML.Displaying text and graphics in web browser
    • The entire system runs over standard networking protocols like TCP/IP, DNS .
    • 54 views
    • 2 answers
    • 0 votes
  • Team Leader Asked on November 20, 2018 in WORDPRESS.

    Yes! you can do that.

    #Option 1:

    Firstly you will have to design the static web page payout and then you can convert those static pages into wordpress creating a new theme.

    #Option 2:

    There are lots of ready made themes in the marketplace.Just search in Google ,select one and do some modifications as per your taste.

    https://phpsocial.com/demo/
    https://demos.buddyboss.com/boss/members/john/profile/

    Members

    • 50 views
    • 2 answers
    • 0 votes
  • Team Leader Asked on November 18, 2018 in CODEIGNITER.
    Try this One:
    
    function add_user($user_data){
       $this->db->insert('user_master', $user_data);
       $insert_id = $this->db->insert_id();
    
       return  $insert_id;
    }
    • 42 views
    • 1 answers
    • 0 votes
  • Team Leader Asked on November 18, 2018 in CODEIGNITER.

    What is a Model?

    Models are PHP classes that are intended to work with data in your database. For instance, suppose you utilize CodeIgniter to deal with a blog. You may have a model class that contains capacities to embed, refresh, and recover your blog information. Here is a case of what such a model class may resemble:

     

    Add Model

    Create a Users_model.php file in application/models  directory.

    Inside the class create methods for data processing.

    Create a getUsers() method to select all records from the user_master table and return an Array response.

    <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
    class Main_model extends CI_Model {
    function getUsers(){
    $result= array();
    // Select record
    $this->db->select('*');
    $q = $this->db->get('user_master'); $result= $q->result_array(); return $result; } }

     

    Loading a Model

    Your models will typically be loaded and called from within your controller methods. To load a model you will use the following method:

    $this->load->model('model_name');
    
    • 37 views
    • 1 answers
    • 0 votes
  • Team Leader Asked on November 18, 2018 in CODEIGNITER.

    CodeIgniter is an amazing PHP system with a little impression, worked for designers who require a straightforward and rich toolbox to make full-highlighted web applications.

    Why should use CodeIgniter?

    • In the event that you require a system with little impression.
    • High performance.
    • Need a structure which requires zero setups.
    • Need a framework which don’t use command line.
    • Need a structure which doesn’t require clinging to prohibitive coding rules.
    • Simplified code structure
    • 35 views
    • 1 answers
    • 0 votes
  • Team Leader Asked on November 18, 2018 in CODEIGNITER.

    Blunder works in codeigniter are basic procedural interfaces that are accessible all inclusive all through the application, consequently the mistake messages are activated without thinking about the class/work scope.

    CodeIgniter encourages us to report mistakes into our applications by utilizing the accompanying capacities:

    show_error():

    This capacity shows the mistake message utilizing the layout in application/blunders/error_general.php.

    Syntax of show_error() function is:

    
    show_error('message',status_code);
    
    

    Here, the parameter message is required and is the string mistake message to be appeared and the parameter status_code is discretionary which is a whole number esteem speaking to the HTTP status code to be sent with the mistake.

    Code Example:

    
    show_error('File not found!');
    
    

     

    show_404():

    This capacity shows the 404 mistake message provided to it by the format in application/blunders/error_404.php.

    Sentence structure of show_404() work is:

    
    show_404('page'[,'log_error']);
    
    

     

    The principal parameter page in show_404() work is the way of the page that isn’t found. By and large we can see that 404 messages are appeared by codeigniter naturally, if the controllers are not found.

    The second parameter log_error is discretionary and has boolean esteem i.e. genuine or false. On the off chance that it is set to esteem false, codeigniter won’t log any show_404() calls and the other way around in the event that it is valid.

    Code Example:

    
    show_404('welcome.php');
    
    

    log_message():

    Everytime a page is run, a log document is produced. These log documents are under designer’s control.

    This capacity enables you to compose messages in the log document.

    Syntax of log_message() function is:

    
    log_message('level','message');
    
    

     

    The primary parameter level demonstrates which sort of blunder message you need to log. There are 3 dimensions of blunder message troubleshoot, mistake and data.The message is the second parameter.

    Code Example:

    
    log_message('error','username is unfilled');
    
    

     

    • 27 views
    • 1 answers
    • 0 votes
  • Team Leader Asked on November 7, 2018 in HTML.

    Step 1:
    Open the web browser.
    Navigate to the web page you would like to get the source code.
    Right click on the page and click “View page source”.

    Step 2:
    Alternatively, you can also use the keyboard shortcuts of  CTRL + U   on a PC to open a window with a site’s source code displayed.
    On a Mac, this shortcut is   Command + Alt + U 

    • 56 views
    • 1 answers
    • 0 votes
  • Team Leader Asked on November 7, 2018 in HTML.

    Google and other search engines couldn’t crawl iframe content. In some cases, once the robots entered the iframe, they couldn’t get out again, that means they didn’t index the content on the rest of the website either. But now google and most of the search engines’s web crawlers can usually travel freely between the website content and iframes.

    • 35 views
    • 1 answers
    • 0 votes
  • Team Leader Asked on November 7, 2018 in HTML.

     

    <!DOCTYPE html>
    
    <html>
    
    <body>
    <ol>
    
    <li>Codeigniter</li>
    
    <li>Wordpress</li>
    
    <li>Magento</li>
    
    </ol>
    </body>
    
    </html>
    

     

    • 34 views
    • 1 answers
    • 0 votes
  • Team Leader Asked on November 7, 2018 in HTML.

     

    <!DOCTYPE html>
    
    <html>
    
    <body>
    <select>
    
    <option value="PHP">PHP</option>
    
    <option value="C">C</option>
    
    <option value="JAVA">JAVA</option>
    </select>
    </body>
    
    </html>
    

     

    • 30 views
    • 1 answers
    • 0 votes