For basic questions, I found a message source code online and other online closed posts. The database is a remote server. There are ip addresses and ports. Suppose the database name is ABC. How can I insert the Information read by the following code into this database.
Reply to discussion (solution)
';} If ($ email &&! ValidateEmail ($ email) {$ error. = 'enter the verified email address.
';} If (! $ Message | strlen ($ message) <3) {$ error. = "Enter the message.
";} If (! $ Error) {$ messages = "From: $ email
"; $ Messages. =" Email: $ email
"; $ Messages. =" Message: $ message
"; $ Emailto = $ to; $ mail = mail ($ emailto, $ subject, $ messages," from: $ from <$ Reply> \ nReply-: $ Reply \ nContent-type: text/html "); if ($ mail) {echo 'success';} else {echo''. $ Error .'
';}}?>
Www.w3school.com.cn
There is a tutorial on database connection and database insertion.
You have not explained what database it is, so you cannot write code.
Check the pdo of php.
The database is a remote server. This architecture is not suitable, so we should avoid this architecture. Because the connection is unreliable, unstable, and performance is not good.
The mysqlconnect function does not have a server address. User name and password. . You use this connection .. All others are the same
How can I switch from C ++ to PHP?
Okay.-I know. Thank you for your participation. Paste me
How can I switch from C ++ to PHP? Well. Web. Difficult. I just got a web Week ..