23.03.2017 Views

wilamowski-b-m-irwin-j-d-industrial-communication-systems-2011

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Development of Interactive Web Pages 62-11<br />

62.5.3 Creating a Database<br />

To create a database on MySQL, use the CREATE DATABASE statement.<br />

Example:<br />

<br />

62.5.4 Creating a Table<br />

To create a Table, use the CREATE TABLE statement.<br />

Example:<br />

<br />

To see the last error message generated by MySQL server, mysql_error()returns a text describing the last<br />

error message.<br />

Example:<br />

if (mysql_query($tbl) ) {<br />

echo("Employee Table created");<br />

} else {<br />

echo("Error creating employee table:". mysql_error() );<br />

}<br />

© <strong>2011</strong> by Taylor and Francis Group, LLC

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!