GFXVoid Graphic Design Forum

Remove Text Formatting
Loading...

» Online Users: 7,168

0 members and 7,168 guests
No Members online

» Site Navigation

 > FAQ

» Stats

Members: 35,442
Threads: 103,075
Posts: 826,688
Top Poster: cc.RadillacVIII (7,429)
Welcome to our newest member, Lekelindids
Results 1 to 2 of 2
  1. #1

    Default help for stocking program

    hi i need to know how can we can make addition in one table in mysql from php
    let say i have a guest book
    and i have a qty colum
    and i want it to update the quantity by one each time one guest add in how can i do that with php/mysql
    any help please waiting for so long to get this working
    please newbiee
    help

  2. #2
    Join Date
    Jul 2005
    Location
    Calgary, Canada
    Posts
    2,566

    Default

    You can set a column to auto-incremement in MySQL.

    for instance
    Code:
    CREATE TABLE Guestbook
    (
     Qty SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT,
     Name VARCHAR(40) NOT NULL,
     Body VARCHAR(40) NOT NULL,
     PRIMARY KEY (Qty)
    );
    It's MORPHIN' time!
    github
    deviantART
    Last.FM
    carrotderek

Similar Threads

  1. my new program sig
    By BaNgRnLeEvR in forum Sigs & Manips
    Replies: 3
    Last Post: 10-22-2005, 06:25 PM
  2. just another program
    By ROTD in forum Sigs & Manips
    Replies: 6
    Last Post: 08-01-2005, 01:54 PM
  3. what program do you use?
    By EMPeiTQ in forum The Void
    Replies: 2
    Last Post: 06-28-2005, 09:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBadvanced CMPS v4.1.1