使用HTML 5和PHP进行MySql访问[关闭]

This is a noob question , but if I needed to make a basic form type page where the user can submit data( note for my previous questions, that was about very specific data sent from a mobile app) . For this would I run HTML5 code inside of a php page ? , any guides on getting started would be great .

More correctly stated, you would serve an HTML page using PHP, and process the resulting form submission with PHP. It could be HTML5, or XHTML1.1 etc.

A good starting point is PHP for the absolute beginner from the Zend Developer Zone. This tutorial goes on to discuss database access and form processing.

You can start from reading some tutorials, ex link
Google knows a lot of them google

It seems you dont know how PHP+HTML works.

PHP is a Pre HTML Processor.

Using it on a Mobile or not will not make difference. Note that HTML 5 is a "model" of HTML. The php just pre process the data and transform it into HTML and output to your browser So you can develop using it.

Like:

<?
echo '<br /> asd asd <p>MESSAGE FROM PHP';
?>

What you need to do is create a form in your html page and submit to a php page.

Like HTML

<form action="process.php" method="post">
  <input type="text" name="username" />
  <input type="submit" value="send" />
</form>

PROCESS.PHP

<?php

   $username=$_POST['username']; //now you have the username in a variable

   mysql_connect('ip', 'username', 'password');
   mysql_select_database("mydatabase");
   mysql_query("insert into users (username) values('".$username."')");
?>

So the php process the form and submit to the database