Log In · Register

 
ask & answer script problem
Mulder
post Oct 1 2005, 11:46 AM
Post #1


i lost weight with Mulder!
*******

Group: Official Designer
Posts: 4,070
Joined: Jan 2005
Member No: 79,019



so, lisa did not convert my "ask" page to php, so i attempted to do it myself. apparently, that was a bad idea. it works, but it has all these error messages at the top...


ask page

CODE
<?php
session_start();
// enter the absolute path to ask&answer directory
$dir = "";

// ask and answer functions
include_once("{$dir}functions.php");
?>


this seems to be the problem. that i dont have anything in the first $dir = "";


but im not sure what to put there...
 
 
Start new topic
Replies
Mulder
post Oct 1 2005, 12:41 PM
Post #2


i lost weight with Mulder!
*******

Group: Official Designer
Posts: 4,070
Joined: Jan 2005
Member No: 79,019



this is the askme.php file:

CODE
<?php
session_start();
// enter the absolute path to ask&answer directory
$dir = "/home2/asweetap/public_html/wonder/ask/";

// ask and answer functions
include_once("{$dir}functions.php");
?>



<title>ask me anything</title>
<link rel="stylesheet" href="style.css" type="text/css" />

<?include ("http://wonder.foreverbliss.org/header.php"); ?>
<center>
<h1>Ask<b>&</b>Answer</h1>
<?php include("{$dir}ask.php")?>

<?include ("http://wonder.foreverbliss.org/footer.php"); ?>

</body>
</html>


the header.php has the <html>, <head>, and <body> in it. and this isnt how it originially was..but i think at some point i deleted a whole bucnh of stuff.
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: