I am a total newbie at this so forgive me if my terminology and syntax is wrong!
:-P
A little background: I am creating a private gallery page for a site.
I have my database set up with the users order info and if they sign in and the user id matches the data base I want it to load the users private gallery.
In the gallery column of my database table I have an absolute path leading to that individual gallery.
In DW i created a recordset and query that echo's the correct result (displaying the absolute path on my page) but it does not load/include the gallery file.
SO I have tried to use the script to "include" the dynamic recordset result (echoing the absolute path indicated in the database field)
But am getting an error message saying the directory doesn't exist even though it does....
Warning: include(echo $row_Recordset1["event_gallery"]😉 [function.include]: failed to open stream: No such file or directory in /xx/xx/xxx/xxx/xxxx/bw_gallery2.php on line 90
Warning: include() [function.include]: Failed opening 'echo $row_Recordset1["event_gallery"];' for inclusion (include_path='.:/usr/local/lib/php-5.2.17/lib/php') in //xx/xx/xxx/xxx/xxxx/bw_gallery2.php on line 90
here is a part of the code I have:
mysql_select_db($database_bw_db_conn, $bw_db_conn);
$query_Recordset1 = "SELECT event_gallery FROM orders WHERE order_id =".$_SESSION['MM_Username'];
$Recordset1 = mysql_query($query_Recordset1, $bw_db_conn) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
define('TITLE','Blinks & Winks-Private Gallery');
require('includes/bw_gallery_header.php');//include the header graphic and navigation
//leave the php section to display the html
?>
<div class="back"><a href="<?php echo $logoutAction ?>"><input class="submit" name="logout" type="button" value="Log-Out"></a></div>
<table class="gallery"width="725px">
<tr>
<td>
<h1> Private Photobooth Gallery</h1>
</td>
</tr>
<?php do { ?>
<tr>
<td>[COLOR="Blue"]<?php include('echo $row_Recordset1["event_gallery"];');?>[/COLOR]</td>
</tr>
<?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
</table>
Does anyone have any answers on how to fix this?
Thanks a ton in advance!
:-)
Lisa