Posted by Marcelo on Sabadini
22/01/2009
Plugin PHP code coloring
Hello everybody okay?
This week I was asked how do you put the color codes on my site. Well, as I said to the visitor who asked:
How do I use WordPress to manage the blog, so I need to install a plugin to accomplish this task. The plugin I use is the Dean's Code Highlighter (http://www.deanlee.cn/wordpress/code_highlighter_plugin_for_wordpress/) . In his page has the explanation of how to install and how to use it.
If you have any questions just post!
But if you do not use WordPress and have color codes in a PHP page will not be sad! PHP has a function that serves only to it!
See the manual: http://br.php.net/highlight_string
Well, I have helped!
Posted by Marcelo on Sabadini
18/01/2009
Zend Studio 5.5 running on Ubuntu 8.10
Personal speech today I'm here to give you a hint. In recent days I have been blessed by universso Linux ... I'm using Ubuntu 8.10. I really liked, although it has not stopped to work with him.
I was riding the desktop to be able to test it ... I installed PHP, Apache, Mysql ... even so good. But when I installed Zend Studio 5.5 was very frustrated! Charged only one window all gray!!! See below:
Posted by Marcelo on Sabadini
17/01/2009
PHP Mini Course - System News (Update User) - Lesson 14
Hello everybody! Today let's do another lesson of our mini-course. To conclude the basic steps with Mysql, missing only know how to update the data in the database.
These basic steps are called CRUD, see this Wiki link for more details: http://pt.wikipedia.org/wiki/CRUD
You have learned that to enter data in the database using the command INSERT ;
You have learned that to select data from the database using the command SELECT ;
You have already learned that to delete data from the database using the command DELETE ;
Missing only the UPDATE.
The UPDATE command is used to update data from the database. Below is the command syntax:
Posted by Marcelo on Sabadini
15/01/2009
PHP Mini Course - News system (Delete user) - Lesson 13
Well folks, our course is walking a bit slow - I admit - but I promise it will not stop. I will make every effort to finalize it. I have received several e-mails praising the content and asking for more posts. I am very happy to see that the content of my blog is being helpful.
Today, we'll learn how to delete a record from the database. In the last lesson we saw how to insert data (INSERT) in the bank and how to select (SELECT) to display them.
Below is how the SQL code to perform this task:
- DELETE FROM table_name
But almost ALWAYS will be deleted one (s) record (s) specific (s) of the database. This is where we create the ID field in the table, do you remember? It serves to create a whole number and is always incremented, ie, never have two rows with the same ID. This ID is used to specify "who" will be deleted. So how would one see below SQL code completion:


