Re: db table column name to table header name



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.
.



Relevant Pages

  • Re: How do we get there from here?
    ... > then sub the whole of that generated markup into the template? ... layed out on the fly, a simple IMG tag, or even an entire HTML document. ... PHP scripting provides 10 times the features of both of these ... idea as tokens can eliminate a huge amount of maintance, ...
    (comp.databases.pick)
  • Re: query string passing woes........ help... please....
    ... |> | offer any help other than saying that my validation could be FAR more ... I'm a total newbie at php. ... The easiest way for you would be to make the html form called form.php ... $_SESSION array using the same names. ...
    (alt.php)
  • Re: HELP - Cant change Include Path
    ... Here is my php.ini path for the php.ini in both php and sql dirs: ... which did work on the remote linux server and sent me some mail ... Although my gmail acct picked the mail up as ... an attachment instead of as html - but gmail is really wierd about ...
    (comp.lang.php)
  • Re: How do we get there from here?
    ... server-side-scripted html. ... This is a simple example with very little php scripting. ... means that the version of the php pre-processor on your web server must ... >>> The browser never sees anything not sent to it by the script. ...
    (comp.databases.pick)
  • Re: PHP-Yes, HTML-No --- Why?
    ... Because the files, when downloaded, are called .php and have absolutely no php in them:) ... But the extension doesn't match the contents of the file. ... Surely a dynamic web server should appear exactly the same as a static one - all files that contain HTML when viewed should be called .html. ...
    (comp.lang.php)