Newbie mysql problem understanding result and id?
- From: el_roachmeister@xxxxxxxxx
- Date: 29 May 2005 13:17:03 -0700
I can't understand why the output from this is not '7'?
$query = "SELECT * FROM contacts";
$result = mysql_query($query);
echo mysql_result ($result, 7, "id");
I also tried adding "ORDER by id" but I still can't get it to echo 7.
Thanks!
.
- Follow-Ups:
- Re: Newbie mysql problem understanding result and id?
- From: Ewoud Dronkert
- Re: Newbie mysql problem understanding result and id?
- From: Philip Olson
- Re: Newbie mysql problem understanding result and id?
- Prev by Date: Re: Dynamic Site Methodology
- Next by Date: Re: NOT EXISTS syntax problem
- Previous by thread: missing array element
- Next by thread: Re: Newbie mysql problem understanding result and id?
- Index(es):