Jump to content

Show all fields after a certain field in mysql


penguin0

Recommended Posts

I guess I would need a loop to print the field name into this so i can directly pull from the db instead of making a new one for each:

 

			<label>
			<input type="radio" name="rateman" value="1" ' .  ($urateman == 1 ? 'checked="checked"' : '') . ' /> Yes 
			<input type="radio" name="rateman" value="0" ' .  ($urateman == 0 ? 'checked="checked"' : '') . ' /> No
		</label>

It's a bit weird, but you could workaround your problem by using the list-fields query, and creating an array of the database fields (in the order that they exist) then selecting all (*) fields and only outputting data for fields after the one you designate.

 

http://aspn.activestate.com/ASPN/docs/PHP/function.mysql-list-fields.html

 

I'll leave it to you to figure that one out  ::)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.