•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 456,520 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,816 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 4083 | Replies: 16
![]() |
•
•
Join Date: Mar 2007
Posts: 18
Reputation:
Rep Power: 2
Solved Threads: 0
•
•
•
•
sorry forgot something in the readme file. i have updated it. please download the zip file again.
my bad
I can't get the records to display after I click on an author. I just wanted them displayed under the drop down menu and I am getting duplicates of the authors names.
•
•
Join Date: Mar 2007
Posts: 18
Reputation:
Rep Power: 2
Solved Threads: 0
•
•
•
•
sorry forgot something in the readme file. i have updated it. please download the zip file again.
my bad
I am also not sure on what you mean by this:
4. INSERT THE SCRIPT IN select.php WHEREVER THE SELECT BOX NEEDS TO BE
DISPLAYED. IF THIS IS NOT WANTED ADD '<?php include 'select.php';?>' THERE INSTEAD.
5. INCLUDE THE javascript.js FILE INTO THE PAGE. OR INCLUDE '<script type="text/javascript" src="javascript.js"></script>' INSTEAD.
I am just confused on where to add these things. and I don't understand what you mean by insert the script in select.php. Do you mean the javascipt?
•
•
Join Date: Jun 2007
Location: Valley Center, Kansas
Posts: 643
Reputation:
Rep Power: 3
Solved Threads: 72
inside the select.php there is code wraped in <?php ?> tags. put this in your page where you need the drop down list to be displayed.
as for the javascript, you can just but
in the head of the document.
as for the javascript, you can just but
<script type="text/javascript" src="javascript.js"></script>
•
•
Join Date: Mar 2007
Posts: 18
Reputation:
Rep Power: 2
Solved Threads: 0
•
•
•
•
inside the select.php there is code wraped in <?php ?> tags. put this in your page where you need the drop down list to be displayed.
as for the javascript, you can just but
in the head of the document.<script type="text/javascript" src="javascript.js"></script>
I have the authors displaying in my drop down list, but I can't get it to display the title underneath the drop down list. I also have duplicate authors in the drop down.
•
•
Join Date: Jun 2007
Location: Valley Center, Kansas
Posts: 643
Reputation:
Rep Power: 3
Solved Threads: 72
the reason duplicate authors are being displayed is because you entered them into the database more than once. all authors should have once entry in the author field. all of the books associated with the author go in the books field on the same row seperated by commas.
also you have to add the
where you want the books to be displayed
also you have to add the
<span id="books"></span>
where you want the books to be displayed
•
•
Join Date: Mar 2007
Posts: 18
Reputation:
Rep Power: 2
Solved Threads: 0
•
•
•
•
the reason duplicate authors are being displayed is because you entered them into the database more than once. all authors should have once entry in the author field. all of the books associated with the author go in the books field on the same row seperated by commas.
also you have to add the
<span id="books"></span>
where you want the books to be displayed
is the id refering to a variable in the code here? just trying to understant what it means
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Apache (Linux Servers and Apache)
- PHP and MySQL newbie introducing self (PHP)
- PHP-MySQL: Registration, Leave Request, Inventory Information, etc... (PHP)
- free php/mysql programming (Web Development Job Offers)
- Hello All: PHP-MySQL Web Designers/Developers. (PHP)
- List Of Free PHP,MYSQL Webhosting Provider (PHP)
- PHP and MySQL Web Development (PHP)
- Blank drop list (PHP)
Other Threads in the PHP Forum
- Previous Thread: MySQL date formatting
- Next Thread: i am having problems send html emails from my forum


Linear Mode