Paypal is a payment gateway used in number of websites in world wide.We can post shopping cart info to paypal from the website The following code shows the syntax of code used to post multiple cart items to paypal <form id=”paypalform” action=”https://www.paypal.com/cgi-bin/webscr” method=”post” name=”paypal_auto_form”> <input name=”rm” type=”hidden” value=”2″ /> <input name=”cmd” type=”hidden” value=”_cart” /> <input…
Category: CodeIgniter
Latest updates of PHP Framework CodeIgniter
Check database exists in codeigniter
Load the Database Utility Class Notice: Databse Connection should be already established before loading the above class. <?php $this->load->dbutil(); ?> loaded class can access the functions using the following method: <?php $this->dbutil->some_function() ?> <?php $this->dbutil->list_databases(); ?> the above function will show an array of database names: <?php $dbs_smarttips = $this->dbutil->list_databases(); ?> <?php foreach ($dbs_smarttips as $db_name)…
codeigniter controller name and action name function
$this->router->fetch_class() for get CodeIgniter controller name $this->router->fetch_method() for get CodeIgniter controller action name