Hello,
Would just like to know if this is possible!
On http://horza.eu/spots/ I have 2 columns - "t shirts for girls" and " t shirts for boys".
At the moment this is just in html format. What I want to achieve is, to have each product pulled from a database and then shown in that format eg 2 images per row rather than all images shown on the same row.
"t shirts for girls" and " t shirts for boys" are from 2 separate tables. I know how to pull the results from the database, but is there a generic way to format it?
Would really appreciate your help
Regards
Adam
MySQl help needed
Moderator: General Moderators
- n00b Saibot
- DevNet Resident
- Posts: 1452
- Joined: Fri Dec 24, 2004 2:59 am
- Location: Lucknow, UP, India
- Contact:
Re: MySQl help needed
have you tried using loops? have you written any code for it till yet? can you show us something?
Re: MySQl help needed
no im just looking for a generic solution, all ive done is used standard php and MySQL statement to get each product from the database.
Re: MySQl help needed
Generic solutions aren't very good in my opinion. They're not efficient, and if you didn't write it, you're pretty much screwed if you want to modify/fix it in the future. I'd look at writing your own solution. In the grand scheme of things this isn't very complex, so it shouldn't take too long.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Re: MySQl help needed
yeh but thats the point, i dont have a clue how to get started/ approach this!