 | |  | | | Photopost Pro How Do I...? Wondering how to do things in PhotoPost? |
December 18th, 2005, 12:36 PM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Aug 2003
Posts: 251
| inc_features.php help
Can i use inc_featueres.php to pull up recent photos on a regular .php page ?
|
| |
December 18th, 2005, 05:17 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,666
|
You would include it much the same way as vb
include the file and print the contents by echoing this
echo "$photopostfeature";
where you want it to display
|
| |
December 18th, 2005, 07:39 PM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Aug 2003
Posts: 251
|
i am getting errors
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/xxx/public_html/gallery/inc_features.php on line 54
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/xxx/public_html/gallery/inc_features.php on line 119
i already checked the... photopost prefix and its set to pp_
|
| |
December 18th, 2005, 09:16 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,666
|
Right but that would mean whatever page your running this on is not in the same database as photopost I assume here,
So just like the instructions for vbulletin state when using with vbulletin in a separate database you would need to uncomment and fill out the proper variables in the $link and mysql_select_db lines for it to work.
|
| |
December 18th, 2005, 11:06 PM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Aug 2003
Posts: 251
|
ive uncommented both lines Quote:
$link = mysql_connect ("localhost", "$dbuserid", "$dbuserpassword") or die('I cannot connect to the database.');
mysql_select_db ("pp_database")or die("Could not select photopost database");
| do i need to set this to something ?
pp_database
i have photopost and the vb in the same database with pp_ as the prefix for photopost
|
| |
December 18th, 2005, 11:09 PM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,666
|
yes you need to fill in database names and on the link line host username and password to the photopost database
|
| |
December 19th, 2005, 12:42 AM
|
#7 (permalink)
| | Member Verified Customer
Join Date: Aug 2003
Posts: 251
|
what do i put here ?
pp_database ?
|
| |
December 19th, 2005, 09:01 AM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,666
|
Read post 6
|
| |
December 19th, 2005, 11:04 AM
|
#9 (permalink)
| | Member Verified Customer
Join Date: Aug 2003
Posts: 251
|
i have modified this info for my settings
$link = mysql_connect ("localhost", "$dbuserid", "$dbuserpassword") or die('I cannot connect to the database.');
and im getting this
Could not select photopost database
|
| |
December 19th, 2005, 11:27 AM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,666
|
If you modified that line with the correct database info and the mysql_select_db to input your database name then it will connect.
The error your posting says something is not set right cause it can not establish a connection
|
| |
December 19th, 2005, 11:32 AM
|
#11 (permalink)
| | Member Verified Customer
Join Date: Aug 2003
Posts: 251
|
i did not modify this line
mysql_select_db ("pp_database")or die("Could not select photopost database");
i asked you what info do i put in for pp_database
in post #7 and you referenced me to inc_features.php help
which does not tell me to change pp_database
|
| |
December 19th, 2005, 11:57 AM
|
#12 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,666
|
In post 5 you asked and in post 6 I responded accordingly inc_features.php help |
| |
December 19th, 2005, 12:08 PM
|
#13 (permalink)
| | Member Verified Customer
Join Date: Aug 2003
Posts: 251
| Quote:
do i need to set this to something ? pp_database
i have photopost and the vb in the same database with pp_ as the prefix for photopost | i already set db name and password which was provided by your instructions.
I am still loss as far as what variable i put in for pp_database
post 6-12 or whatever number it is does not answer what this setting is it only tells me to setup dbname and password which i inputted already.
Last edited by s2kinteg916; December 19th, 2005 at 12:11 PM.
|
| |
December 19th, 2005, 12:23 PM
|
#14 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,666
| inc_features.php help
The first thing I stated is to fill in your database name |
| |
December 19th, 2005, 12:27 PM
|
#15 (permalink)
| | Member Verified Customer
Join Date: Aug 2003
Posts: 251
|
so i change pp_database to the same database as where vbulleitn and photopost are installed in ?
|
| |
December 19th, 2005, 12:41 PM
|
#16 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,666
|
You change the first select to your photopost database and the one at the bottom to your vbulletin database
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 09:42 AM. | |