Online to find a message source. The database is a remote server. There are IP and port assumptions database name is ABC how to insert the information read from the following code into this database.
Reply to discussion (solution)
';} if ($email &&! Validateemail ($email)) {$error. = ' Please enter a validated mailbox
';} if (! $message | | strlen ($MESSAGE) < 3) {$error. = "Please enter your message
";} if (! $error) {$messages = "from: $email
"; $messages. =" Email: $email
"; $messages. =" Message: $message
"; $emailto = $to; $mail = Mail ($emailto, $subject, $messages," from: $from < $Reply >\nreply-to: $Reply \ncontent-type : text/html "); if ($mail) {echo ' Success ';}} else {echo '. $error. ';}}? >
www.w3school.com.cn
There is a tutorial for connecting db, inserting a db.
You didn't say what the database is, so you can't write code.
Look at the PDO in PHP.
The database is a remote server. This architecture is inappropriate and should be avoided. Because the connection is unreliable and unstable, performance is not.
The Mysqlconnect function does not have a server address. User name password. it. You use this connection. The rest are the same.
The great God from C + + to PHP?
Okay--I got it. Thank you for joining us. My knot
The great God from C + + to PHP? Well. Do the web. It's hard. Just do the web one week.