Can anyone out there give me a pointer regarding creating a
dynamically-generated drop-down list connected to an array?
And is that question as clear as chocolate spread?
Here's what I've got. I'm using PHP and MySQL database. I'm customizing
some calendar software, and I want the user to fill in a form by
selecting a title from a drop-down list, generated by my MySQL
database. However, the program I'm customizing uses arrays, which is
where I'm stumped.
What do I need to add to this code to make the array of titles(eg
"report writing" etc) come from my database, rather than the
manually-entered values that you can see here.
The field I want to pull from is called com_courses.title
array (
"coursetitle",
"Course Title:",
$EXTRA_SELECTLIST,
array ("Report Writing", "Recruitment & Selection", "Presentation
Skills", "Essential Telephone Skills", "Time Managememt", "Customer
Care", "Other"),
0
),
I hope it's not cheeky to ask this, and thank you sooooooooo much for
answering.
BTW I bought a book on Programming with PHP and MySQL, but it doesn't
answer this question, so I'm not being lazy. Honest.
Jonny 1 2476 jo**********@hotmail.com wrote: Can anyone out there give me a pointer regarding creating a dynamically-generated drop-down list connected to an array?
And is that question as clear as chocolate spread?
Here's what I've got. I'm using PHP and MySQL database. I'm customizing some calendar software, and I want the user to fill in a form by selecting a title from a drop-down list, generated by my MySQL database. However, the program I'm customizing uses arrays, which is where I'm stumped.
What do I need to add to this code to make the array of titles(eg "report writing" etc) come from my database, rather than the manually-entered values that you can see here.
The field I want to pull from is called com_courses.title array ( "coursetitle", "Course Title:", $EXTRA_SELECTLIST,
array ("Report Writing", "Recruitment & Selection", "Presentation Skills", "Essential Telephone Skills", "Time Managememt", "Customer Care", "Other"), 0 ),
I hope it's not cheeky to ask this, and thank you sooooooooo much for answering. BTW I bought a book on Programming with PHP and MySQL, but it doesn't answer this question, so I'm not being lazy. Honest.
Jonny
Please do not double post. Your question will be answered, be patient.
Joe Estock This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Guinness Mann |
last post by:
When you guys talk about "dynamic SQL," to what exactly are you
referring? Is dynamic SQL anything that isn't a stored procedure?
Specifically, I use ASP.NET to communicate with my SQL Server...
|
by: MD |
last post by:
I am trying to create a dynamic SQL statement to create a view.
I have a stored procedure, which based on the parameters passed calls
different stored procedures. Each of this sub stored procedure...
|
by: NickName |
last post by:
/* goal: dynamic evaluation of table row
platform: sql 2000
*/
use northwind;
declare @tbl sysname
set @tbl = 'customers'
EXEC('select count(*) from ' +@tbl)
|
by: Mike Moore |
last post by:
We are developing an asp.net web application. When we drag and drop the sql
connection object to the form we set the in the dynamic properties connection
string to use the connection string in the...
|
by: Yaro |
last post by:
Hello
Is it possible using dynamic SQL in UDF?
In Sybase below example work but in DB2 UDB 8.1.3 I get error:
"SQL0104N Unexpected element "EXECUTE IMMEDIATE" found....."
CREATE FUNCTION...
|
by: Tom Bella |
last post by:
We use a lot of dynamic SQL and we use triggers on some tables. We had
to drop and create a trigger to make a change and we encountered the
error E70081.
We have used some harsh methods to...
|
by: Henke |
last post by:
Hello,
I have one ImageButton controls which I initialize in
Page_Load and declare on class level.
ImageButton save = new ImageButton();
save.ImageUrl = "save.gif"
save.Click += new...
|
by: Zach |
last post by:
I have a situation similar to what you see in Visual Studio Options
menu. A Tree View on the left, and depending on what type of node you
click it dynamically loads a panel into the right hand...
|
by: ashish ranjan |
last post by:
Hi there,
I am trying to drag and drop one html table row to another html table specific row position(both html table are server response (dynamic)) is this possible to do using ajax,.net and...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
| |