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 December 31st, 1996, 11:00 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Seekist.com

How about a nice new name for your search engine: Seekist.com,if you are interested have the name value and make an offer,Cheers
Willjames

Reply With Quote
  #2  
Old June 15th, 1999, 04:31 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Oops! Editing boo-boo...

There's a small probem with this article - you'll notice that page 3 (Extending Classes) is repeated on page 4 (Queries and query results).
<br>
<br>
If you look down page 4, you'll find the actual start of "Queries and query results" right above Example 7. (Last sentence of paragraph above - should be bold title. :^)
<br>
<br>
Otherwise, great article! Gives me good insight into Kristian's PHPLIB DB_Sql functions as well.

Reply With Quote
  #3  
Old June 15th, 1999, 04:50 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Thanks. It's now fixed...

Thanks for pointing that out. It is fixed now.

Reply With Quote
  #4  
Old June 17th, 1999, 07:00 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Great article.

Wonderful article. This is one of the most useful PHP articles I've read thus far.

Thanks,
-wj

Reply With Quote
  #5  
Old June 17th, 1999, 07:00 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Great article.

Wonderful article. This is one of the most useful PHP articles I've read thus far.

Thanks,
-wj

Reply With Quote
  #6  
Old June 18th, 1999, 02:29 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: Great article.

Thank you. There will be a sequel.

Reply With Quote
  #7  
Old June 18th, 1999, 12:32 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Questions

Thank you for this great tutorial.
<br>
<br>
I have a couple of simple questions:
<br>
<br>
1) I noticed a %s appearing in the code several times. What is it?
<br>
<br>
2) Could you explain a little more what p() and f() do? What do "p" and "f" stand for?
<br>
<br>
3) What does the @ represent? (@mysql_affected_rows)
<br>
<br>
Thank you,
<br>
<br>
riddler

Reply With Quote
  #8  
Old June 25th, 1999, 01:34 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Limiting the amount of records

I'm working on retrieving information from the MySQL database and placing a 'LIMIT' function in PHP to return only a selected number of results. For some reason i'm getting all records returned. Any suggestions?
<br>
<br>
Thank you;
<br>
<br>
P. Robie

Reply With Quote
  #9  
Old June 25th, 1999, 04:41 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
shed

Hi,
Im needing plans to build a small shed, similar to the Cabanas from Duro-Shed. I need a 7\'w x 10\'l x 6\' height or close to those dimensions.
Thanks,
Ron

Reply With Quote
  #10  
Old June 26th, 1999, 06:20 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Would we still need to call mysql_close()?

Though the class connects to the db and makes a lot of db work easier, the example doesn\'t seem to indicate whether mysql_close() is still required. I am assuming it is. What type of damage can one cause if they forget to close the db?

Reply With Quote
  #11  
Old June 27th, 1999, 03:34 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: Great article.

Agreed. I\'ll be checking devshed out a lot more often if I keep seeing good PHP articles like this.

Thanks!

Reply With Quote
  #12  
Old June 28th, 1999, 10:58 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: shed

Please tell me you\'re kidding :) Have you looked around the site much?


Reply With Quote
  #13  
Old June 28th, 1999, 11:01 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: Would we still need to call mysql_close()?

Yes and no.. Take a look at the PHP docs for mysql_close:
<br>
<br>
mysql_close() closes the link to a MySQL database that's associated with the specified link identifier. If the link identifier isn't specified, the last opened link is assumed.
<br>
<br>
Note that this isn't usually necessary, as non-persistent open links are automatically closed at the end of the script's execution.
<br>
<br>
mysql_close() will not close persistent links generated by mysql_pconnect().
<br>
<br>

Reply With Quote
  #14  
Old June 29th, 1999, 04:44 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
There is no need to call mysql_close() any
time. PHPs resource management will do the
right thing automatically: Depending on
whether you used a *_connect or a *_pconnect
to establish the connection it will close
the link automatically at the end of the
page or reuse the connection on subsequent
pages.

It is the nature of script languages
that they relieve you of such bookkeeping
chores.

Reply With Quote
  #15  
Old June 29th, 1999, 05:22 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: Questions

The printf() (print formatted) function of
<br>
PHP is directly copies from the C language.
<br>
It takes a format string as the first
<br>
parameter and any number of variables as
<br>
the following parameters. The format string
<br>
must contain placeholders, which consist
<br>
of a percent sign and a type. Thus, %s is a
<br>
placeholder for a string variable.
<br>
<br>
You are using the printf() function like
<br>
this: printf(\

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherDevelopment Articles > Accessing Databases with Class


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