List:General Discussion« Previous MessageNext Message »
From:Dotan Cohen Date:October 21 2005 4:34am
Subject:left not working
View as plain text  
Why would this work:
SELECT question, short, longa, technical FROM -snip- WHERE filename='$filename'

But this not:
SELECT question, short, left(longa,40), technical FROM -snip- WHERE

The line that looks like this:
$long =mysql_result($result, 0, "longa");

Is throwing this error:
Warning: mysql_result(): longa not found in MySQL result index 4 in
*** on line 13

What is wrong with m syntax?

left not workingDotan Cohen21 Oct
  • Re: left not workingJasper Bryant-Greene21 Oct