Jump to content

$Row[2] doesn't work


MichelDS

Recommended Posts

$Row[2] doesn't work but if I use $Row["linkcat"] than it works fine.

Is there somewhere to activate in the php.ini file ?

 

 

// I got 9 fields to in the table tbl_link !  $Row[2] should give me a number.

$Verbinding = mysql_connect($db_host, $db_user, $db_passw);
mysql_select_db($db_name);	
$sql = "Select * from tbl_link where userid=1";	
$ResultShow = mysql_query($sql);	

while ($Row = mysql_fetch_assoc($ResultShow)){

    echo $Row[2];

} 

 

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/262027-row2-doesnt-work/
Share on other sites

Oh yes indeed, I overlooked this one ! 

 

I do need to use $Row[index] system for a function I 'm working on so I can use the same function  for different perposes.

 

The example was just a little example.  I need only 1 row back in fact. 

 

So yes mysql_fetch_row works fine, thanks.

Link to comment
https://forums.phpfreaks.com/topic/262027-row2-doesnt-work/#findComment-1342758
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.