Skip to main content

Posts

iPhone Project Version Controlling System - SVN

iVersion is an iPhone SVN client which allows developers to edit and manage their code away form their desktop. More information can be found at  http://www.benreeves.co.uk . Here are the Promo code: WWX3A3WWY7LX, ELTKP7HNXE7L, 7PP4NK969RJ7, A43LWXK6Y4R4, LT4TL6ATTFRM, F9WLLK4R67PP, EKTN36FYWWLX, 4MPYA3FWPAEA, 6WFTFAM694YY, EKJ79J69YHLY, T6NNNHHTJLEE, L9WXP9YY36YA, R6LH4M34XH7P, K7K9EAMAEX94, Y4PEMKEXLTWX, HTHEWNJHPW49, HY34TN7P9LL3, 4FT339Y6PREX, PE9NPP9PE64X, 7MTLPXTPJA66, ALWM3LLHEPFN, ETF4L94RAFE4, 4K93KNXAH6LN, PW3AW6HHL3MN, WJ9HJL76JHHJ, W9XLA6RETFL3, WY7WM7H94AEA, 3NJLA3FKHRPN
Recent posts

Javascript select / deselect

Javascript code function checkAll() { var field = document.getElementsByName('list[]'); for (i = 0; i field[i].checked = true ; } function uncheckAll() { var field = document.getElementsByName('list[]'); for (i = 0; i field[i].checked = false ; } PHP Code : if ( isset($_POST['submit']) ) { //print_r($_POST['list']); $postCount = count($_POST['list']); for ( $i=0; $i //$deleteIds .= $_POST['list'][$i].','; echo $_POST['list'][$i]." "; } }

Javascript Checkbox Select/Deselect All

<script language="JavaScript"><br /><!-- <!-- Begin function CheckAll(chk) { for (i = 0; i < checked =" true" i =" 0;" checked =" false"><br /></script> This is the HTML code to be kept inside the body tag. <form name="myform" action="checkboxes.asp" method="post"> <b>Scripts for Web design and programming</b> <input name="check_list" value="1" type="checkbox">ASP <input name="check_list" value="2" type="checkbox">PHP <input name="check_list" value="3" type="checkbox">JavaScript <input name="check_list" value="4" type="checkbox">HTML <input name="check_list" value="5" type="checkbox">MySQL <input name="Check_All" value="Check All" onclick="CheckAll(docu...

Shopping Cart Help

*******************Important URL for Coding *********************** http://de.tikiwiki.org/xref-BRANCH-1-9/nav.html?lang/ca/language.php.source.html ******************************************************** Creating the Database Let's assume that we're running a website that sells Sony Playstation 2 games. We'll need one table to store the details of each product, and another table to store the contents of each user's shopping cart, so that these details can persist over multiple sessions. Fire up the MySQL console application and create a database named cart. Populate the database with two tables: items and cart, using this code: create database cart; create table items ( itemId int auto_increment not null, itemName varchar(50), itemDesc varchar(250), itemPrice decimal(4,2), primary key(itemId), unique id(itemId) ); create table cart ( cartId int auto_increment not null, cookieId varchar(50), itemId int, qty int, primary key(cartId), unique id(cartId) ); The first table...

PHP Interview Questions & Answers Part 2

How can you analyse file uploading ($_FILES) in php? You can analyse by printing the $_FILES global array using echo " "; print_r($_FILES); How can we reset a cookie in php? Reset a cookie by specifying its name only Example: setcookie('w3answers'); Is it possible to eject a CD-ROM from a WINDOWS based OS using PHP? Yes it is possible.We have to use PHP's COM Methods ANS: //create an instance of Windows Media Player $mp = new COM("WMPlayer.OCX"); //ejects the first cd-rom on the drive list $mp->cdromcollection->item(0)->eject(); ?> How will we disable the registering of session variables through the $_SESSION super global ? Do NOT unset the whole $_SESSION with unset($_SESSION) as this will disable the registering of session variables through the $_SESSION superglobal. ********************************** Answer is from PHP Manual refer session_unset function ********************************** What is the purpose of the open_basedir directive? ...

PHP Interview Questions & Answers

Web Development PHP Difference between echo and print? void echo ( string $arg1 [, string $...] ) Outputs all parameters. echo() is not actually a function (it is a language construct), so you are not required to use parentheses with it. echo() (unlike some other language constructs) does not behave like a function, so it cannot always be used in the context of a function. Additionally, if you want to pass more than one parameter to echo(), the parameters must not be enclosed within parentheses. echo() also has a shortcut syntax, where you can immediately follow the opening tag with an equals sign. This short syntax only works with the short_open_tag configuration setting enabled. I have foo. print --- out put a string print behaves like a function and you can return values and echo can't Prin can be used as a part of more complex operations What is the use of ob_start in php? ob_start — Turn on output buffering According to PHP manual* Description bool ob_start ( [callback $outpu...