Re: PHP+MySQL=Help(?)
| From: | turtle | Date: | Tue, 30 Oct 2001 19:58:08 +0000 |
| Subject: | Re: PHP+MySQL=Help(?) | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-72918@lists.php.net to get a copy of this message | ||
.
No reading that section of the manual did me no good. I do not understand
other than I cannot store the results as a variable.
Is there any of what I have done that is usable?
A recommendation for a book that covers this would be helpful... the manual
on this area is way to abbreviated for someone who has only used PHP for 2
weeks.
Mike
"Kurt Lieber" <php@kirpatrick.com> wrote in message
news:E15ydj6-0003KZ-00@z8...
> On Tuesday 30 October 2001 10:13 am, turtle wrote:
>
> > <?
> > $link = mysql_connect('localhost')or die ("Could not connect");
> > mysql_select_db('img760')or die ("Could not select database");
> > $query = "select ('imglocation','height','width') from
> > img where
> > imgname=$getimg";
> > $imglocation = 'imglocation';
> > $height = 'height';
> > $width = 'width';
> > ?>
>
> You need to read the manual on the mysql functions.
>
> Specifically, functions like mysql_fetch_array, mysql_fetch_row,
> mysql_result. You're setting $imglocation to a string, not a returned
result
> from mysql. You need to use one of the three functions I mentioned to
retun
> an actual mysql result.
>
> --kurt