test-question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

dotoho
Forum Newbie
Posts: 14
Joined: Tue Aug 08, 2006 5:12 am

test-question

Post 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
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

This could be helpful.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
dotoho
Forum Newbie
Posts: 14
Joined: Tue Aug 08, 2006 5:12 am

Post by dotoho »

@ scottayy : hi , you can show me how step to write function for my test ,Thanxxx u much
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

dotoho wrote:@ scottayy : hi , you can show me how step to write function for my test ,Thanxxx u much
come again?
dotoho
Forum Newbie
Posts: 14
Joined: Tue Aug 08, 2006 5:12 am

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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.
dotoho
Forum Newbie
Posts: 14
Joined: Tue Aug 08, 2006 5:12 am

Post 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
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post 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
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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.
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post by Ollie Saunders »

i try to write a page for e-learning English.
omg, this guy is teaching English :lol: lol
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

be nice :twisted:
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post by Ollie Saunders »

The Ninja Space Goat wrote:be nice :twisted:
I deserved that :(
bad ole, bad
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

ole wrote:bad ole, bad
Image
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

Pimptastic wrote:
ole wrote:bad ole, bad
Image
that's got to be my favorite smiley
Post Reply