Viewing Question

Category: Web Programming
Rami Costa writes...
2009-12-04 07:41:45
Hi
do you speak spanish ? I'm from Argentina
I need some help creating a guestbook in my webpage www.demochilero.com.ar
I speak very poor english, please excuse me if I expres myself in an inapropiate way

I'm creating my web on frontpage 2000 (I know it's not the best program, but my computer is very old, so I can't use newer programs)
I'm hosting my web on www.000webhost.com, using their free service (it supports PHP and MySql)
I can create data bases and tables with PhpMyAdmin, and I've allready created them
but the problem is that I don't know how to procede now !!
I don't know what scripts should I add to the HTML code of my page in order to program the guestbook.
I understand that I need to create a scrip that: makes the connection with the database, takes the information written by the guest, inserts that information into a table of the connected database, and then show in the page all the registers of the table
Ok, but what's the script that does all that?
do I need to create a PHP file on notepad with the commands, upload that file to my server, and then make reference to that file from the HTML code of my page? how do I do this ? or should I write all the commands directly into the HTML code (using PHP)?
I will thank you a lot if you can help me with this, because I'm getting crazzy!!!

Ramiro Costa
Chris writes...
2009-12-04 07:47:49
Hi ramiro Costa,

Sorry, I don't speak spanish well.

As far as creating your guestbook, you have very close ideas. You need to use PHP, and PHP can actually generate the html to display your page. For instance, you can have the following page:

----
<html>
<body>
<?php
echo "<table>";
for ($=0; $i<25; $i++){
echo "<tr><td>TEest $i</td></tr>";
}
echo "</table>";
echo "DONE!";
?>
</body>
</html>
----

You can use stuff like this to look at information in the database and display it to the user. Try searching google for things like "php and mysql"

Hope I could help,
~Chris