Jump to content

PHP I have no idea?


werushka

Recommended Posts

I have this teacher and he is giving me realllllllyyyy hard time ??? ??? ???

 

I don't even know if it is possible to do that..

 

Here it goes I have index.php page and i have a database x securely connected to the index.php.

 

The thing is I have to enter 2 numbers to 2 different database field (exmaple 1 in one fields and 8 to the other field) when the visitor enters to the index.php a number between 1 to 8 should be generated automatically and be posted on the field. in index.php. And after the user lets say sees number 6 and press submit it is entered to the database in another field.

 

I really have no idea how to do this it supposed to be 101 class.

 

anyway any help would really be appreciated.

 

thanks a lot in advance.

Link to comment
https://forums.phpfreaks.com/topic/44427-php-i-have-no-idea/
Share on other sites

INSERT INTO table_name (column1, column2,...)

VALUES (value1, value2,....)

 

yes that is no problem but when the user visits the index.php how does the php code automatically generates a number between column1 and column2 and posts it to the ındex.php page on a table so after he or she submits it is entered to the x fields in database

Link to comment
https://forums.phpfreaks.com/topic/44427-php-i-have-no-idea/#findComment-215752
Share on other sites

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.