Jump to content

php quiz


jalaladdin

Recommended Posts

Look at the tutorials for processing forms and working with a database, those are the parts you'll use most.
There is no "script". He is suggesting you do a bit of reading and researching into the actual process of making it for yourself.
Link to comment
Share on other sites

have you read or tried any of the tutorials on this site? You couldn't find any examples on those page?

Link to comment
Share on other sites

hi every bodyi creating database but i can't write a php code for quiz page <?php//These 4 lines setup the db.mysql_connect("localhost","root","");mysql_select_db("quiz");mysql_query("insert into questions(q,op1,op2,op3,op4,cop) values('YoungCoders is at:','www.y-coders.com','www.yc-forums.com','www.youngcoders.com','www.yc.com',3)") or die(mysql_error());mysql_query("insert into questions(q,op1,op2,op3,op4,cop) values('Where is the YoungCoders wiki','www.yc-wiki.com','www.youngcoders.com/wiki','www.ycwiki.com','www.wiki.youngcoders.com',1)") or die(mysql_error());?>

Link to comment
Share on other sites

If you want to write the script yourself, look at the tutorials I pointed you to. You need to know how to process forms, because the quiz is a form. You also need to know how to get data out of a database. If you don't want to write the script yourself, get one of the scripts listed on Google.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...