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 2471 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: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM).
In this month's session, the creator of the excellent VBE...
|
by: MeoLessi9 |
last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: Aftab Ahmad |
last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below.
Dim IE As Object
Set IE =...
|
by: marcoviolo |
last post by:
Dear all,
I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
| |