![]() |
| ||
| Re: show club presidents info hide everyone else's The names and offices show up properly, but none of the contact info shows up, wether logged in or not. I would assume that the sql query's are working fine, just the if logged in and if officer aren't working. I do appreciate the help! |
| ||
| Re: show club presidents info hide everyone else's Okay, I came in after-the-fact on this post and now I'm going to back up and take it from the start ... wish me luck. First of all you need to test and make certain you have a 'true' value for session status when a member is logged in. That could be your only problem right now. Please check my code to make sure all of your database login and table field names are correct -- change my code values if they are not And check that the SESSION names-values are correct, and working <?php Okay, my eyes are so blurry I can't read...hope I didn't make too many type-os Ciao |
| ||
| Re: show club presidents info hide everyone else's Hi, yours seems to be really close except: There is a bunch of < r> before the table (I can't find where they are coming from), I also would like to insert into a cell if the sql row is empty for that column (to make the table look better) I did have to make a couple of changes to make things work, but this is the closest I've gotten yet. <?php I added the SELECT CASE so I could order the offices in a set order. I do have the 'sub_name' sent from a form currently, but I don't want to switch it to the POST method. I want to keep it so I can make a link and have it go directly to a certain one, therefore I believe it should stay as GET. Thanks for all your help so far. |
| ||
| Re: show club presidents info hide everyone else's I was laying there in bed trying to go to sleep and realized I had not added the contingency for empty values or empty table cells ... Try this $html = '';Hope this works for you. Out of curiosity, what are you doing with these lines in the SELECT statement? (SELECT ... |
| ||
| Re: show club presidents info hide everyone else's Ok, First off the table looks better, but for some reason I'm getting < r> tags at the end of each row. These are place before the table. I don't understand where they are coming from. The (SELECT lines are to sort the results by a list I set. I don't want the rows sorted alphabetically. I want them according to office, eg the most important office (president) office to the lesser important (the committees). Thanks Again for you wonderful help. |
| ||
| Re: show club presidents info hide everyone else's Quote:
Could they be coming from one of the include files? Could they be coming from some copy-paste-replacement you made and left a telltale < r> (say from <tr> or <br>)? Just guessing And you're welcome about the help :-) |
| ||
| Re: show club presidents info hide everyone else's Hi again. I just found where they were coming from. you had typed <\tr> when it should have been </tr>. Once I changed that it made everything show, if I dare say, perfectly. By the way I knew the include files were fine. Thanks Alot! |
| ||
| Re: show club presidents info hide everyone else's I knew I was pretty tired when I wrote that stuff...glad you found the source of the problem. Take care |
| All times are GMT -4. The time now is 2:13 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC