SunQuest
           MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old June 11th, 2000, 10:18 PM
ted andersen ted andersen is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 13 ted andersen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
hello,

sorry if this is described in the FM, but i have been looking...

does anyone store the html code in the MySQL database? i am trying to figure out a way to use his/her login information open up a personalized web page. in other words if jack logs in he sees jack's page, not sue's.

thanks.

Reply With Quote
  #2  
Old June 12th, 2000, 05:43 AM
rod k rod k is offline
Apprentice Deity
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Jul 1999
Location: Niagara Falls (On the wrong side of the gorge)
Posts: 3,237 rod k User rank is Private First Class (20 - 50 Reputation Level)rod k User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 m 8 sec
Reputation Power: 13
Send a message via AIM to rod k
You can but it's problemtic. Why not just store the URL of the page in the db?

Reply With Quote
  #3  
Old June 12th, 2000, 07:45 AM
scoobydoo scoobydoo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Location: Sydney, Australia
Posts: 32 scoobydoo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Yeah.. i don't see why not? It's only text and chars you are entering.
Just make sure that you use the addslashes() function to add those slashes in there before you add it into the database otherwise mysql will give you problems.
Html codes has alot of " and ' that needs to be added slashes in front of it.

addslashes($html_code);

i hope that makes sense to you.... =)

scoobydoo

Reply With Quote
  #4  
Old June 13th, 2000, 05:31 AM
EyE EyE is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2000
Location: Den Laeghe Landen
Posts: 107 EyE User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 49 sec
Reputation Power: 9
Send a message via ICQ to EyE
You sure can.
But are these pages all the same layout/categories/items etc, except that Johns page shows Johns header, johns bookmarks, johns other nice data?

In that case, you should create a table with all these data, and generate the pages with one script, and let it fill in all the user-specific data.

Much better, much more powerful, much er!

------------------
--
...tiktak...tiktak...
--
...Tommyknockers, Knocking On Your Door...

Reply With Quote
  #5  
Old June 13th, 2000, 01:49 PM
ted andersen ted andersen is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 13 ted andersen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
hello eYe,

thanks for the input. this is where everyone seems to be pointing me.

this method also opens up a neat door: i can create a script for our customers to add a new user. if they get a new customer that they want to add, they can go into this form and add the info. in doing this they effectively create a "new" web page.

now if i can just figure out a way for them to ftp images to me via the admin script. any ideas?


thanks.

Reply With Quote
  #6  
Old June 14th, 2000, 02:05 AM
EyE EyE is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2000
Location: Den Laeghe Landen
Posts: 107 EyE User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 49 sec
Reputation Power: 9
Send a message via ICQ to EyE
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by ted andersen:
Hello Ted,
is there a simple way to add the ability to ftp a file to me via the same script?
[/quote]
I've never used it, but PHP has some special tools to do this. Read the following part of the PHP-manual: http://www.php.net/manual/features.file-upload.php
I think that should do it.

Greetz,

EyE



------------------
--
...tiktak...tiktak...
--
...Tommyknockers, Knocking On Your Door...

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > storing html in MySQL


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


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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway