Reply
direct access to cell in SQL database using PHP
Old 07-15-2004, 04:03 PM direct access to cell in SQL database using PHP
Junior Talker

Posts: 2
Hi!

I want to put most of the static content of a page into a MySQL database. Because it is clear in the PHP source code which specific cell (content) should be included, I want to avoid unnecessary queries etc.

How can I directly access a specific cell? For example with some pointer system or something similar (db->table->row->field). Each row has a unique ID.

Anditcd
anditcd is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 07-15-2004, 06:10 PM
cmonkey's Avatar
Ultra Talker

Posts: 268
PHP Code:
$result mysql_db_query($dbname"SELECT cellname FROM tablename WHERE id='whatever'"$link); 
id would be the name of whatever your index column is called

hope that helps
cmonkey is offline
Reply With Quote
View Public Profile
 
Old 07-16-2004, 06:39 AM Thanks!
Junior Talker

Posts: 2
anditcd is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to direct access to cell in SQL database using PHP
 

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12419 seconds with 12 queries