Jump to content


Photo

Something Simple - But i am newb


  • Please log in to reply
7 replies to this topic

#1 nicholasdion

nicholasdion
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 28 October 2006 - 07:42 PM

Hey, i have a guestbook uploaded to my webserver. I want to include and display my guestbook.php into my html document. I know this has to be simple but i just dont know how to do this. Someone please help me out. Ive tried a few things but it doesnt seem to work.

#2 Barand

Barand
  • Moderators
  • Sen . ( ile || sei )
  • 18,021 posts

Posted 28 October 2006 - 07:56 PM

At least give us some clues.

For a start, how is your guestbook data stored?

What have you tried?
If you are still using mysql_ functions, STOP! Use mysqli_ or PDO. The longer you leave it the more you will have to rewrite.

Donations gratefully received






moon.png

|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts

#3 nicholasdion

nicholasdion
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 28 October 2006 - 08:05 PM

this is a the guest book http://www.dublevisi...b/guestbook.php
i want it to be displayed in an html document so it is part of the layout i have on my site.

#4 Skatecrazy1

Skatecrazy1
  • Members
  • PipPipPip
  • Advanced Member
  • 126 posts
  • LocationSouthern California

Posted 28 October 2006 - 08:07 PM

<?php
include('guestbook.php');
?>
put that wherever you want the guestbook 2 go in your layout
fuck it or fight it

#5 Barand

Barand
  • Moderators
  • Sen . ( ile || sei )
  • 18,021 posts

Posted 28 October 2006 - 08:20 PM

You will have to change the html doc name so its extension is ".php" and not ".html" for the above code to be processed.
If you are still using mysql_ functions, STOP! Use mysqli_ or PDO. The longer you leave it the more you will have to rewrite.

Donations gratefully received






moon.png

|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts

#6 Skatecrazy1

Skatecrazy1
  • Members
  • PipPipPip
  • Advanced Member
  • 126 posts
  • LocationSouthern California

Posted 28 October 2006 - 09:05 PM

oh yeah, that too (oops)
fuck it or fight it

#7 nicholasdion

nicholasdion
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 29 October 2006 - 02:10 AM

hmmm i tired this and it didn't seem to work. Can someone please help me out!!!

#8 Skatecrazy1

Skatecrazy1
  • Members
  • PipPipPip
  • Advanced Member
  • 126 posts
  • LocationSouthern California

Posted 31 October 2006 - 03:33 AM

no, seriously.  that's THE way to do it.  post your code so we can see what went wrong.
fuck it or fight it




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users