Considering text-transform is a CSS property, I don't understand how the text in the input field which has text-transform set to uppercase is actually posting uppercase text to the page when the form is submitted. Isn't CSS just supposed to modify the appearance of the page and not the content itself? If I type something in lowercase in ...
I have some tables.
These tables all have one column in common called 'classified_id':
main_table: cars_table:
id (PK) => 4222 id (PK) => 1021
classified_id => 25 classified_id => 25
Now, I want whenever a search is performed, to compare if any of the main_table.classified_id mat...
I've been struggling with low level mail in PHP and I know I should be using a library for this, but that's not an option right now.
When doing mail in PHP, you can manually set additional headers, like From, Cc and Bcc, but you can also set Subject, To and a Body. When you call the function you pass the headers along to the mail() func...
mixed array_search ( mixed $needle , array $haystack [, bool $strict ] )
If the third parameter strict is set to TRUE then the array_search() function will also check the types of the needle in the haystack .
I don't see what it means,maybe an example can help?
...
I was wondering how to get this to run. In my application I have a Category table and Product table. I need to have a pager which combines both Categories and Products for display in one list (first categories then products). Is there a way to get this going ? I tried left joining in the pager's query, but doesn't seem to do the trick.
...
Hi All,
I have this problem of my FullCalendar not showing any events on IE or Mozilla. It works well with Chrome though. I have a JSON source generated by the following php code:
$handle = opendir('./stat_files');
while (false !== ($file = readdir($handle))) {
$filenames[] = $file;
}
unset($filenames[0]);
unset($filenames[1]);...
Heyy guys
I wanted to check if anyone knows of a reliable API that we can use to determine the user's city and country from his IP address.
My search on Google led to http://ipinfodb.com/ip_location_api.php
It seems perfect but my only concern is the reliability of this service.
Does google have anything like this.
If you know any oth...
EDIT::
Maybe I should be asking what the proper way to get a result set from the database is. When you have 5 joins where there is a 1:M relationship, do you go to the database 5 different times for the data??
I asked this question about an hour ago but haven't been able to get an answer that was fitting. I went ahead and wrote some cod...
Hi
Here in Switzerland, people under 26 that have a cell phone contract with Swisscom can send 500 sms per month for free using the website https://xtrazone.sso.bluewin.ch/.
Until a few days ago, this site was structured quite simply, it had a login and an inputbox to enter the sms. That's why i wrote a perl script (http://github.com/g...
Hey Folks,
I am using flir module of drupal to generate png images from text. I am able to generate images of that font (it's true type font). But images are not creating properly so please if any one has knowledge of it. it will be greatly help.
http://iskcon.cignex.com/excerpts
text is e.g "this fever will surely kill me i thought"...
For example, if we try to get to some api but fail, or try to connect to our database but also fail.
...
When failed to access something on the web (api, database), how would I stop executing the rest of the script and log the error in the log file? Well, and so that the visitor wouldn't see the exact cause but rather they would see my custom message (say, 'A bad thing just happened'). What steps do I need to take to arrange things?
...
Hi all,
I have a small "contact form" with jquery validation, php and ajax. My website running on IIS.
The problem is, I am trying to post the form contents using ajax+jquery, but I am getting the response
like "405 Method Not Allowed" (From firebug console).
But its running properly in local server. Pls help me to fix 405 error. Tha...
I have a site where users can log in and check on outstanding support issues they have raised with us, on this site is a page to manage per company contacts. Whilst updating the site i have started using jQuery to load sub pages so that the user doesn't get a page refresh everytime. I've started to run into problems loading my JavaScript...
Hi,
Several times a day I run into a problem where I need to dynamically initialize variables in a multidimensional array to prevent PHP throwing a notice because of an uninitialized variable.
Code fragments like this are very common:
if(!isset($profile[$year][$month][$weekday][$hour])) {
$profile[$year][$month][$weekday][$hour] =...
Would it be fair to say learning Java would make me a better PHP OOP Developer? I've been looking into Java so I can understand OOP better. Should I continue learning Java to better understand OOP or would I be better off sticking with PHP OPP. I've just learnt about interfaces and abstract classes, will I really use these in PHP? Any ad...
Hello,
I have successfully created an app that reads from a bundled .plist file and displays the contents in a UITableView. I would like to move that plist to an external site, as it is updated frequently. even better, I would love to have it generated with PHP. I have got the server side working, but the Objective C is giving me a head...
i have following variables in jquery
var uemail="[email protected],[email protected],[email protected]";
var subj="test message";
var text="<b>This is Email Body Text</b>";
i have one PHP file named "email.php" to send email
<?php
$email =$_GET['email'];
$subject =$_GET['subj'];
$message = $_GET['text'];;
if(mail($ema...
Hello All,
I would like to use regular expression to extract only @patrick @michelle from the following sentence:
@patrick @michelle we having diner @home tonight do you want to join?
Note: @home should not be include in the result because, it is not at beginning of the sentence nor is followed by another @name.
Any solution, tip,...
I have the following array:
$person = array('first_name' => 'Fred', 'last_name' => 'Flintstone');
I want to change/pad the keys so the array will end up as (note extra colons):
$person = array('::first_name::' => 'Fred', '::last_name::' => 'Flintstone');
For some reason I'm drawing a blank on the simplest way to do this
...