Log in

View Full Version : 2 things.



Stoo
10-26-2006, 05:27 PM
If you guys can help or let me know where I can find examples I would be gratefull..

I have syntax within dreamweaver php that looks like

print $row["date"]. " -- ". $row["title"]. " -- ". $row["description"]. " -- ".$row["author"]. "<br>";

i would like to be able to change the format, (the way it will be laid out)
as at present it will look something like

26/10/06--PHP--Bit of a description--Author..

Really i'd like it to be laid out as so..

Date(bit of a space here) Title
(Next Row is a space)
Description here..
And then right justified the author

Any help where I can learn about layout?


Next question..

How do I show an Image.. how is it put into phpMyAdmin and how is it recalled..

Thank you

Twey
10-26-2006, 10:44 PM
How do I show an Image.. how is it put into phpMyAdmin and how is it recalled..Nothing is put into phpMyAdmin. phpMyAdmin is an administration utility for MySQL, which is a database.
You can store and read to and from a BINARY BLOB field in MySQL just like any other data field, but it's usually considered a much neater approach to store the binary data to a file and save a filename in the database. This is especially handy on the web, since you need to provide a src attribute to the image tags (no, IE still doesn't support data: URIs) and storing the data in a database requires that you use a separate page to retrieve it.
Any help where I can learn about layout?This has nothing to do with PHP. Look at a CSS tutorial (http://www.w3schools.com/css/default.asp).
within dreamweaverI suggest you drop DreamWeaver. It takes a very skilled (and patient) designer to counteract the myriad problems such editors tend to introduce into code, and by the earlier question showing your lack of knowledge of CSS, I'm guessing you don't fall under this category. Please, use a text editor. You'll appreciate it eventually.