Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

session variable

Explorer ,
Sep 16, 2008 Sep 16, 2008
Hey there i am trying to get a recordset to return based on the ID of another table and recordset
that is

$_SESSION[gardenpiclist] = '<?php echo $row_selectedgardenpic['siteid']; ?>';

then

$query_gardenpiclist = "SELECT * FROM siteimage WHERE siteimage.siteid = "$_SESSION[gardenpiclist]"";

and getting this error

Parse error: syntax error, unexpected T_STRING in /home/backyard/public_html/My Canvas/individualgardenimagedisplay.php on line 315

or i am better off trying to use a join query?
any help?
thanks
TOPICS
Server side applications
353
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 16, 2008 Sep 16, 2008
$_SESSION['gardenpiclist'] = '<?php echo $row_selectedgardenpic['siteid'];
?>';

$query_gardenpiclist = "SELECT * FROM siteimage WHERE siteimage.siteid =
" . $_SESSION['gardenpiclist'];

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"Prellyan Luxtintner" <webforumsuser@macromedia.com> wrote in message
news:gaolej$q3d$1@forums.macromedia.com...
> Hey there i am trying to get a recordset to return based on the ID of
> another
> table and recordset
> that is
>
> $_SESSION[gardenpiclist] = '<?php echo $row_selectedgardenpic['siteid'];
> ?>';
>
> then
>
> $query_gardenpiclist = "SELECT * FROM siteimage WHERE siteimage.siteid =
> "$_SESSION[gardenpiclist]"";
>
> and getting this error
>
> Parse error: syntax error, unexpected T_STRING in
> /home/backyard/public_html/My Canvas/individualgardenimagedisplay.php on
> line
> 315
>
> or i am better off trying to use a join query?
> any help?
> thanks
>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 18, 2008 Sep 18, 2008
Murray,

Thanks for that but am still getting


Parse error: syntax error, unexpected T_STRING in /home/backyard/public_html/My Canvas/individualgardenimagedisplay.php on line 309

How do I insert the code and where? I can email the page to you if that is easier?

Thanks
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 23, 2008 Sep 23, 2008
LATEST
Very helpfull thanks!

Had almost the same problem.













http://www.meerbezoekerskrijgen.nl webdirectory
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines