Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
14 views

Practical:-3 Date:-13/8/2013: Sqlcode

This document provides code to connect a PHP application to a Microsoft Access database using ODBC. The code connects to the database, executes a SQL query to select all records from a table, displays the results in an HTML table with column headings, and then closes the database connection. The aim is to demonstrate making a database connection from PHP to Access using ODBC.

Uploaded by

Himal Patel
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

Practical:-3 Date:-13/8/2013: Sqlcode

This document provides code to connect a PHP application to a Microsoft Access database using ODBC. The code connects to the database, executes a SQL query to select all records from a table, displays the results in an HTML table with column headings, and then closes the database connection. The aim is to demonstrate making a database connection from PHP to Access using ODBC.

Uploaded by

Himal Patel
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Shankersinh Vaghela Bapu Institute of Technology

Practical:-3
Aim: - Make database connection with Microsoft access using ODBC.
SQLCode:<html> <body> <?php $connect = odbc_connect('10it62','',''); $query = "select * from datat"; $result = odbc_exec($connect,$query); echo "<table>"; echo "<th>Fname</th>"; echo "<th>Mobile</th>"; echo "<th>Address</th>"; while(odbc_fetch_row($result)){ $fname=odbc_result($result,"Fname"); $mobile=odbc_result($result,"Mobile"); $add=odbc_result($result,"Address"); echo "<tr><td>$fname</td>"; echo "<td>$mobile</td>"; echo "<td>$add</td></tr>"; } odbc_close($connect); echo "</table>"; ?> </body> </html>

Date:-13/8/2013

Output: -

Distributed Database Application and System

You might also like