Development Tutorials
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsCommunityDevelopment Tutorials

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old May 3rd, 2004, 10:58 AM
DevAdmin DevAdmin is offline
Utility Bot
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Feb 2004
Posts: 1,221 DevAdmin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Article Discussion: Using htmlArea and a Database to Maintain Content on a Website

If you wish to develop a website that others can contribute to, one option is to have text files sent as e-mail attachments, convert these to HTML and then upload the file. There is, however, a better way! If the people making submissions to your site are capable of using a word processor then things can be done much more efficiently. This article will show you how to use a free component called htmlArea and a database to handle the addition and display of content on your website. Some knowledge of HTML, databases and server-side scripts is assumed.


Read the full article here: Using htmlArea and a Database to Maintain Content on a Website

Reply With Quote
  #2  
Old May 5th, 2004, 02:19 PM
neutcomp neutcomp is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: The Netherlands
Posts: 24 neutcomp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 15 sec
Reputation Power: 0
Nice artical but there there are alot of bugs in your code.
I dont think you tested it at all, or am I mistaking.

For people with less understanding here comes sollutions.

1) Remove the <p> tags arround the textarea
2) In the connection.php only place this info
$username = "yourusername";
$password = "yourpassword";
$hostname = "localhost";
$databasename = "databasename";
3) copy past watch out for the ? > (no space) ?>
4) processform.php mysql_selectdb must be mysql_select_db
opendatabase(); not needed just mark as //opendatabase();
5) dbfunctions.inc place there:
function showerror(){
echo "Query not executed";
}
6) gettext.php wrong query this is the correct one:
$strsql = "Select title, topic, author, contents, Date_Format(whenadded,'%M %e,%Y') AS formatted from items WHERE id = $itemnumber";

Good luck
if someone needs a working version just let me know I will mail it to you.

Cya
Bjorn

Reply With Quote
  #3  
Old May 5th, 2004, 08:26 PM
peterl peterl is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 2 peterl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
To Cya Bjorn

This article is based on a real-life web application. In order to focus on the problem at hand and keep the article to a reasonable length some code was not included ("... functions to open the database are not shown ..."). Likewise the database structure was altered slightly. Obviously this was not entirely successful. Thanks for your helpful comments. Hope you found it useful.

Peter Lavin (author of article)


Reply With Quote
  #4  
Old May 6th, 2004, 01:15 AM
neutcomp neutcomp is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: The Netherlands
Posts: 24 neutcomp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 15 sec
Reputation Power: 0
yes usefull

Ofcours it was usefull.

I am only going to use it for someother reason.
I want to make a newsletter (html) and this is going to be the editor.

Good luck
Bjorn

Reply With Quote
  #5  
Old May 14th, 2004, 11:34 AM
salai salai is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 1 salai User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Exclamation

I have a problme with htmlarea files.
my htmlarea file is in c:\htdocs\html\
how can i added in my page?

<script language="Javascript1.2">
_editor_url = "http://localhost/zcms/html"; // URL to htmlarea files
????

best regards,
salai

Reply With Quote
  #6  
Old July 13th, 2006, 04:19 PM
karmakat karmakat is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Posts: 1 karmakat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 24 sec
Reputation Power: 0
Could I please get a working version of this?

Bjorn,

Thanks for clearing some things up.
I have followed your fix instructions but for some reason it does not seem to submit to the db.... also this gettext.php?itemnumber=1 doesnt seem to work...

Not sure what I am missing....

If your offer still stands to send out a working version it'd be much appreciated!

Thanks again...

-aleks

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsCommunityDevelopment Tutorials > Article Discussion: Using htmlArea and a Database to Maintain Content on a Website


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

Request Your Free Technology Downloads!
 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

Request Your Free Technology Downloads!
 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

Request Your Free Technology Downloads!
 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

Request Your Free Technology Downloads!
 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 8 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek