View Single Post
  #3 (permalink)  
Old 05-17-2008, 08:57 AM
zeroradius's Avatar   
zeroradius zeroradius is offline
Programming Professional
 
Join Date: Feb 2008
Location: Ohio
Posts: 278
Rep Power: 3
zeroradius will become famous soon enough
Send a message via AIM to zeroradius Send a message via Yahoo to zeroradius
Default Re: Not outputting selected values?

1) Returns half of the sql statement cutting off at $id
2) No result
3) Resource id #2 (googleing this now, so far no usefull results)


Edit:
Hey John thanks for all the help. I got it working. I went and got the code from an old project from back when i used tutorials (now I make the schema and try to do it all myself)

the code looks simular and i still dont see what the problem was hertrs the working code

PHP Code:
$id=$_GET['id'];

$sql="SELECT * FROM $tbl_name WHERE id='$id'";

$result=mysql_query($sql);

$rows=mysql_fetch_array($result);
echo 
$rows['sender']; 
(i had tryed array befor i posted and it was not working)
__________________
"I would love to change the world ...... but they won't give me the sorce code"

Last edited by zeroradius; 05-17-2008 at 09:44 AM.
Reply With Quote