-
02-28-2005, 05:40 PM
#101
Programming Ninja
-
02-28-2005, 05:42 PM
#102
What mkeefe is saying is you should do this:
Store the url of the image in your DB then, for example, in your img tag
you could do something like this
<img src="<?php echo $img_url; ?>" />
Where $img_url is the url of the image that you queried from your DB.
You could store the whole img tag in your DB then echo that, but storing just the url gives you more versatility if you want to use the image some other way.
-
03-01-2005, 03:38 PM
#103
What I ended up doing is in the part where the script prints out rows of a table the $row[] deal, I put in the line:
<img src=directory/$row[picture file name] />
Now when the parser gets to the row it just looks for the file name from the database which has already been pulled through the connection to said DB.
So far it works fine.
BTW, I put the site live last night. If you guys want to check it out,
Go HERE<--------
It's not completely done, but the Clearance machines, Finance and Pre_Owned machines have been done with PHP. Please let me know what you think about it and if there is anything I could do better (I'm sure there are a few things I could do better).
I'm still thinking of a way to format the clearance machines better. I'm not too satisfied with the way it's laid out right now.
Thanks guys for all your input.
Matt, special thanks to you for not leaving me hanging through out this experience.
I'm glad I stuck with PHP and not chucked it as far as I could while trying to install the whole thing. That was a real pain but now it's paying off.
Another thing, now since I got over 100 posts, who can I talk to about the custom title?
-
03-02-2005, 05:08 PM
#104
Programming Ninja
I like it. The form layout is professional. Did you work out all you php problems?
ps: You reguest a custom title here
http://www.dreamweavercafe.com/cafe/...ead.php?tid=62
[Edited on 3/2/2005 by mkeefe]
-
03-02-2005, 08:39 PM
#105
Thanks Matt.
As far as problems, so far so good. There were a few things that I ended up working around, but otherwise, I'm good to go.
I think the biggest thing now is to get ideas for more stuff. I also, plan to streamline a few things along the way.
It's pretty interesting to look at the development of the whole thing.
I started with the contact form which is really simple, then I did the non-current which uses seperate tables for street, off-road and ATVs. After that I did financing, which has separate tables for manufacturers but the types of financing are mixed. And finally, I got the used stuff which uses one table for everything.
Kind of cool. Now I need to consolidate all the other tables into categories and figure out how to work with relations between the tables.
I'm way excited!!!
Thanks again to everyone who helped me through this project.
Hopefully I will be able to give advice too one day.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules