Re: db table column name to table header name
- From: George Mills <gmills@xxxxxxxxxxxxxxxxxxx>
- Date: Thu, 18 May 2006 14:19:41 GMT
Drakazz wrote:
$names=array("b_date"=>"Birthdate"); // Add more!!
foreach ($row as $key => $value) {
echo "<th>".$names[$key]."</th>";
}
anyway, your coding is not very nice in both HTml and PHP:|
Thanks Drakazz.
If your still looking for a host jaguarpc has php5 but you have to ask for it by name, which I haven't yet. They're version of mysql is also a little behind but they have been superb at granting requests so you should be able to get a never version.
You think my html and php are not very nice, you should see my not very nice sql statements, my not very nice javascript, and my not very nice css. And if you think that is something you should see my html input that dynamicly creates the sql statement that dynamicly creates the javascript that dynamicly creates the css which dynamicly shows the html. (Actually I haven't had to write that yet but I am getting closer every day.)
You seem like a smart person to my Drakazz. If you have the free time could you write an object-oriented scripting language for me that transparently generates html and css and seamlessly queries databases and you can run server side of client side with tags like <?php_server foo(); ?> <?php_client bar(); ?>. Next week would be great. ;P
Just kidding,
George
Thanks for the coding tips I will try to clean up my code a little. At one point I made sure all my html was xhtml compliant but it was a pain and I got to the point where I didn't believe I was getting anything for all the extra dotting i's and crossing t's.
.
- Follow-Ups:
- Re: db table column name to table header name
- From: Drakazz
- Re: db table column name to table header name
- References:
- db table column name to table header name
- From: George Mills
- Re: db table column name to table header name
- From: Drakazz
- db table column name to table header name
- Prev by Date: Re: Smarty error: problem writing temporary file
- Next by Date: Re: Looking for a PHP app
- Previous by thread: Re: db table column name to table header name
- Next by thread: Re: db table column name to table header name
- Index(es):
Relevant Pages
|