eng.mohamed_elqpany Posted October 18, 2006 Share Posted October 18, 2006 can i connect to access database using html code??? i'm developing my site using frontpage and i need to connect to a database . can i?i just need help can you help me with an example???best regards Link to comment Share on other sites More sharing options...
real_illusions Posted October 18, 2006 Share Posted October 18, 2006 depends what the database is...its usually a MySQL database, in which case you need php.Do you know any server side scripting at all? Whats the database for?And i suggest not using frontpage for web design. Most people here use notepad or dreamweaver. Link to comment Share on other sites More sharing options...
justsomeguy Posted October 18, 2006 Share Posted October 18, 2006 He and/or she mentioned using an Access database, not MySQL.The answer to the original question is no, you need a server-side language to connect to a database. Link to comment Share on other sites More sharing options...
pulpfiction Posted October 18, 2006 Share Posted October 18, 2006 He and/or she ....... Link to comment Share on other sites More sharing options...
eng.mohamed_elqpany Posted October 19, 2006 Author Share Posted October 19, 2006 ok ok how can i write any code with a server side language in fron page i'm using it to develop my siteor how can i treet with data storing , retrive and so on with html? Link to comment Share on other sites More sharing options...
www.mihalism.com Posted October 19, 2006 Share Posted October 19, 2006 <?php$con = mysql_connect("localhost","peter","abc123");if (!$con) { die('Could not connect: ' . mysql_error()); }mysql_select_db("my_db", $con);$result = mysql_query("SELECT * FROM person");while($row = mysql_fetch_array($result)) { echo $row['FirstName'] . " " . $row['LastName']; echo "<br />"; }mysql_close($con);?> Link to comment Share on other sites More sharing options...
boen_robot Posted October 19, 2006 Share Posted October 19, 2006 what @www.mihalism.com just gave is for MySQL databases.For Access in PHP, see the ODBC page. It descibes what you need to do in Access and what in PHP. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now