Using the $id on the same page

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
musson
Forum Newbie
Posts: 8
Joined: Thu Apr 16, 2009 4:03 pm

Using the $id on the same page

Post by musson »

Hi guys, Simple question for you here:
I was wondering how I can get more than one id on the same page
I am making a 'ecommerce' website and I need to put like 4 item on the same page.

$name=mysql_result($result,$i,"name");
$price=mysql_result($result,$i,"price");
$description=mysql_result($result,$i,"description");
$picture=mysql_result($result,$i,"picture");

This is what I actually have, but how can I work with the $id function.
I already got it setted in mysql database, I just dont know how to use it yet.
Thanks for the help!
musson
Forum Newbie
Posts: 8
Joined: Thu Apr 16, 2009 4:03 pm

Re: Using the $id on the same page

Post by musson »

thanks :) very helpful, Do you think you can help me on this one?
I keep ketting this error Could not connect: Access denied for user 'skaberone'@'cgi0504.int.bizland.net' (using password: YES)
you probably know what it mean :p
thanks a lot again
Post Reply