Jul 25, 2008

Simple Shopping Cart Tutorial Using Php And Mysql

Free Web Hosting, No Ads > CONTRIBUTE > Tutorials

free web hosting

Simple Shopping Cart Tutorial Using Php And Mysql

THC
hello everybody, to those who are interested in creating interactive web page using PHP, this tutorial will describe how to build a simple shopping cart from A to Z
you can either use a PHP editor or simply notepad to edit your pages, enjoy.
first we'll design the database for the cart:

make a new file and name it cart.sql and type this code:

CODE
create table customers(
  id INT NOT NULL,
  first VARCHAR(32),
  mi CHAR(2),
  last VARCHAR(32),
  address1 VARCHAR(64),
  address2 VARCHAR(64),
  city VARCHAR(32),
  state VARCHAR(32),
  zip VARCHAR(10),
  country VARCHAR(32),
  shiptobilling VARCHAR(5),
  ship_address1 VARCHAR(64),
  ship_address2 VARCHAR(64),
  ship_city VARCHAR(32),
  ship_state VARCHAR(32),
  ship_zip VARCHAR(10),
  ship_country VARCHAR(32),
  ship_phone VARCHAR(32),
  email VARCHAR(128),
  PRIMARY KEY(id));

create table order_details (
  id INT NOT NULL,
  orderid INT,
  code VARCHAR(32),
  qty INT,
  PRIMARY KEY(id));

create table orders(
  id INT NOT NULL,
  customer INT,
  status VARCHAR(16),
  tracking_number VARCHAR(128),
  PRIMARY KEY(id));

create table inventory(
  id INT NOT NULL,
  name VARCHAR(32),
  category INT,
  code VARCHAR(32),
  description TEXT,
  price VARCHAR(8),
  picture VARCHAR(128),
  qty INT,
  PRIMARY KEY(id));

create table category(
  id INT NOT NULL,
  name VARCHAR(128),
  description TEXT,
  PRIMARY KEY(id));



this file will be used to store the database and tables information and define any relationship configurations.

now this is the PHP configuration file which will be used to define all the functions, global variables and webhosting settings, note that you will have to change some information to match your settings such as the paths of your files if you are using your own webserver or your webhosting info, usernames and passwords etc..
Put this file in /include dir under your wwwroot directory:



CODE
<?
define(SECURE_URL, "your webhost URL");
define(IMAGE_URL, "your webhost URL/images/");
define(SHIPPING_COST, "10.00");   // specify shipping cost here
define(COMPANY_NAME, "your company name");
define(CREDIT_AUTH_URL, "finishorder.php");
define(COMPANY_EMAIL, "your email here");

function connect() {
    ini_set("include_path", "any other path you want to include");
    require_once("DB.php");
    $type ="mysql";
    $username = "your user name";
    $password = "your password";
    $host = "localhost";    
    $database = "cart";
    $dsn = $type . "://" . $username . ":" . $password . "@" . $host . "/" . $database;
    $dbconn = DB::connect($dsn);
    $errortrap($dbconn);
    $dbconn->setFetchMode(DB_FETCHMODE_ASSOC);
    $return $dbconn;
} // end function connect

function errortrap($result) {
    if(DB::isError($result)) {
        ?><h3> There was an error!</h3><?
        die($result->getMessage());
    }
} // end function errortrap

function alter_cart($cat, $items, $item, $action) {
    global $dbconn;
    $sql = "select * from inventory where id = '$item' AND category = '$cat'";
    $result = $dbconn->query($sql);
    errortrap($result);
    if($result->numRows() > 0) {
        switch($action) {
            case("add"):
                if(!isset($items[$cat][$item])) {
                    $items[$cat][$item] = 0;
                    }
                    $items[$cat][$item]++;
                    break;
            case("remove"):
                if(isset($items[$cat][$item])) {
                    $items[$cat][$item]--;
                    }
                    if($items[$cat][$item] < 1) {
                        unset($items[$cat][$item]);
                    }
                    break;
                default:
                    break;
                }
            }
    return $items;
    } // end function alter_cart

function full_item($item, $items) {
    global $dbconn;
    $sql ="select * from inventory where id =$item";
    $result = $dbconn->query($sql);
    errortrap($result);
    $result->fetchinto($r);
?>
    
<table border=1 cellpadding=5 cellspacing=0>
<tr><td class=tablehead><?=$r["name"]?></td></tr>
<tr><td><?=$r["name"]?><br><?=$r["description"]?>
<br><b>Price</b>: <?=$r["price"]?>
<p>
<?
if($r["picture"] != "") {
    ?><div align="center"><img src="<? echo IMAGE_URL $r["picture"]?>"></div><?
} // end if
if ($r["qty"] > 1) {
    ?>
<p><div align=center> <a href="<?=SECURE_URL?>cart.php?cat=<?=$r["category"]?>&item=<?=$item?>&itemview=<?=$item?>&action=add"><img src="<?=IMAGE_URL?>add.gif" border=0></a>

<?

} else {
    ?>
    <p> Sorry, Out Of Stock </p>
    <?
    }
    ?>
<br><a href="<?=SECURE_URL?>cart.php">Return To List Of Items In This Category</a></div></td></tr></table>
    <?
} // End function full_item

function build_menu ($ref,$table) {
    global $dbconn;
    $sql = "select * from $table order by id";
    $result = $dbconn->query($sql);
    errortrap($result);
    if($result->numRows() > 0) {
        $x=0;
        while($result->fetchInto($r)) {
            if($x==0)  {
        echo '<option value="' . $r["id"] . '"selected>' . $r[$ref] . '</option>';
        $x++;
        } else {
        echo '<option value="' . $r["id"] . '">' . $r[$ref] . '</option>';
                        }
                    }
    } else {
        echo '<option value="">NO CATEGORIES DEFINED</option>';
}
} // end function build_menu

function head() {
        ?>
        <html>
        <head>
        <style type=text/css>
        h1, h2, h3, p, td {font-family: veranda, sans-serif;}
        .tablehead {font-size: 12pt; color: #FFFFFF; background-color: #000099; }
        .required {font-weight: bold; colr: red;}
        smalli {font-size: 8pt; font-style: italic;}
        </style>
        </head>
        <body bgcolor="#FFFFFF">
        <div align=center>
        <table width="74%" border="0" cellspacing="0" cellpadding="0" height="128" bgcolor="#FFFFFF">
        <tr>
        <td height ="134" align="center"><h1> Shopping Cart</h1></td>
        </tr>
        </table>
        <?
        }

function calculate_total($items) {
        global $dbconn;
    $shipping = SHIPPING_COST;
    $total = 0;
    foreach($items as $key => $val) {    
        foreach($items[$key] as $key2 => $val2) {
            $sql = "select * from inventory where id ='$key2'";
            $result = $dbconn->query($sql);
            errortrap($result);
            $result->fetchinto($r);
            $total+= ($r["price"] * $val2);
        }
    }
       if($total != 0) {
            $total= $total + $shipping;
            }
    return($total);
} // end function calculate_total

function display_cart($items) {
    global $dbconn;
    global $items, $status;
    $shipping = SHIPPING_COST;
    $count = 0;
    ?>
    <table border=1 cellpadding=5 cellspacing=0>
    <tr><td class=tablehead>Name</td><td clas=tablehead>Qty</td><td class=tablehead>Price Each</td><td class=tablehead> </td></tr>
    <?
       foreach($items[$cat] as $item => $qty) {
        $sql = "select * from inventory where id = '$item'";
        $result = $dbconn->query($sql);
        errortrap($result);
        $result->fetchinto($r);
    ?>



this the page where the database connection will be established then the customer can start shopping, search for products and edit his own cart. file name cart.php


CODE

<?
require_once("include/cart_inc.php");
session_start();
session_register("items");
session_register("category_choice");
session_register("total");

if(!isset($items)) {
    $items= array();
}

if(!isset($category_choice)) {
    $category_choice=1;
}


/***************** MAIN *****************/

head();
$dbconn = connect();
select_cat();
$status = "shopping";
  
?>    

<table width="58%" border="1" cellspacing="10" cellpadding="10" height="371" bordercolor="#0000FF" bgcolor="999999">
<tr align ="left" valign="top">
<td bgcolor="#CCCCCC" bordercolor="#0000FF">
<table border="0" cellpadding="10"><tr><td valign=top>
<?
if(isset($category_choice_in)) {
    $category_choice =$category_choice_in;
}

if(isset($update_cart)) {
    foreach($items_in as $cat => $val {
        foreach($items_in[$cat] as $id => $qty) {
            if ($qty < 1) {
                unset($items_in[$cat][$id]);
            }
        }
    }
     $items = $items_in
}

if(isset(itemsview)) {
    full_item($itemview, $items);
} else {
        display_items($category_choice, $items);
}

if(isset($action)) {
    $items = alter_cart ($cat, $items, $item, $action);
}

?>

</td><td valign=top>
<h3> Your Cart: </h3>
<?
if(isset($modify))  {
    edit_cart ($items);
} else {
        display_cart ($items);
}
?>
<p>
<?

if(sizeof($items) > 0 {
    $total = calculate_total ($items);
    print_r($items);
?>

<p>Do you want to <a href="<?=SECURE_URL?>checkout.php"><b>checkout</b></a>?
<?

}
?>
</td></tr></table>
</td>
</tr>
</table>
</div>
</body>
</html>


This is the checkout page, file name checkout.php:


CODE

<?
require_once("include/cart_inc.php");
session_start();
head();
$dbconn = connect();
$response = "1"; // transaction okay
//$response = "2";  // Declined Credit Card
//$response = "3";  //General Error
if (sizeof($items)==0) {
?>
<h3> There are no items in your cart! Click back to add some items to your cart.</h3>
<?
} else {
?>
<h2> Here are the items that you are ordering:</2>
<?
$status = "checkout";
display_cart ($items);
?>
<p> Please fill in the following information to proceed.<p>
<FORM METHOD=POST ACTION = "<?=CREDIT_AUTH_URL?>">
<INPUT TYPE=HIDDEN NAME="Amount" VALUE="<?$total?>">
<INPUT TYPE=HIDDEN NAME="x_Description" VALUE="Order From <?=COMPANY_NAME?>">
<INPUT TYPE=HIDDEN NAME="x_Invoice_Num" VALUE="<?=time()?>">
<INPUT TYPE=HIDDEN NAME="x_response_code" VALUE="<?=$response?>">
<?cart2form($items);?>
<table border="1" cellspacing="1" cellpadding="5">
<tr>
    <td colspan="2" class="tablehead"><b>BILLING ADDRESS</b>: </td>
</tr>

<tr>
    <td>Credit Card Number<span class="required">*</span></td>
    <td><input type="text" name="x_card_num"> </td>
</tr>

<tr>
    <td>Expiration Date<span class="required">*<br> (MMYY - for example 0402 for April 2002)</span></td>
<td><input type="text" name="x_exp_date" maxlength="4" size="4">
</td>
</tr>

<tr>
    <td>First Name<span class="required">*</span></td>
    <td><input type="text" name="x_card_num"> </td>
</tr>



<tr>
    <td>Credit Card Number<span class="required">*</span></td>
    <td><input type="text" name="x_first_name"> </td>
</tr>



<tr>
    <td>Middle Initial</td>
    <td><input type="text" name="x_mi"> </td>
</tr>



<tr>
    <td>Last Name<span class="required">*</span></td>
    <td><input type="text" name="x_last_name"> </td>
</tr>



<tr>
    <td>Address Line 1<span class="required">*</span></td>
    <td><input type="text" name="x_address"> </td>
</tr>



<tr>
    <td>Address Line 2<span class="required">*</span></td>
    <td><input type="text" name="x_address2"> </td>
</tr>



<tr>
    <td>City<span class="required">*</span></td>
    <td><input type="text" name="x_city"> </td>
</tr>



<tr>
    <td>State or province<span class="required">*</span></td>
    <td><input type="text" name="x_state"> </td>
</tr>



<tr>
    <td>Zip/Postal Code<span class="required">*</span></td>
    <td><input type="text" name="x_zip" size="10" maxlength="10"> </td>
</tr>



<tr>
    <td>Country<span class="required">*</span></td>
    <td><select name="x_country">
<option>Saudi Arabia
<option>Sudan
<option>United Arab Emeritaes
</select></td>
</tr>




<tr>
    <td>Daytime Phone Number<span class="required">*</span></td>
    <td><input type="text" name="x_phone"> </td>
</tr>



<tr>
    <td>Email<span class="required">*</span></td>
    <td><input type="text" name="x_email"> </td>
</tr>

<tr>
    <td>Shipping Address is as the same as Billing Address<span class="required">*</span></td>
    <td><input type="checkbox" name="shiptobilling" value="true"><br><font size="-2">(check to ship to your billing address)</font> </td>
</tr>



<tr>
    <td colspan="2" class="tablehead"> <p><b>SHIPPING ADDRESS</b><br>
(Fill this out if your shipping address is different from your billing address):</p> </td>
</tr>

<tr>
    <td>Address Line 1<span class="required">*</span></td>
    <td><input type="text" name="x_address"> </td>
</tr>



<tr>
    <td>Address Line 2<span class="required">*</span></td>
    <td><input type="text" name="x_address2"> </td>
</tr>



<tr>
    <td>City<span class="required">*</span></td>
    <td><input type="text" name="x_city"> </td>
</tr>



<tr>
    <td>State or province<span class="required">*</span></td>
    <td><input type="text" name="x_state"> </td>
</tr>



<tr>
    <td>Zip/Postal Code<span class="required">*</span></td>
    <td><input type="text" name="x_zip" size="10" maxlength="10"> </td>
</tr>



<tr>
    <td>Country<span class="required">*</span></td>
    <td><select name="x_country">
<option>Saudi Arabia
<option>Sudan
<option>United Arab Emeritaes
</select></td>
</tr>
</table>
<p>
<INPUT TYPE = "SUBMIT" value= "Submit Order">
</p>
</form>
<?
session_unset();
session_destroy();
} // end else statement
?>



I'll be coming back with rest of the code soon.

 

 

 


Reply

farsiscript
hi dear THC thanks about this tutorial , i really need this tutorial , please post next part of this tutorial ,
thanks

Reply

PunkGuitar
please post the next part

Reply

QuickSilva
Very good! Only problem what I found out, you didn't really comment it. That's the only bad part, as there was some bits which I didn't understand what it did. Never the less, very good and a quite advanced tutorial! Can't wait to see the next part of it!

Have a great day!

-Tom

Reply

html
We are willing to make an interactive webpage using php and mysql please keep sharing the next part for
our best, your this is tutorial is well tutorialzed thanks. waiting for the next tutorial........

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : shopping cart php mysql

  1. Complete Login System - With PHP + MYSQL (56)
    Its an complete login sistem made and tested by me and I think itwill be very usefull for people who
    are tryn to learn PHP. First, let's make register.php: CODE <?
    include("conn.php"); // create a file with all the database connections
    if($do_register){ // if the submit button were clicked if((!$name)
    || (!$email) || (!$age) || (!$login) ||
    (!$password) || (!$password2)){ print "You can't let
    any fields in blank...
  2. Check Referrer To Prevent Linking Yours From Other Sites - Check referrer with Php and Mysql (8)
    Check Referrer Using Php To Prevent People Linking To Your Downloads From Other Sites Ever
    find that found some people are listing items, images and tuts and linking directly to the download
    url (those that are like my photoshop tutorial.php?id=0), which is a .php to count the number of
    downloads. To prevent this, you can add a piece of code to the download pages that checks which page
    referred them to the download page: if it's my domain, it downloads the file normally, if
    it's not, it will redirect to my home page instead. Important : Not all browser...
  3. Getting Started With Mysql - creating tables and insert data into them. (2)
  4. Simple User System - php, mysql driven (19)
    Hey! Maybe you've seen my other tutorials...or my signature.. Anyways I'm going to show
    you how to make a system so users of your site could register accounts and you could have protected
    - user only - pages on your site /smile.gif" style="vertical-align:middle" emoid=":)" border="0"
    alt="smile.gif" /> Ok, so we start by creating a config.php file. CODE <?php
        $dbhost   = 'database host';     $dbname   = 'database name';
        $dbusername   = 'database username';     $dbuserpass = 'database pas...
  5. Complete Login And Registration System - doesn't use mysql! (9)
    kLogin 0.1 QUOTE(readme.txt) Readme file to kLogin 0.1 To use the internet explorer fix:
    download the latest IE7 ZIP file
    (http://sourceforge.net/project/showfiles.php?group_id=109983&package_id=119707) Extract the ie7
    zip file to the root directory of your web server. Example, if you are using a unix/linux server,
    it's on "public_html/" or "home/public_html" Open kLogin.php file with your editor and edit the
    $info_text or $info_txt variable. Then, extract the kLogin.php file in to the root
    directory of your web server also. Just run kShoutBo...
  6. Adding Data To A Database And Displaying It Later - Using Forms, PHP and MySQL (1)
    Requirements: PHP Support MySQL Database access I am going to use a news program as an example.
    Ok, first you are going to need to connect to the database. Do so by using the code below. I have
    added some comments where you will need to edit to fit your server's specifications. Create a
    new file with notepad and call it config.php QUOTE //Change root to your database
    account's username $dbusername = "root"; //Add your account's password in between the
    quotations $password = " "; //Add the name of the database you are using in betw...
  7. Simple Shoutbox - PHP, MySQL driven.. (34)
    Ok, so I'm going to show you how to create a very basic shoutbox which is driven with PHP and a
    MySQL database. So, lets start - open a database management program like PHPMyAdmin and run these
    queries. SQL CREATE TABLE `shoutbox` ( `id` INT( 11 ) NOT NULL AUTO_INCREMENT
    , `name` VARCHAR( 255 ) NOT NULL , `mail` VARCHAR( 255 ) NOT NULL , `time`
    VARCHAR( 255 ) NOT NULL , `message` TEXT NOT NULL , `ip` VARCHAR( 255 ) NOT NULL ,
    PRIMARY KEY ( `id` ) ) TYPE = MYISAM ; CREATE TABLE `shoutbox_a...
  8. Cpanel Mysql Database Management - Part 2.1 Of My 7 Part Cpanel Tutorial (6)
    This tutorial is an extension to my 7 tutorial series about the Cpanel. The 7 different Cpanel
    tutorials can be found below. Part 1: E-mail Management Part 2: Useful Site Management Tools
    Part 3: Useful Site Management Tools2.1 Part 4: Analysis/Log Files Part 5: Advanced Tools Part
    6: PreInstalled Scripts, Extras, and Cpanel Options Part 7: Fantastico Detailed Cpanel
    Tutorial Part 2.1: MySQL Management In this tutorial, i will explain how to add, edit, delete
    and over-all manage the MySQL Feature in the Cpanel. Creating a MySQL Database 1) ...
  9. Starting Or Stopping Apache And Mysql Server Via Batch File - (0)
    Hi guys, this is a litte tutorial about how we start and stop the Apache and MySQL in Windows NT
    (2000, XP, 2003) via a batch file script. As we know in Windows NT based system Apache and MySQL
    installed as Windows Services. So we can stop and start it using NET command. For more information
    about DOS command, type HELP at command prompt. I assuming that your MySQL service name is "mysql"
    and your Apache (Apache 2.0.x) service name is "apache2". If you want to chek it click Start > Run >
    services.msc > OK. Windows IS NOT Case Sensitive. Let's get started!. 1. ...
  10. Quiz With Php, But Without Mysql - (3)
    Ok let`s start! Once I wrote it for school: At first we need questions (php) CODE
    $form_block = " <p>Quiz</p> <form method=\"POST\"
    action=\"$_SERVER[PHP_SELF]\">
    <p><strong>What's The Capital City Of England?</strong><br>
    <input type=\"text\" name=\"q1\"
    value=\"$q1\" size=30></p> <p><strong>How Many
    Letters Are There In The Alphabet?</strong>&...
  11. Installing Php + Mysql + Apache + Phpmyadmin On Windows Part 2 - Continue the last section which is installing phpMyadmin (0)
    QUOTE phpMyAdmin lets you control you MySQL database from a web browser. Steps: 1. If you
    haven't done so already, download the phpMyAdmin Database Manager - You can download the
    software from the phpMyAdmin website. Be sure to download the phpMyAdmin-2.6.2-pl1.zip file. Save
    the file on your Windows Desktop. ... ... ... Go to for more info. Post Copied. Member
    Banned ...
  12. Php Dynamic Signatures - Using the GD Module and MySQL (9)
    PHP Dynamic Signatures using the GD Module After much scowering on the internet to find a
    suitable tutorial on this subject, I came up empty-handed. So I was forced to learn it on my own
    through trial & error. And since I had discovered a lack of tutorials on this subject, I dediced to
    write one! Working Example: Abstract : Using the GD Module of PHP allows a
    developer to build custom Images with Dynamic Content. Such content could be the Requesting Users
    IP Address, Web-Browser Type, Operating System, even the number of times the user has see...
  13. Searching With Php And Mysql - The easy way :P (2)
    Searching with PHP and MySQL is pretty easy when you think about it, especially if you're doing
    it the simple way (without boolean or whatever) /tongue.gif' border='0'
    style='vertical-align:middle' alt='tongue.gif' /> It consists of a few forms, a query and an
    output. As I said, simple! CODE <form name=\"form1\"
    id=\"form1\" method=\"post\" action=\"<?
    $php_self ?>\"> <table width=\"100%\"
    border=\"0\" cellspacing=\&#...
  14. Install Php 5 To Work With Mysql - (0)
    hi, all php 5 is new to all people a long time( actually, I forget how long...). it introduced a
    more object-oriented design to developer. like, access type(public, private, protected), abstract
    type(classes that can't create objects), interface support, and more . althrought it is
    widerly available, someone still can't get it running with mysql. every time the php is starting
    up. a message prompted stated that some xtensions can not be found, and therefore, not loaded. so, I
    have written this to help other and newbie get it start quickly. note: thi...
  15. A Nice Mysql Server Check - (4)
    I made this and its not very hard at all just fill in the info and it willl see if your mysql is up
    or down CODE <html> <head> <title> Mysql Connection Test
    </title> </head> <body> <h2> <?php // On this you need to put
    your host most of the times localhost username and password. $conncect = mysql_connect (
    "host", "Username", "password" ) or die (" Sorry your server
    can't connect to your mysql server <BR> Check to see you have put in the Username and...
  16. Mysql Database Setup - tutorial walk through (1)
    Post copied. Google cache to source Credits have been adjusted. Setting Up Your MySQL &
    phpMyAdmin For The First Time This tutorial will show you how to set up your MySQL and your
    phpMyAdmin with ease, regardless of whether you are going to be using PHP Nuke or PHP Nuke
    Platinum. The process is still the same. -Log into your CPanel with your User Name and Password.
    -Click on MySQL icon -Now, we need to create a database also known as Db , Your User Name will
    make up part of the necessary details, but you don't need to do this as it will be done au...
  17. How To Host Ur Own Site In 2 Mins Php+mysql Needed - (34)
    QUOTE Run you're own server for testing phpmysql or just to host you're own website or
    for you're friends. -needS: a PC that's all 8) - How to ? download : CODE
    http://server.paehl.de/apache20.zip : 30 seconds Installing:---> 1 minute
    *********************************** Unpack the exe where ever you want. after unpack run
    serverinst.exe and change Servername and your e-mail. Start the following files one time:
    start_apache.cmd --> start apache as service mysql_start_as_service.cmd  --> dito for mysql
    mysql_first_st...
  18. Backing Up And Restoring Mysql Databases - (10)
    If you're an Administrator on a Forum, you probably know the importance of regular data backups.
    My Forum is always being hacked by someone and they always delete our SQL Databases. Well this
    tutorial is for all of you who want to protect your data and restore it if necessary! Okay,
    backing up your data is the first part. I use Cron Jobs in my cPanel to automate the backup
    process. Just use this code for backing up all your SQL Databases: CODE mysqldump -u root
    -psecret --all-databases > backup.sql OR if you wish to backup only a single database: ...
  19. Php/mysql Login/register - Tutorial for login with databases. (2)
    Start register code. Register.php CODE <form method=post
    action=register.php?action=register  name=s> <table>
    <tr><td>Username:</td><td><input type=text
    name=user></td></tr>
    <tr><td>Email:</td><td><input type=text
    name=email></td></tr>
    <tr><td>Pass:</td><td><input type=password
    name=pass></td></tr> <tr><td>Verify
    Pass:</td><td><input ...
  20. Shoutbox, Made Easy - PHP+MySQL ShoutBox! Very simple... (17)
    Just create a PHP file named "kShoutBox.php" CODE <?php header("Content-type:
    text/html; charset=utf-8"); //Send to browser that the charset is utf-8 ?> <?php
    /* ******************************   kShoutBox 0.1 ****************************** */
    /* **************************************** This ShoutBox script was created by Juan Karlo Aquino
    de Guzman DO NOT MODIFY THIS CODE AND DISTRIBUTING IT WITHOUT ANY PERMISSION. E-MAIL THE AUTHOR
    FIRST. Email: 01karlo@gmail.com DO NOT REMOVE THE "POWERED BY". FOR SUGG...
  21. Clicks Counter - With PHP + MySQL (0)
    Well, in this tut, I'll show you how to do an simple link counter, with only one count for each
    IP and the date when the link were clicked. Just remember, this is only one way to do it. First,
    create an mysql database called 'links', with 2 table: first table will be called
    'links', with the columns: id, title, ref and clicks. The other one will be 3 columns and
    will be called links_info: id, ip and date. Just remember that the columns 'id' of this
    second table IS NOT auto-increment. Here is the code of the file which will count the clicks, ...
  22. A Guide On Webhosting, Php, Mysql, And Phpmyadmin - (0)
    I thought I'd submit this little guide of mines, after I gave my friend an impromptu
    introduction on this. I hope those who are new to PHP and MySQL will fin this usefull. What is
    PHP? PHP is a scripting program, you install PHP into your server, BUT, you can only do it if you
    have "physical" access to the server, (i.e. - you can close the server, add stuff to the server,
    clear the server, remove the server). People who have web hosting accounts CAN NOT install PHP,
    because, they only "own" a part of the server. You must be the server administrator in order to ins...



Looking for Simple, Shopping, Cart, Tutorial, Using, Php, And, Mysql

Searching Video's for Simple, Shopping, Cart, Tutorial, Using, Php, And, Mysql
advertisement



Simple Shopping Cart Tutorial Using Php And Mysql



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE