Posts

Showing posts from September, 2009

Content Management System ( CMS ) using PHP and MySQL

A Content Management System ( CMS ) is used to add, edit, and delete content on a website. For a small website, such as this, adding and deleting a page manually is fairly simple. But for a large website with lots of pages like a news website adding a page manually without a content management system can be a headache. A CMS is meant to ease the process of adding and modifying new content to a webpage. The pages content are stored in database, not in the file server. This tutorial will present an example of a simple content management system. You will be able to add, edit and delete articles using HTML forms. For the database table we'll call it the news table. It consist of three columns : id : The article's id title : The title of an article content : The article itself Now that we have the script to add articles let's create another script to view those articles. The script is list the title of articles available in database as clickable lin

TEMPLATES in C++

TEMPLATES Templates are one of the features added in C++ recently. It is a new concept which enable is to define generic classes and functions and thus provides supports for generic programming and provides flexible Generic programming is an approach where generic types are used as parameters in algorithms so that they work for variety of suitable data-types and data structure. A template can be used to create a family of classes or functions. For e.g.: a class template for an array class would enable us to create array of various data-types such ass int array and float array etc. A template can be considered as a kind of macro when ana object of a specific type is defined for actual use, the template definition for that class is substituted with the required data type. Since a template is defined with a parameter that would be replaced by specific data type at the time of actual use of class or function, the templates are sometime also called vparameterized classes or

What do you mean by virtual destructor?

What do you mean by virtual destructor? Just like ordinary virtual functions destructors can also be declared as virtual, whereas constructor cannot be Virtual. When a derived object pointed is deleted, destructors of all its base classes as well as destructor of derived classes are involved if we declare base class pointer as virtual. But if the destructor in base class is non-virtual then only the destructor of the base class is invoked when the base class pointer pointing to the derived class object is deleted. //Code of virtual destructor #include<iostream.h> #include<string.h> class parent { protected: char*name; public: parent (char*x) { name=new char[strlen(x)+1]; strcpy(name x); } virtual void show() {

Define JavaScript? List advantages and disadvantages between java and JavaScript?

Define JavaScript? List advantages and disadvantages between java and JavaScript? JavaScript is a compact, object-based scripting language for developing client Internet applications. It was designed to add interactivity to HTML pages. JavaScript is a scripting language - a scripting language is a lightweight programming language. A JavaScript is usually embedded directly in HTML pages. JavaScript is an interpreted language (means that scripts execute without preliminary compilation).Everyone can use JavaScript without purchasing a license. All major browsers, like Netscape and Internet Explorer, support JavaScript. JavaScript was developed by Netscape as Live Script - changed to JavaScript when endorsed by Sun 1993, version 1.0 released with Netscape 2.0. JavaScript is a powerful scripting language that is also capable of performing extensive form data collecting and form processing functions. For instance, the following is an example of a complete script JavaScript tag: Advantages of
What do you understand by CSS? Write the advantages of CSS? C ascading Style Sheets , fondly referred to as CSS, is a simple design language intended to simplify the process of making web pages presentable. Cascading Style Sheets ( CSS ) is a style sheet language used to describe the presentation semantics (that is, the look and formatting) of a document written in a markup language. Its most common application is to style web pages written in HTML and XHTML, but the language can be applied to any kind of XML document, including SVG and XUL. Advantages of CSS: Flexibility- By combining CSS with the functionality of a Content Management System, a considerable amount of flexibility can be programmed into content submission forms. This allows a contributor, who may not be familiar or able to understand or edit CSS or HTML code to select the layout of an article or other page they are submitting on-the-fly, in the same form. Page reformatting- With a simple change of one line, a

happy dashain jokes

Changa chet, ramailo bhet, nidar ma tika, kan ma jamara, khasi ko rate, masu ko plate, Juwa ko khel,hunacha shabai ko mel lakhou ko mal,chiurako thal.. 64 saal, Dashain babbal “Happy Dashain 2066”

गाउँबाट भर्खरै शहर आएका एउटा केटा पसलमा गएछ:

Dashain Special jokes and fun in Nepali गाउँबाट भर्खरै शहर आएका एउटा केटा पसलमा गएछ: केटा: साहुजी, यहाँ के-के पाइन्छ ? साहुजी: यहाँ कोक, फेन्टा, पेप्सी... सबै पाइन्छ । केटा: त्यसोभए मलाई कोक र पेप्सी गरेर एक पाथी राख्दिनुस न ।