PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?php
if ( $title == "" || $by == "" || $email == "" || $body == "" ) {
Print "We are sorry, You did not fill in all fields.";
} Else {
$filename = "db.php";
$fp = fopen( $filename, "w" ) or die("We are sorry, You can not add the post. Please contact TheNetherRealm - Web Design. For more information.");
fwrite( $fp, "
<table width="75%" border="0">
<tr>
<td><font color="#00FF00">$title</font></td>
</tr>
<tr>
<td bgcolor="#00CC00"><p><font color="#000000">$body</font></p></td>
</tr>
<tr>
<td align="right" bgcolor="#00CC00"><font color="#FFFFFF"> </font><font color="#000000">Posted
by</font> <font color="#000000"><a href="$email" class="post">$by</a></font></td>
</tr>
</table>include("db.php");
" );
fclose( $fp );
}
?>
Does anyone know how that include i can make it include the text in it? I know there is a command like ."". or somthing just dont know what it is :'( (I am a newb as you can tell sigh...) && is it possible to put a php.ini in your cgi-bin and it will over-ride the servers and if not how can i?
Thanks - William
although this isn't gonna do anything.. you should probably call the include above all your other code, and then call whatever variables it is out of it that you want where the include is currently.