May 30th, 2010 | Mootools
This tutorial will show how to animate a content when a delete link is clicked. The script is based on wordpress comment deletion.
Create first a html file and put the following code inside the body.
Read more…
May 29th, 2010 | Mootools
In this tutorial i’ll show how to create a simple shoutbox mootools script that is based from other existing shoutbox on the net.
Features of simple mootools shoutbox:
- Posting of messages
- Refreshes the page periodically for new posts to appear
- Loads previous messages
- Uses mysql as data storage
Read more…
February 9th, 2010 | Php
It is a scope resolution operator that can be found in Php. Paamayim Nekudotayim in Hebrew means “twice colon” or “double colon”.
February 4th, 2010 | Php
I bought a macbook last december 2009 and transfer my files from my windows laptop. After the the transfer, the first thing I did is to browse the projects that I’ve done. While browsing, I came across a page where in there is a file upload facility. Then I started to upload a file. While uploading, it suddenly popped an error. Then I checked the folder I used to put the file uploads and found out the file is not there. What could be the solution? It’s the upload_tmp_dir found in the php.ini. Just make sure that the folder path where you put the uploaded file is specified.
February 4th, 2010 | Php 1 Comment »
Whats is the difference between mysql_num_rows() and mysql_affected_rows()? mysql_num_rows() is used together with select statements while the mysql_affected_rows() is used with update, delete and insert statements.
An example of mysql_affected_rows().
$result = mysql_query( "INSERT INTO mysqltable
VALUES( NULL, '$value' )" );
$rows = mysql_affected_rows();
// returns 1
Read more…