plunger
i tried the <?php echo "hello" ?>
command, and the output was:
so i guess that confirms my supposition...
though, i reinstalled in succesfully and it still returns the same output... i even tried other codes consisting in echoes and nothing happened...
i think ther might be an error in XAMPP installation, since it doesn't seem to recognize the echo command... i'll try uninstalling and installing it again... (the other two worked well, since there were no "echo-es" in them...
i visited Sorrento, Italy once... i loved it...
^is new here...
hope you enjoy it...
you're missing the '}' in line 146, right before the declaration of int English()
you're missing the OpenFile() function declaration... and you should initialize functions above main, just like Ancient Dragon said, just writing the name of the function and declaring the parameters involved, like this:
void ViewAllInformation();
...
int main()
{
...
return 0;
}
void ViewAllInformation()
{
...
}
well, then... i'll argue because... because i want... that must count as a good argument... i mean... it's my word after all... :D
nope
have you ever been in a fight
that doesn't rhyme... but still, possibilities were running short... lol
pager
^is > you
2826
2823
2821
514229
trailer
hey!!! what are you trying to say?
oh... right... and my backyard looks just like vietnam...
there is a table called 'guestbook', though, you're right... it doesn't seem to be called in view.php since there is just select * from guestbook
unless this 'guestbook' refers to the table... since the db and the table are called the same...
yeah... but those are exceptional situations...
Lineage -> line
196418
2817
it stops working right
echo "<b>Name:|<--here-->|</b>|<--or here-->|"
i'd love to visit grece...
75025
2815
real -> royal
erm... you repeated the word... it's exactly the same as the one before mine...
you don't get it, do you? he didn't answer my question... i didn't ask "Do you beleive in a supreme being?"... i asked "you haven't ever had faith in anything?"
then he didn't answer my question correctly...
2812
28657
anything at all? faith in your team (whichever sport you like), faith your gf is not cheating... no faith at all?
output:
View my GuestBook!!
Name: {$r}
\nLocation: {$r}
\nEmail: {$r}
\nURL: {$r}
\nComments: {$r}
\n"; } ?>
Sign my GuestBook
2810
still nothing... though the problem is @ line 22... after the first echo, since it prints "Name:" correctly, and then the rest of the code kicks in...
true... hehe... i don't think there's a problem with my php setup, since two out of three pages were working just fine...
maybe it's just something unnoticeable... or the example is not well written... i'll try some more and see if it persists...
did you try it? i mean, the whole 'combo'?
so, sturm... you haven't ever had faith in anything?
according to what i know, it shouldn't affect... since it is a single command...
still... tried it, and no response... the same exact results...
Josh... do you know what faith is?
10946
here are all my codes:
dbconnect.php
<?php
mysql_connect("localhost","nobody","ydobon")
or die("<h3>could not connect to MySQL</h3>\n");
mysql_select_db("guestbook")
or die("<h3>could not select database 'guestbook'</h3>\n");
?>
sign.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<BODY>
<h2>Sign my guestbook!</h2>
<form method="post" action="create_entry.php">
<b>Name:</b>
<input type="text" size="40" name="name">
<br>
<b>Location:</b>
<input type="text" size="40" name="location">
<br>
<b>Email:</b>
<input type="text" size="40" name="email">
<br>
<b>Home Page URL:</b>
<input type="text" size="40" name="url">
<br>
<b>Comments:</b>
<textarea name="comments" cols="40" rows="4"
wrap="virtualv"></textarea>
<br>
<input type="submit" name="submit" value="Sign!">
<input type="reset" name="reset" value="Start Over">
</form>
</BODY>
</HTML>
create_entry.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<BODY>
<?php
include("dbconnect.php");
if ($_REQUEST["submit"]=="Sign!")
{
$query="insert into guestbook(name,location,email,url,comments) values ('"
.$_REQUEST["name"]
."', '"
.$_REQUEST["location"]
."', '"
.$_REQUEST["email"]
."', '"
.$_REQUEST["url"]
."', '"
.$_REQUEST["comments"]
."') "
;
mysql_query($query);
?>
<h2>Thanks!!</h2>
<h2><a href="view.php">View my GuestBook!!</a></h2>
<?php
}
else
{
include("sign.php");
}
?>
</BODY>
</HTML>
view.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<BODY>
<?php include("dbconnect.php") ?>
<h2>View my GuestBook!!</h2>
<?php
$result = mysql_query("select * from guestbook")
or die(mysql_error());
while ($row = mysql_fetch_array($result))
{
echo "Name:";
echo $row["name"];
echo "<br>\n";
echo "<b>Location:</b>";
echo $row["location"];
echo "<br>\n";
echo "<b>Email:</b>";
echo $row["email"];
echo "<br>\n";
echo "<b>URL:</b>";
echo $row["url"];
echo "<br>\n";
echo "<b>Comments:</b>";
echo …
2808
4181
2805
And you're a guy?
yeah... i thought you were a girl too... heh
1597