Ok now I am back working on my <DIV> and as you recall from above I want to increase the DIV id=Name0 by one each time the Do.. While loop works its way through.
However....... Instead of ECHO-ing out each HTML line I used dreamweaver and inserted the Database item encased in a PhP tag into the HTML table where it should show up.
So it looks like this....
[CODE=html]
<?php Do { ?>
<div id="billboard0 "...
User Profile
Collapse
-
I can not post the code from before because its all jumbled up with all the echo's.
But I do appreciate this and will try it out. I figured that I would have to do it this way, but knew I would not know where to start.
Here is a Newbie question. I try to read code out of books and articles and would like to know what exactly do these mean.
Something like this ....
[CODE=php]$this ->template_dir = Template_dir;...Leave a comment:
-
I will do that But how do I do it. Ihave been trying to figure out what the buttons doCode:above the message box.
Leave a comment:
-
How to increase a DIV ID counter within PHP
I'm back with another question about a rotating Marquee.
I have a marquee that rotates information through a window on my web page.
With your help here I have figured out a bunch and have it working, Almost.
I have to read data into a <DIV> statement and Echo out a table structure. then save that file that is a page of filled in data areas. I finally did that.
But, to have the marquee show different photos and information... -
I think I found my answer.....
[code=php]
//Retrieves data from MySQL
$data = mysql_query("SE LECT * FROM employees") or die(mysql_error ());
//Puts it into an array
while($info = mysql_fetch_arr ay( $data ))
{
//Outputs the image and other data
Echo "<img src=http://www.yoursite.co m/images/".$info['photo'] ."> <br>";
Echo "<b>Name:</b>...Leave a comment:
-
Thanks for the info. after reading these post and others around the board. I am starting to get it now of what I have to do to Echo out all the table details to write the divs's.
Now my question is this. In you example above. It looks as if the data will print out in a tabular form in the tables.
I have the formatted table cells set up to accept the data from the Database table into these cells. What syntax will I use.
for example...Leave a comment:
-
Thanks for responding.
However, I was trying to just merge the data into an already detailed formatted table. But now looking at what you typed in and thinking about it a little more, I guess I would have to have the PHP echo all those table statements to get the up to 10 DIV statements produced.
I was thinking to be able to just have a boiler plate formatted table made up and the php drop the selected fields into the proper cells....Leave a comment:
-
Help to use PHP file to read in data from mysql & write out Html
O.K. that was a long Title...
Can you help / show me how I would......... I am going to long windedly try to paint this picture.
Backround: I have an html page that has a marquee function in it to display a small photo and other information to scroll in a box on the web page.
The marquee's info is a table with data that I now insert manually.
I would like to be able to insert the data into it from a mysql database....
No activity results to display
Show More
Leave a comment: