Re: Tree Structure
| From: | Burhan Khalid | Date: | Wed, 09 Apr 2003 10:55:44 +0000 |
| Subject: | Re: Tree Structure | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-143040@lists.php.net to get a copy of this message | ||
On Wed, 2003-04-09 at 04:21, Shantenese Williams wrote:
[ snip ]
> $stmt=ociparse($conn,"select NODE_ID,THEME from NODE where
> USER_ID='$user' and PARENT_ID='$parent'");
> $exec=ociexecute($stmt);
> $rows=ocifetchstatement($stmt,$maincat);
> for($i=0; $i<$rows; $i++){
> while($column=each($maincat)){
> $id=$column['NODE_ID'];
> $name=$column['THEME'];
> print '<a href="clickedon.php?location=
> '$id[$i]'>$name[$i]</a>';
> }
> }
I'm not too sure about this, but try $id rather than $id[$i]
--
Burhan Khalid
phplist[at]meidomus[dot]com
Please add a reply-to: header
in your messages that points
to the mailing list address
so that all mail is properly
archived and viewed.