try somethin' like this...

$result = mysql_query("SELECT 'islname' FROM $table WHERE id='$id'");

// For one row.. use a zero
$islname = mysql_result($result, 0, "islname");

// Otherwise, loop through

$islname=mysql_result($result, $i, "islname");


At 02:15 AM 3/20/2001 -0000, you wrote:
>Hi,
>
>I'm trying to get a result from the following query:
>
>       $result = mysql_query("SELECT 'islname' FROM $table WHERE id='$id'");
>
>Because "id" is a unique key in my table, I know it has only one value. What
>mysql_funtion should I use to echo the result and with what parameters?
>
>(I have tried many most of the functions but I don't get the correct result,
>and the manual is not helping me :)
>
>Regards,
>Sumarlidi Einar Dadason
>
>SED - Graphic Design
>
>------------------------------------------
>Phone:       (+354) 4615501
>Mobile:      (+354) 8960376
>Fax:         (+354) 4615503
>E-mail:      [EMAIL PROTECTED]
>Homepage:    www.sed.is <- New Homepage!
>------------------------------------------
>
>
>-- 
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>
art-nude.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to