View Full Version : Add most recent images to home page (php file)
October 25th, 2005, 04:17 PM
After finally getting the script to work to show the most recenlty loaded images on my index.shtml file - I have a new program that needs that file to be index.php.
I would still like to show the most recent images there - is there a way?
I figure it needs to be something like:
<?php require("gallery/something.php"); ?>
but I don't know what. I know just enough PHP to be dangerous! LOL so I am not sure what to put there.
October 25th, 2005, 04:35 PM
If the file is just php just do this
October 25th, 2005, 09:41 PM
I am not sure how to use this information.
I placed it in my php file as:
<?php include ('/gallery/inc_features.php');
echo "$photopostfeature"; ?>
I get errors of:
Warning: main(): open_basedir restriction in effect. File(/gallery/inc_features.php) is not within the allowed path(s): (/home/xxxxx/:/usr/local/sqmail/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/xxxxx/public_html/members/indexnew.php on line 163
October 25th, 2005, 09:51 PM
You must use full server path to the file
October 25th, 2005, 10:03 PM
I made that change - but now I get:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/xxxxx/public_html/members/gallery/inc_features.php on line 54
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/xxxxx/public_html/members/gallery/inc_features.php on line 119
October 26th, 2005, 08:13 AM
In your edit integration settings in admin make sure the proper photopost table prefix exists in there
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.