Make your own PHP adoptables system

Need help with the site/forum/pets? Ask questions and get help from other members here.

Re: Make your own PHP adoptables system

Postby Meggy-Jay » Sun Jan 04, 2009 4:14 am

Ok i am sooo doing this and this might take a bit forever but thanks for letting us know
Click Here For Available 08' VR Auction Pets!
*Send bids with the word bid!
*You do not need to bid on all!
*Auto win any pet with a 08' Christmas Angel dog!
User avatar
Meggy-Jay
 
Posts: 1108
Joined: Thu Dec 18, 2008 8:21 am
My pets
My items
My wishlist
My gallery
My scenes
My dressups
Trade with me

Re: Make your own PHP adoptables system

Postby Rolly-chan » Mon Jan 05, 2009 7:57 pm

So yeah, it still works BUT (sorry Nick ^^") I want to include it all into my homepage. It's no problem with the mainpage but I don't know how to include the page that shows up after that (adopt.php?id=1 for example).

I use php for the index file now and I use arrays and GET and include to include the content and menu.
Here's the site: CLICK

I know that the pictures don't show but that's because this is still a test and I don't need the pictures in this folder too ^^
I just wanna somehow include the page that opens in a new window and I want it to display where the content displays.
So if anyone can help me... ^^

EDIT: Oh yeah, I forgot: I already tried with arrays like this

$section['id1'] = 'adopt.php?id=1';

but of course it didn't work... It just shows these warnings:

    Warning: include(adopt.php?id=1) [function.include]: failed to open stream: No such file or directory in /usr/export/www/vhosts/funnetwork/hosting/airisland/php/test/index.php on line 98

    Warning: include() [function.include]: Failed opening 'adopt.php?id=1' for inclusion (include_path='.:') in /usr/export/www/vhosts/funnetwork/hosting/airisland/php/test/index.php on line 98
User avatar
Rolly-chan
 
Posts: 2790
Joined: Tue Nov 18, 2008 8:09 am
My pets
My items
My wishlist
My gallery
My scenes
My dressups
Trade with me

Re: Make your own PHP adoptables system

Postby Nick » Mon Jan 05, 2009 8:34 pm

That's because there is no file called "adopt.php?id=1" in your folder (obviously). Include() expects the name of a file as its argument. If you are linking people to your index.php?section=adopt or something, you can just link them to index.php?section=adopt&id=1 instead, and use $section['id1'] = 'adopt.php' in your source (adopt.php will still be able to read the "id=1" bit from the page it is loading on).
User avatar
Nick
Admin
 
Posts: 6338
Joined: Thu Jul 03, 2008 2:40 pm
My pets
My items
My wishlist
My gallery
My scenes
My dressups
Trade with me

Re: Make your own PHP adoptables system

Postby Rolly-chan » Mon Jan 05, 2009 8:54 pm

thenickdude wrote:That's because there is no file called "adopt.php?id=1" in your folder (obviously). Include expects the name of a file. If you are linking people to your index.php?section=adopt or something, you can just link them to index.php?section=adopt&id=1 instead, and use $section['id1'] = 'adopt.php' in your source (adopt.php will still be able to read the "id=1" bit from the page it is loading on).


It works perfectly now, thank you! =D
Yeah, it's kinda obvious but I try everything that comes to my mind. Since I'm still a noob in PHP :lol:
User avatar
Rolly-chan
 
Posts: 2790
Joined: Tue Nov 18, 2008 8:09 am
My pets
My items
My wishlist
My gallery
My scenes
My dressups
Trade with me

Re: Make your own PHP adoptables system

Postby ElvisnPuppies » Wed Jan 07, 2009 8:16 pm

Frizzle is gonna make one. :D
ElvisnPuppies
 
Posts: 4
Joined: Wed Jan 07, 2009 6:40 pm
My pets
My items
My wishlist
My gallery
My scenes
My dressups
Trade with me

Re: Make your own PHP adoptables system

Postby ElvisnPuppies » Wed Jan 07, 2009 11:34 pm

OK, I can't install the website on this computer and my computer is stuffed.

Are there any other free PHP hosts I can use?
ElvisnPuppies
 
Posts: 4
Joined: Wed Jan 07, 2009 6:40 pm
My pets
My items
My wishlist
My gallery
My scenes
My dressups
Trade with me

Re: Make your own PHP adoptables system

Postby qhost » Wed Jan 07, 2009 11:42 pm

ElvisnPuppies wrote:OK, I can't install the website on this computer and my computer is stuffed.

Are there any other free PHP hosts I can use?


000webhost is what I use :) It's the one recommended in the tutorial ;)
    -
    she/they | adult | australia | artist | writer
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

    My name is Boo & I am perpetually tired.
    I have real bad anxiety so I take a while to respond
    to msgs sometimes, sorry!
    -
User avatar
qhost
 
Posts: 4107
Joined: Wed Oct 01, 2008 6:36 pm
My pets
My items
My wishlist
My gallery
My scenes
My dressups
Trade with me

Re: Make your own PHP adoptables system

Postby ElvisnPuppies » Thu Jan 08, 2009 12:20 am

Kiara wrote:
ElvisnPuppies wrote:OK, I can't install the website on this computer and my computer is stuffed.

Are there any other free PHP hosts I can use?


000webhost is what I use :) It's the one recommended in the tutorial ;)


I know, but when I try to use the install thingo, it gives me an error. :|
ElvisnPuppies
 
Posts: 4
Joined: Wed Jan 07, 2009 6:40 pm
My pets
My items
My wishlist
My gallery
My scenes
My dressups
Trade with me

Re: Make your own PHP adoptables system

Postby qhost » Thu Jan 08, 2009 12:24 am

ElvisnPuppies wrote:I know, but when I try to use the install thingo, it gives me an error. :|


Install thingo? I don't remember having to install anything...
    -
    she/they | adult | australia | artist | writer
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

    My name is Boo & I am perpetually tired.
    I have real bad anxiety so I take a while to respond
    to msgs sometimes, sorry!
    -
User avatar
qhost
 
Posts: 4107
Joined: Wed Oct 01, 2008 6:36 pm
My pets
My items
My wishlist
My gallery
My scenes
My dressups
Trade with me

Re: Make your own PHP adoptables system

Postby ElvisnPuppies » Thu Jan 08, 2009 12:30 am

Will try again..
ElvisnPuppies
 
Posts: 4
Joined: Wed Jan 07, 2009 6:40 pm
My pets
My items
My wishlist
My gallery
My scenes
My dressups
Trade with me

Who is online

Users browsing this forum: No registered users and 3 guests