Page 1 of 2

test-question

Posted: Tue Aug 08, 2006 5:16 am
by dotoho
Please somebody,who can help me???.I want to do a page for test-question(chose a,be or c and then there will be display which contain results ).But i don't know how to do beginning(I'm a niewbie in Php heaven).
Thanxxx so much

Posted: Tue Aug 08, 2006 5:26 am
by s.dot
This could be helpful.

Posted: Tue Aug 08, 2006 12:58 pm
by dotoho
@ scottayy : hi , you can show me how step to write function for my test ,Thanxxx u much

Posted: Tue Aug 08, 2006 1:01 pm
by Luke
dotoho wrote:@ scottayy : hi , you can show me how step to write function for my test ,Thanxxx u much
come again?

Posted: Wed Aug 09, 2006 12:15 am
by dotoho
i try to write a page for e-learning English.And there i would to have a form test-question (users have 4 chose ,a,b,c,d,they can choose one of all,and kick submit,this page is result)
Please , i would know how to write code and create database???
Thanxxx

Posted: Wed Aug 09, 2006 12:20 am
by feyd
scottayy linked you to php's own tutorial on forms. As for a database, we can help there too, but we don't know how you want to structure it. We can only guess and give common answers to "I want to make a quiz" type of questions.

Posted: Wed Aug 09, 2006 12:20 am
by RobertGonzalez
You are really going to need to pick up a tutorial or something in which you can learn some small tasks so you can try something. It sounds like you want someone to write your code for you.

Posted: Wed Aug 09, 2006 2:12 am
by dotoho
i'm sorry if i posted not clearly.but thank you very much
now i have with database ,i always get error : "Class 'mysqli' not found in ...bla...bla "
I think I have problem with system (my code are true ) ;somebody,who has same error,plz help me

Posted: Wed Aug 09, 2006 2:14 am
by Luke
that means you don't have mysqli ext

user mysql instead ie: mysql_connect('host', 'user', 'pass') instead of mysqli_connect('host', 'user', 'pass')

OR

Install mysqli extension

You'd be surprised how well DOCUMENTED php is...
http://us2.php.net/manual/en/ref.mysql.php

Posted: Wed Aug 09, 2006 2:19 am
by RobertGonzalez
If you have access to your php.ini file, enable the mysqli extension and use that. Otherwise, you will need to use the mysql_* family of functions. Unless those aren't enabled either. In which case, post back so we can help with that.

Posted: Wed Aug 09, 2006 5:49 am
by Ollie Saunders
i try to write a page for e-learning English.
omg, this guy is teaching English :lol: lol

Posted: Wed Aug 09, 2006 10:07 am
by Luke
be nice :twisted:

Posted: Wed Aug 09, 2006 10:21 am
by Ollie Saunders
The Ninja Space Goat wrote:be nice :twisted:
I deserved that :(
bad ole, bad

Posted: Wed Aug 09, 2006 10:22 am
by JayBird
ole wrote:bad ole, bad
Image

Posted: Wed Aug 09, 2006 10:23 am
by Luke
Pimptastic wrote:
ole wrote:bad ole, bad
Image
that's got to be my favorite smiley