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

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:
  #1  
Old September 21st, 1999, 11:32 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Printing This Page

When I print the "Printer Friendly Version," my print driver is parsing the perl script from the first page to the 3rd page. Does this happen to anyone else? Is there a work around that anyone knows of?

Reply With Quote
  #2  
Old September 21st, 1999, 01:05 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: Printing This Page

Well, I did it. This is how. I'm sorry if it sounds like a commercial for another site, but this is how I printed the page without my printer driver parsing the perl and php scripts.

I saved print.html as print.rtf on my machine. I went to www.fax4free.com, and faxed it to myself. It came out just fine.

Jeff

Reply With Quote
  #3  
Old September 22nd, 1999, 10:00 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Story is way to brief

the article is filled with lots of information for newbies , but as far as it being productive i tend to see the author rushed throught writing this article.
<br>
<br>
Mysql tables are mentioned a few times , but yet there is no reference at all what you need in Mysql to make this work.
<br>
<br>
Well, it is still nice that there is a site to help you gain knowledge .. but its a shame that not all topics are step by step like some of the topics here.

Reply With Quote
  #4  
Old September 22nd, 1999, 10:11 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: Story is way to brief

I agree there should have been more explanation on how to get the tables set up in mysql, and we should probably point to existing documentation about the subjects (such as the cookie function, the mysql setup, etc.). We'll keep that in mind for future articles.
<br>
<br>
Duncan, would you mind posting the mysql table information here? It would be a big help.
<br>
<br>

Reply With Quote
  #5  
Old September 22nd, 1999, 10:59 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: Story is way to brief

<P>Not to sound like a teacher or anything but I thought this story was made to introduce us to the subject. Once we are introduced to it, we would go and buy/borrow books on mySQL and PHP in order to figure this out ourselves.</P>
<br>

<br>
<P>We are designers and programmers are we not? We're architects that have to plan and design our own plans using knowledge we learn from sites such as devshed.</P>
<br>

<br>
<P>The best way to learn something isn't to cut and paste someone else's work. The best thing to do is to figure it out ourselves.</P>

Reply With Quote
  #6  
Old September 22nd, 1999, 12:23 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
MySQL Table for the article

I apologize for the oversight. I intended for the table structure to be on the first page, but I must have neglected to include it. Here is how it should look: The fictional database is named "project". This is a dump of what the table contains:


<!-- Code -->
<p><pre><font color=#008000><xmp>
CREATE TABLE users (
login char(16) NOT NULL,
password char(10) NOT NULL,
lastlogin date DEFAULT '0000-00-00' NOT NULL,
news1 char(20),
news2 char(20),
news3 char(20),
PRIMARY KEY (login),

);
</xmp></font></pre><p>
<!-- Code -->


The article may seem a bit fast, but there's quite a bit of useful information which had to be included. As I stated on the last page, the application described is barely completed, and could use quite a bit more fleshing out. I could include more examples of code illustrating just that if there's interest. The intent of the article was to show the concepts in action, and to spark your own ideas of how they could be used. Please let me know any comments you may have.

Reply With Quote
  #7  
Old September 22nd, 1999, 01:28 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Just what I needed

Good Job. Nothing that I did not already know was left out. I was sketchy on how to use cookies with php, but I understand now.
<br>
Thank you for the help.

Reply With Quote
  #8  
Old September 22nd, 1999, 01:29 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: Story is way to brief

well thats all nice accept when you are currently studying MySQL and PHP3 , but would love to use something a reference .. its one thing to read a book on karate and another to see the teacher show you the moves ..
<br>
<br>
right ?

Reply With Quote
  #9  
Old September 22nd, 1999, 01:39 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: Story is way to brief

In akido I've seen my teacher show us something basic like what devshed did and had us learn and practice on our own: reading the book and applying what was learned. We built on what he showed us. He was the book and we were the students. I studied him patiently and learned the basic moves first. In the end, we figured out what moves flowed with what blocks. Swing dancing is the same thing except your partner is a computer. In the end we gain our own style.
<br>

<br>
Like I said before, we are computer architects and engineers. We must design something uniquely our own.

Reply With Quote
  #10  
Old September 22nd, 1999, 02:12 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: Story is way to brief

ok Mark you win :)
<br>
<br>
point well taken ...
<br>
but we are artists also :)
<br>
<br>
thanks.

Reply With Quote
  #11  
Old September 22nd, 1999, 02:16 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: MySQL Table for the article

Duncan ,
<br>
<br>
thanks for donating some time to us newbies learning php and mysql :)
<br>
<br>
im about ready to play around with some of the code and see if i can get it to work ..
<br>
thanks again man.
<br>
<br>
i'll post a follow up.
<br>
<br>
much appreciated,
<br>
kabok

Reply With Quote
  #12  
Old September 22nd, 1999, 02:49 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
the table

im using this table for the example that was posted

<!-- Code -->
<p><pre><font color=#008000><xmp>

CREATE TABLE users (
login char(16) NOT NULL,
password char(10) NOT NULL,
lastlogin date DEFAULT '0000-00-00' NOT NULL,
news1 char(20),
news2 char(20),
news3 char(20),
PRIMARY KEY (login),
);

</xmp></font></pre><p>
<!-- Code -->

but i keep getting this errors :ERROR 1064: You have an error in your SQL syntax near ')' at line 9

any suggestions ?


Reply With Quote
  #13  
Old September 22nd, 1999, 02:56 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: the table

Take out the last comma - looks like a typo on my part. Specifically, make

<!-- Code -->
<p><pre><font color=#008000><xmp>
PRIMARY KEY (login),
</xmp></font></pre><p>
<!-- Code -->

look like

<!-- Code -->
<p><pre><font color=#008000><xmp>
PRIMARY KEY (login)
</xmp></font></pre><p>
<!-- Code -->

without that last comma.


Reply With Quote
  #14  
Old September 22nd, 1999, 03:34 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: the table

thanks duncan . im heading home from work so i will try it when i get there :)

Reply With Quote
  #15  
Old September 22nd, 1999, 03:43 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: the table

That's good news, I promise you'll learn quite a bit. Feel free to contact me directly if you need some one on one help. My email is lambd@wwisp.com .
<br>
<br>
Duncan

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherDevelopment Articles > Developing a User Personalization System with PHP and Cookies


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 6 hosted by Hostway
Stay green...Green IT