Quote:
Originally Posted by adumpaul
some basic qusetion in php:
1.What is staic and dynamic webpage?
2.what is css?
3.How do you connect database with php code?
4.What is session ?
|
1) static is a page made up purely of html and/or css it does not automatically update its self or allow any form of interaction with a data storage or retrieval system eg: a database
Dynamic is basically everything you see on the internet
2) css = cascading style sheets used for defining a layout and design etc of your website you can read more here
http://www.w3schools.com/css/
3) like this
PHP Code:
define("DB_NAME","mydatabase");
define("SERVER_NAME","serveraddress");
define("USER_NAME","myusername");
define("PASSWORD","mypassword");
$conn = mysql_connect(SERVER_NAME, USER_NAME, PASSWORD) or die("Could not connect: " . mysql_error());
mysql_select_db(DB_NAME, $conn);
4) a session is something you create in in your web page that can store data for you to use. so if you want to store something and use it later you can store it in a session. most commonly used in login systems where people will store a "logged in" variable to identify users who are logged in or not.