Browsing articles in "PHP"
Feb
4
2012

How to populate a dropdown menu from database in CodeIgniter [Workaround]

codeigniter-lg

If you happened to work with the ‘form_validation’ library and dropdown lists, and had to populate the default value from database, I am sure you would have come across this issue too. I’ve been having this issue for the past couple of days and found a workaround to tackle the issue.  Thought this would help you too in your projects.

Feb
13
2011

Drawing a Bar Chart Using PHP

bar-chart-vertical

We can use image drawing property in PHP to draw basic bar charts (simple bar charts / multiple bar charts). Following are the simple steps that need to be followed in order to plot the bar chart for the table given below.

Aug
28
2010

Choose a language whilst browsing : PHP tutorial

Selecting a Language

Ok! This tutorial is strictly targeted towards web developers, who are looking for ways to convey or show his/her web page(s) in more than one language. Here is one smart way of doing it. I’ve made it very easy for you; I’ll give you the source-code and tell you what to do to get it working. Still have a problem? Leave a comment! I’ll help you get through. Steps to follow 1) Create a .php [...]

Jul
10
2010

Basics of a server side scripting language : PHP (part 2)

Learning PHP

Haven’t read part 1 yet? Go to PART 1 else you’re good to continue! In this tutorial we’ll be learning how to echo out an image, much advanced calculations using variables, using the IF statement and using arrays. Ready? Good! Lets start working. Echoing out an image Nothing to worry here. It’s simple; a small change to make from how you would normally write. <?php echo “<img src=’the-location-of-your-image’ width=’100′ length=’100′ />”; ?> Much advanced calculations [...]

Jul
10
2010

Overcome PHP session errors

I think that most of the php beginners will facing a common problem on PHP session getting a warning message like this when using sessions. Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent…… For this warning there are many reasons and few fixes that can be overcome this problem.

Pages:12»