Posts

Showing posts with the label html

Online gallery using div instead of table for page layout

Our online gallery up until previous post, used tables for setting layout for our gallery pages. Tables are primarily designed for tabulating data, not to layout page content. To define layout we should be using div tag. Our home page code shown below is modified to use div. To use div we should first get familiarized with CSS. <html>                <head>                               <title>Gallery| Home</title>                                                            <link rel="stylesheet" type = "text/css" href = ...

Online gallery database

Image
In previous post, message sent by visitor does not get stored in database. To use database we need PHP to get the data, connect to database and save the data there in database. Database that we are going to use is MySQL. Easiest and quickest way too use PHP and MySQL is to install XAMPP. After install your XAMPP copy the gallery folder, into server htdoc folder. Now type localhost/gallery/home.html  URL in your browser. The browser should be able to open the gallery home page. Make sure you have started Apache and MySQL from XAMPP control panel. Before saving the message from visitor into database, we have to create a database first. To do that, go to  phpMyAdmin page and create a database called  gallery. After the database is created, create a table called messageTable . Below is the entity diagram that represent the table. Next, create a PHP file  in the gallery folder. Open notepad  and type the following code. Save the file a...

building online gallery

Image
Purpose of this website is to showcase picture collections.  This website only contain static pages without any functionality. To concentrate on website building environment with readily available applications like notepad and browser. Before dive into coding, always do some sketches to design your website. A simple boxes with page name would be enough to give your overall idea. adding your website content and edit them is always easy to do with paper and pencil. Design comes handy when your project become big and complex.websites which contains static pages like home, about us and contact us. We add another page which is specific for this web site gallery. Once your design is ready, we can dive into coding. Create a folder in desktop and name it gallery , all files belongs to web site will be saved here. First thing we will do is write a template. Your home page will be template for other pages. All web pages consist of code HTML code: <html>   ...

Popular posts from this blog

Setting up data set and display it

Drawing Simple Pie Chart

VB.net connecting to SQL Server