ndeniche 402 Posting Virtuoso Featured Poster

plunger

ndeniche 402 Posting Virtuoso Featured Poster

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...

ndeniche 402 Posting Virtuoso Featured Poster

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...

ndeniche 402 Posting Virtuoso Featured Poster

i visited Sorrento, Italy once... i loved it...

ndeniche 402 Posting Virtuoso Featured Poster

^is new here...

hope you enjoy it...

ndeniche 402 Posting Virtuoso Featured Poster

you're missing the '}' in line 146, right before the declaration of int English()

ndeniche 402 Posting Virtuoso Featured Poster

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()
{
...
}
ndeniche 402 Posting Virtuoso Featured Poster

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

ndeniche 402 Posting Virtuoso Featured Poster

nope

have you ever been in a fight

ndeniche 402 Posting Virtuoso Featured Poster

that doesn't rhyme... but still, possibilities were running short... lol

pager

ndeniche 402 Posting Virtuoso Featured Poster

8

ndeniche 402 Posting Virtuoso Featured Poster

^is > you

ndeniche 402 Posting Virtuoso Featured Poster

2826

ndeniche 402 Posting Virtuoso Featured Poster

2823

ndeniche 402 Posting Virtuoso Featured Poster

2821

ndeniche 402 Posting Virtuoso Featured Poster

514229

ndeniche 402 Posting Virtuoso Featured Poster

trailer

ndeniche 402 Posting Virtuoso Featured Poster

hey!!! what are you trying to say?

ndeniche 402 Posting Virtuoso Featured Poster

oh... right... and my backyard looks just like vietnam...

ndeniche 402 Posting Virtuoso Featured Poster

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...

ndeniche 402 Posting Virtuoso Featured Poster

yeah... but those are exceptional situations...

ndeniche 402 Posting Virtuoso Featured Poster

Lineage -> line

ndeniche 402 Posting Virtuoso Featured Poster

196418

ndeniche 402 Posting Virtuoso Featured Poster

2817

ndeniche 402 Posting Virtuoso Featured Poster

it stops working right

echo "<b>Name:|<--here-->|</b>|<--or here-->|"
ndeniche 402 Posting Virtuoso Featured Poster

i'd love to visit grece...

ndeniche 402 Posting Virtuoso Featured Poster

75025

ndeniche 402 Posting Virtuoso Featured Poster

2815

ndeniche 402 Posting Virtuoso Featured Poster

real -> royal

ndeniche 402 Posting Virtuoso Featured Poster

erm... you repeated the word... it's exactly the same as the one before mine...

ndeniche 402 Posting Virtuoso Featured Poster

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?"

ndeniche 402 Posting Virtuoso Featured Poster

then he didn't answer my question correctly...

ndeniche 402 Posting Virtuoso Featured Poster

2812

ndeniche 402 Posting Virtuoso Featured Poster

28657

ndeniche 402 Posting Virtuoso Featured Poster

anything at all? faith in your team (whichever sport you like), faith your gf is not cheating... no faith at all?

ndeniche 402 Posting Virtuoso Featured Poster

output:

View my GuestBook!!

Name: {$r}
\nLocation: {$r}
\nEmail: {$r}
\nURL: {$r}
\nComments: {$r}
\n"; } ?>
Sign my GuestBook

ndeniche 402 Posting Virtuoso Featured Poster

2810

ndeniche 402 Posting Virtuoso Featured Poster

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...

ndeniche 402 Posting Virtuoso Featured Poster

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...

ndeniche 402 Posting Virtuoso Featured Poster

did you try it? i mean, the whole 'combo'?

ndeniche 402 Posting Virtuoso Featured Poster

so, sturm... you haven't ever had faith in anything?

ndeniche 402 Posting Virtuoso Featured Poster

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...

ndeniche 402 Posting Virtuoso Featured Poster

Josh... do you know what faith is?

ndeniche 402 Posting Virtuoso Featured Poster

10946

ndeniche 402 Posting Virtuoso Featured Poster

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 …
ndeniche 402 Posting Virtuoso Featured Poster

2808

ndeniche 402 Posting Virtuoso Featured Poster

4181

ndeniche 402 Posting Virtuoso Featured Poster

2805

ndeniche 402 Posting Virtuoso Featured Poster

And you're a guy?

yeah... i thought you were a girl too... heh

ndeniche 402 Posting Virtuoso Featured Poster

1597