MySQl help needed

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
horzaboy
Forum Newbie
Posts: 4
Joined: Mon Apr 13, 2009 1:52 pm

MySQl help needed

Post by horzaboy »

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
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Re: MySQl help needed

Post by n00b Saibot »

have you tried using loops? have you written any code for it till yet? can you show us something?
horzaboy
Forum Newbie
Posts: 4
Joined: Mon Apr 13, 2009 1:52 pm

Re: MySQl help needed

Post by horzaboy »

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.
horzaboy
Forum Newbie
Posts: 4
Joined: Mon Apr 13, 2009 1:52 pm

Re: MySQl help needed

Post by horzaboy »

anyone?
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: MySQl help needed

Post by pickle »

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.
horzaboy
Forum Newbie
Posts: 4
Joined: Mon Apr 13, 2009 1:52 pm

Re: MySQl help needed

Post by horzaboy »

yeh but thats the point, i dont have a clue how to get started/ approach this!
Post Reply