 |
Linux Format forums Help, discussion, magazine feedback and more
|
| View previous topic :: View next topic |
| Author |
Message |
rcayea
Joined: Sun Apr 19, 2009 1:51 am Posts: 60
|
Posted: Sat Aug 13, 2011 4:41 pm Post subject: need phpmyadmin enter data help |
|
|
Hi everyone,
I have a select-and-go list as part of my order form. Here is the code for it:
| Code: |
<select name="selectpoemtype">
<option orderfourline="">4 Line Poem/$15</option>
<option ordereightline="">8 Line Poem/$25</option>
<option ordertwelveline="">12 Line Poem/$40</option>
<option ordersixteenline="">16 Line Poem/$50</option>
<option ordertwentyline="">20 Line Poem/$75</option>
</select>
|
How do I enter these options into my phpmyadmin table? What would I enter into "column" and "type" and so on?
Thank you,
Randy[/img] |
|
| Back to top |
|
 |
ollie Moderator

Joined: Mon Jul 25, 2005 12:26 pm Posts: 2749 Location: Bathurst NSW Australia
|
Posted: Wed Aug 17, 2011 4:05 am Post subject: |
|
|
| They would be TEXT (65,535 characters) or MEDIUMTEXT (16,777,215 characters) field types. |
|
| Back to top |
|
 |
DarkSnow

Joined: Thu Jul 14, 2005 12:44 pm Posts: 12 Location: Fife, Scotland
|
Posted: Sun Oct 02, 2011 10:14 pm Post subject: |
|
|
It depends very much on the rest of the application.
Firstly I should point out that this is not valid HTML. Each of the option elements has an invalid attribute. You should perhaps have a value="" with the value in it.
As to what that value should be. Well, it could be a string, as suggested in the first reply, but an easier way might be to use an integer and have the number of lines in the poem. Or even an integer with the primary key in your "poem type" table.
That table could then contain the price, description, line count, etc.
So, as I say, it depends how you've written the rest of the app. |
|
| Back to top |
|
 |
| View previous topic :: View next topic |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|