Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 27th, 2008, 04:57 AM
Registered User
 
Join Date: Aug 2008
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default PHP-MySql

Hi there,

I have some simple question regrding PHP-MySql.I wanto develope a simple form containts name,address,id,detail,date etc.I connected to MySql database insert,select works fine!!

My Problem is that in Detail part,it long text in table as a field.you can insert as much information you want but each information in detail part containts unique price,
for example

Detail Amt
1)try £20.99
2)try £10.99
.
.
.
150)try £23.34
.
.
234)try £32.99

detail part is one textbox and all prices are different textboxes,how can i take all prices as a input??i can't show 150 or 250 textboxes on one page main problem is how to store on table???

Please give me som hints!!
Thanks you.


 
Old September 24th, 2008, 05:44 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: colombo, WP, Sri Lanka.
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default

hi,
name the textbox using array
<input type=textbox name="textboxname[]">

surendran
(Anything is Possible)
http://www.suren.info
http://ssuren.spaces.msn.com




Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP and MySQL MiNdWaRp PHP How-To 0 May 14th, 2007 06:25 PM
MySQL/PHP Help blackout Beginning PHP 1 August 8th, 2006 07:49 AM
begin php & mysql - chapter 12, user_form.php jon_stubber Beginning PHP 1 March 9th, 2006 10:57 AM
MySQL/PHP Gyhth PHP Databases 3 May 27th, 2005 08:21 PM
Using PHP with MySQL nav Beginning PHP 1 September 5th, 2004 04:02 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.