|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
Thanks. It's now fixed...
Thanks for pointing that out. It is fixed now.
|
|
#4
|
|||
|
|||
|
Great article.
Wonderful article. This is one of the most useful PHP articles I've read thus far.
Thanks, -wj |
|
#5
|
|||
|
|||
|
Great article.
Wonderful article. This is one of the most useful PHP articles I've read thus far.
Thanks, -wj |
|
#6
|
|||
|
|||
|
Re: Great article.
Thank you. There will be a sequel.
|
|
#7
|
|||
|
|||
|
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 |
|
#8
|
|||
|
|||
|
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 |
|
#9
|
|||
|
|||
|
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 |
|
#10
|
|||
|
|||
|
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?
|
|
#11
|
|||
|
|||
|
Re: Great article.
Agreed. I\'ll be checking devshed out a lot more often if I keep seeing good PHP articles like this.
Thanks! |
|
#12
|
|||
|
|||
|
Re: shed
Please tell me you\'re kidding :) Have you looked around the site much?
|
|
#13
|
|||
|
|||
|
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> |
|
#14
|
|||
|
|||
|
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. |
|
#15
|
|||
|
|||
|
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(\ |
![]() |
| Viewing: Dev Shed Forums > Other > Development Articles > Accessing Databases with Class |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|