Hi. If you use object for source, this object have to have properties value and label

jq('.project').each(function(i, el) {
            jq(el).data('ui-autocomplete')._renderItem = function(ul, item) {
                return jq( "<li>" )
            .append( "<div class='emp-name'><a style='font-size:18px'>" + item.resources['emp_name'] + "</a><a style='font-size:13px'>" + item.resources['department_name'] + "</a></div><div id='clear'/>" )
            .appendTo( ul );
            };

this code is wrong. The Item is your object which you define in variable shop. You can call propertie

item.emp_name

Hi. I nothing understand from your schems. Can you to write more details, that you will want to do.

You can to use German or RabbitMQ for send SMS to multi streams.

Hi. You can to convert array to JSON and then its will save in databases.

This variable "$testuser" have to be inside quotes.

$sql = "SELECT * FROM accounts WHERE username = '$testuser'";

Can you clarify your question?

Do you want handle mouseover click along a elements to browser?

Why do you for the variable $planbook to assign the variable $i(the row 10)?
The variable $i it is integer, and you access the variable $planbook as an array.

I use NetBeans it is better crossplatform and free solution.
NotPad++, gedit and etc. it is text editor.
For writting quality code you must use proffesional IDE.

The query which above, gets numbers which not booked. If you want get booked numbers change "NOT BETWEEN" on "BETWEEN".

This query select all numbers avaible from $date1 to date2

SELECT distinct r.roomID 
FROM Rooms as r 
INNER JOIN Bookings as b 
ON r.roomID = b.roomID
WHERE ('2013-03-20' NOT BETWEEN dateFrom AND dateTo) 
    AND ('2013-03-21' NOT BETWEEN dateFrom AND dateTo)

Where will execute your code?

You will be able to use function pathinfo(), If want get filename without it extension.
For example:

echo pathinfo("test.jpeg", PATHINFO_FILENAME);// show test

If you have to add row in database, you can use following code

$dsn = 'mysql:dbname=testdb;host=127.0.0.1';
$user = 'dbuser';
$password = 'dbpass';

try {
    $dbh = new PDO($dsn, $user, $password);

    /* Add new row in table FRUIT */
    $count = $dbh->exec("INSERT INTO fruit (id,name) VALUES(1,'banana')");

    /* Show count add rows */
    print("Add $count rows.\n");

} catch (PDOException $e) {
    echo 'Don\'t connect: ' . $e->getMessage();
}

There are many tools testing web sites. For example you can use w3af for testing xss attack, sqlmap for testing sql injection.

You must will implement php script, which be get data and send on mail.
For send mail you may use function mail http://www.php.net/manual/en/function.mail.php or PHPMailer http://phpmailer.worxware.com/index.php?pg=tutorial.

Hi. If you try send data with some domain on to another domain, then this can't do in JavaScript. You must to use JSONP or iframe, for crossdomain requests.

I think what this must not does use only javaScript.
It seems to me, here you must use AJAX and PHP.

If on your site enabled smtp port, this method send will be work.
if no you must use other method of send email.

In 3 line you have error. You wrong get current element.

now

var button = $($(this)).text(); 

replace on

var button = $(this).text();

Maybe you don't have module mod_rewrite, in the apache web server.

In 15 line your code, you assigned attribute "on" the function by name "cal_electic_permit"?
What is this attribute? Maybe, you keep in mind event "onload".

Hi. You can use jQuery plagin http://jqueryui.com/autocomplete/ it supports work with AJAX.

After click by the button you not transition to a new page, and begin download file.

For download files not necessarily to use AJAX.
You can this does without use AJAX.

<a href="download.php?file_id=123456" target="_blank">Download File</a>

download.php

//execute any actions
//get $file_name by file_id

if(file_exists($file_name))
        {
            $ext = pathinfo($file_name, PATHINFO_EXTENSION);
            switch($ext)
            {
              case "pdf": $ctype="application/pdf"; break;
              case "zip": $ctype="application/zip"; break;
              case "doc": $ctype="application/msword"; break;
              case "xls": $ctype="application/vnd.ms-excel"; break;
              case "ppt": $ctype="application/vnd.ms-powerpoint"; break;
              case "mp3": $ctype="audio/mp3"; break;
              case "gif": $ctype="image/gif"; break;
              case "png": $ctype="image/png"; break;  
              case "jpeg":
              case "jpg": $ctype="image/jpg"; break;
              default: $ctype="application/force-download";
            }

            header('Content-Description: File Transfer');
            header('Content-Type: '.$ctype);
            header('Content-Disposition: attachment; filename="'.rawurldecode($file_name).'"');
            header('Content-Transfer-Encoding: binary');
            header('Expires: 0');
            header('Cache-Control: private');
            header('Pragma: private');
            header('Content-Length: '.filesize($file_name));
            readfile($file_name);
        }
        else 
        {
            echo 'File Not FOUND';
        }
OsaMasw commented: I was need for Ajax just for not to relode page, but this code may come in handy someday , thanks +0

After how you executed login, you had in the cookie the variable by name PHPSESSID?

Sorry not noticed you already this did in the file header.php

In the file login.php to the top file you must will cause function session_start()