![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Ok, this has been driving me nuts for a couple of days. Lets say, for example the I have 4 columns in my recordset - id, event_name, event_location, event_charge Now, I want to query the table and display the records with dynamic text on a page like so: Event Name: User Group Meeting Event Location: Hawaii Event Charge: $100 If there is no value in the event_charge field, I'd like to not display either the value or the label on the page, because it's just not needed. I have been able to figure out how to not show the entire row if something is blank, but can you point me in the correct direction for not showing a particluar column of a row. Oh, and I'm using PHP. Does this make sense? Thanks, Chris |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Murray, I'm fairly new to php. Well, let me be honest. I'm new to web development in general. Can you give me some sample code? I'm not sure what you mean by testing the field. I'm assuming an if/else statement? I am a bit familiar with that, however, I'm not familiar with how to display the field and label only if the value is empty. |
![]() |
| Thread Tools | |
| Display Modes | |
| |