html code
html code
html code
html code
html code
html code
html code
html code
html code
html code First |
html code Last |
html code Email |
html code |
html code
html blank
html code
php comment ## Comment with a hash symbol ##
php code mysql_connect("localhost", "db user", "db pass")
php code or die("DB CONNECT ERROR: " . mysql_error());
php blank
php code mysql_select_db("db name")
php code or die("DB SELECT ERROR: " . mysql_error());
php blank
php code $query = "SELECT fname, lname, email FROM table ORDER BY lname";
php blank
php code $result = mysql_query($query)
php code or die("DB SELECT ERROR: " . mysql_error());
php blank
php code while($row = mysql_fetch_array($result))
php code {
php code $lname = $row['lname'];
php code $fname = $row['fname'];
php code $email = $row['email'];
php blank
php comment // Spaghetti code starts....(slopping html code in)
html code ?>
html blank
html code
php code =$fname?> |
php code =$lname?> |
php code =$email?> |
html code |
html code
html blank
html code
php code } // end while
php comment // Spaghetti code is both a source of praise and complaints
html code ?>
html blank
html code