Skip to main content
Participating Frequently
February 28, 2010
Question

How can I create a log for the dice roll generator on my website?

  • February 28, 2010
  • 2 replies
  • 703 views

Here is my website: http://gator789.hostgator.com/~stillman/index.html

I want to create a log for each time the roll button is clicked to generate a random image of a six-sided die on my website. I was thinking maybe a MySQL database with PHP would get me what I want? I have no idea how I would start setting this up though. I don't want to sound to pushy here, but I would also like to have a form setup above the roll button for name details, etc. How would I go about doing this?

This topic has been closed for replies.

2 replies

DBXPXAuthor
Participating Frequently
February 28, 2010

I know a bit about PHP and MySQL. I'd need someone to help me walk me through what I'd have to do though.

DBXPXAuthor
Participating Frequently
February 28, 2010

Can you tell me what I need to do?


Participating Frequently
March 1, 2010

Bregent, I have no idea how I would do that.

Isn't there any tutorials for creating MySQL logs or something?


>Isn't there any tutorials for creating MySQL logs or something?

MySQL logs are files that are used to keep track of server activity. That's not what you want. You need to insert rows into a database. As I said, use the insert record server behavior. If you are not familiar with this then start by reading the DW help and tutorials on this behavior.

DBXPXAuthor
Participating Frequently
February 28, 2010

Anyone? I check this topic hourly, and I hope someone will be able to help me soon.

Participating Frequently
February 28, 2010

Yes, you could use a database and server side scripting language. Are you familiar with MySQL and PHP?