Problem description:
Hello !
My XMLHTTPRequest object, when ready, does a couple of things, as in, the responseText which i receive, is split up, and sent as a parameter to myFunction()
Now, i need to call myFunction() 'n' number of times, with substrings of the response text as parameters.
This Works:
myAjaxObj.onreadystatechange=fun...
Hello everybody!
I've got a problem with Joomla 1.5.+, hope you can help me.
I installed it on a server which is in an internal DMZ and want to access it via an internet domain. The problem is that some references on the site still point to the internal domain. I've read that in the earlier Mamboo-days of Joomla a variable "$mosConfig_...
Hello,
I would like to know how I can make a webpage that will look good in most mobile phones.
For making normal webpages, I use dreamweaver cs3.
I don´t really want to use emulators unless I have too.
Can I not just center everything in the middle, with auto margins on both sides.
When I am looking at the pages that I have made sofar...
Hi!
Im using ajax to call php which gets results from a mysql db.
Reason im using ajax is so that the page wont reload. (RETURN FALSE)
All works fine, but since the browser doesnt reload, there is no "back".
Example: Users enter something to search for, and hits "search button" and ajax returns the search without reloading page, BUT i...
I'm wondering what the best way is of doing this:
$fc['abc'][0] = 1;
$fc['xyz'][0] = 2;
$fc['abc'][1] = 3;
$fc['xyz'][1] = 4;
$fc2 = something($fc);
print $fc2[0]['abc']; // 1
In other words, the something function will swap the two dimensions round.
...
Function
echo date( "m/d/Y h:i a", "10/22/2009 12:32 am" );
Output
12/31/1969 07:00 pm
Why is my output not giving me the correct date, what am I doing wrong?
...
I have table, which I am inserting records to another table.
What is the best way to mark record inserted, so it will not be attemted to being inserted again?
...
I have a PHP file and it holds a value in this session variable: $_SESSION['image_value'].
I want this session value in a JavaScript function. Actually, I want to match a string in my JavaScript function with this session value.
Anyway I can do this?
...
I have a very simple search form, that takes in a term from GET_, and then incorporates this into an SQL query. I am trying to use this string from GET in a paramterized query, like so:
$searchString = '%' . $searchString . '%';
$recordsQuery = "SELECT username, firstname, lastname FROM $table WHERE lastname = $searchString" . $max;
...
Hi!
If I have understood Axis2 correct i can construct a WebService and then access it with any SOAP compatible client.
I have a java class with a couple of methods that I have written in Eclipse, and then automatically constructed a service with the Axis2 plugin from WTP.
This is the methods of my class.
public int test(int i){
...
I have several forms inside DIVS on my page.
I have one form which contains a text field and is always visible, and this is where the user hits 'enter' key and submits...
I want to get values selected in the other forms on the page, and submit them all together, not one by one, so that my PHP code can use "ALL VALUES" and search a mysq...
I'm working on a search function, it was working fine four days ago, now it's returning this error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND state = 'AZ '' at line 1
what is the proper syntax for this line?
if($search_state !== "") {
$qu...
SELECT * FROM tableFoo
LEFT JOIN tableBar ON tableFoo.commonColumn = tableBar.commonColumn
WHERE tableBar.commonColumn IS NULL
Above will select records, I would like to insert
Code below will insert id to third table.
INSERT IGNORE INTO jos_mt_links (link_id,link_name,alias)
VALUES(NULL,'tex2','hello'); # generate ID by inser...
Hi everyone.
My site logs clicks to a database whenever a user views an article. This table is automatically cleared out every 3 days. We use the data to work out the most viewed pages over that 3 day period.
I'd also like to use this data for marketing purposes, eg, to determine which users like which sections of the site.
I've writt...
I have a search class that keeps prepared PDO statements around for re-execution with new parameters each time the search is run. A conflict occurs if a second search is run while a previous search still has a result set open and is returning results. What I'd like to do in this case is simply create and execute a new statement rather th...
I would like to be able to convert audio files to MP3 to the users browser on the fly. The software I am using is: Apache, PHP & FFMPEG on an ubuntu system. Here is the code I have so far:
<?php
header("Content-Transfer-Encoding: binary");
header("Content-Type: audio/mpeg, audio/x-mpeg, audio/x-mpeg-3, audio/mpeg3");
pas...
Hi, I would like use PHP PDO with SqlAnywhere, but don't have the driver on php site. Can I add a lib of sqlanywhere to use with PDO? ODBC is the last option.
...
I have built a PHP calendar system and have pretty much everything done but not sure how to deal with a UI issue involving how the events that stretched out over a couple of days. I want to be able to stretch an event that stretches over couple of days in a div that spans those days in the calendar. Basically I would like to know how to ...
I need to check hundreds of URLs and use stream_socket_client to create sockets for each one and then stream_select to retrieve them and assess their response times etc...
However, after 237 created sockets I fail to create anymore sockets there is no error code or message indicating that the problem occur before "connect". I've tried r...
I've got a Web site with a bunch of docs and pdfs in /foo/bar/
Directory browsing is turned off, so you have to know the specific URL/URI combo to get the document. I'd like to find a way of redirecting ALL requests to /foo/bar/ to a php page that checks their auth cookie is set and, if so, gets their file. Of course, I also need the ...