Ok guys. It is once again time for me to make my self look real stupid which I am pretty good at doing.
All I am trying to do is insert a pilots ID and First and last name in a table. The Pilot ID should be a link to his or her own public profile while the first and last name are merely that, just a name (no link).
I have tried every single code I can until I have been blue in the face for 4 or 5 days now and still no good. I simply can not figure out how to get that code or where it comes from. I have consulted many php readings and all of it is different then we use here it seems.
So I figure after almost a week of trying it was time to ask. I hate to ask for help 5 minutes in to having a problem. I prefer to try to help my self, but this time I fell short in my quest. Any help would be gladly accepted and very much appreciated at the same time.
Hi Vansers. Let me try that and see how it goes. Maybe I had a typo when I tried it but that looks exactly like I tried it from day one. I will come back and let you know how it goes. Thanks a bunch!
That returns 0000 as the pilot ID and nothing for the name. Do I need to add a foreach() or something somewhere maybe?
At one point in time I did have it producing what I wanted, except when clicking the ID number it went to a page that said Pilot Does Not Exist. If I can get it to reproduce that I will and let you know what code I used.
Thanks. I really do appreciate it. As I said this one has been aching my back side for days now. Maybe one of these years I will get this phpVMS code figured out.
I had to doctor up the code but by gumpus she works now! Now my only issue is, it is only putting one pilot in the table and dropping the rest out of the table.
I wonder if I need to move my
<?php
}
?>
or something. I have never had an issue with a table doing that before to be honest.
**EDIT**
That was it. I had to move that little ditty of code up inside of the table. Once I did that, everything fell in to place.
Thanks for helping me out. I REALLY appreciate it! I did everything for the past week I could think of to do. And yeah it all boiled down to me not having the for each and closing php in the code. Oops!
Yeah it was rough. And great when I finally nipped and tucked the code you offered and it worked.
Long story short, I had it right once. It was out putting data, it was just wrong. I then ditched my code in a effort to make it right. That was the wrong move. Once I saw the code you posted, I knew when I used the for each the first time I was on track.
I really do thank you for the help though. I normally never try to ask for help until it is the last resort. I try to help myself first. Many times people come here looking for help before they even try to help them selves.
Ok 1 last thing on this one. After looking at and admiring the table that finally works with help from other peers here, I have decided that the black text for the status has got to be changed to red or green depending on the status of the pirep. The million dollar question is do I shade the whole background of the status or just change the text color?
Is this done via the CSS file? Or is it hard coded in the tpl file? I have tried a couple different ideas and came up with errors. I know this is so simple I am gonna smack myself int he face when I find the answer or someone graciously offers it up.
Thanks guys! I really appreciate it. I was right on both counts then I was just doing it wrong. Thanks again and I will once again mark this one solved.
Yes i agree, there are so many modifications that i have made in so many different ways that work that to standardize it I would be working trough all the tpl’s for a month.
I know as my knowledge grows with phpVMS so does the coding standards i implement, I have learnt so much since being involved with this community not only just with phpVMS but with php as well.
Believe me i knew nothing! and still dont
I went to school when computers just didnt exist, all we had was the BBC computer if i remember rightly, i still kick myself for not pushing myself to learn a code php, javascript.