Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 05-15-2009, 11:09 PM Filed name + data
Novice Talker

Posts: 6
Trades: 0
Hey guys

I'm guessing this is probably pretty simple for anyone who's not a PHP rookie.

I have my database, and I'd like to be able to create a page with a form, whereby the user can modify the values for that particular record in the database.

I'd imagine I'll use the 'mysql_query' function to call the query based on the ID carried across from the previous page. From there, I'm a little stuck. I'd like this page to have all of the fields from the query (*), and the value currently in the database in the fields, for that particular ID.

I noticed the 'mysql_fetch_field' function, but how do I then have the data for that field and the specified record (in the query) as well?

Thanks for any help you can provide!
RynMan is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-16-2009, 10:36 AM Re: Filed name + data
Novice Talker

Posts: 6
Trades: 0
bump...
RynMan is offline
Reply With Quote
View Public Profile
 
Old 05-16-2009, 08:05 PM Re: Filed name + data
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
mysql_fetch_array() will allow you to fetch an associative array so you can require the field name for each row.
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 05-17-2009, 09:20 AM Re: Filed name + data
Skilled Talker

Posts: 84
Trades: 0
while(list(field1,field2,..) = mysql_fetch_array())
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
- 1-888-869-HOST(4678)
Award winning Managed Hosting -
Please login or register to view this content. Registration is FREE

Managed Dedicated Servers. Reseller Discounts. 24/7 Impressive Tech Support
HivelocityDD is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Filed name + data
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB 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.13433 seconds with 12 queries