help me to do this code

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
saad
Forum Newbie
Posts: 2
Joined: Fri Aug 19, 2005 5:07 pm

help me to do this code

Post by saad »

hi
i think alot of about phpcode do show rows of one column from mysql and rows must be link when click on it show the opposite row from next column from same table under the link which click on it before.
the last of my try is show rows of column without be link .

the code do that is

/* Connecting, selecting database */
$link = mysql_connect('localhost', 'root', '')
or die('Could not connect : ' . mysql_error($link));

mysql_select_db('email', $link)
or die('Could not select database');

/* Issue SQL query */
$query = 'select url from email';
$result = mysql_query($query, $link) or die('Query failed : ' . mysql_error($link));
[/b]
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

Hmm, I really couldn't understand what you're trying to ask =/

But it sounds like you're wanting to loop to show more rows?

Code: Select all

while($array = mysql_fetch_array($result))
{
  // your rows are now here
  echo $array[0];
  echo $array[1];
  echo $array['field'];
  echo $array['field2'];
}
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

yar needs to be postin' code like scrotaye does, yar.. Reading the first link in my signature, you should, matey.
boniggy
Forum Newbie
Posts: 3
Joined: Thu Sep 15, 2005 7:14 pm
Location: Mesa, AZ

Post by boniggy »

feyd wrote:you should, matey.
shouldnt it be "ye" should, matey? :lol:
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

boniggy wrote:shouldnt it be "ye" should, matey? :lol:
aye, me's a poor pi-rate...

yarrr
Post Reply