How do i do batch updates?
Hello, How can i do batch updates in CodeIgniter instead of firing query each and every time in database? Thanks in advance :) ...
Hello, How can i do batch updates in CodeIgniter instead of firing query each and every time in database? Thanks in advance :) ...
We use echo or print_r to get value of variables while debugging PHP code. But, object of domXPath or DomDocument are not captured in echo or print_r. How to get values from above objects while debugging PHP code? ...
Hello. I want to receive model data by find(all), but the user should get only a restricted set of table fields. That's easy: $ret = $this->find('all',array('fields'=>array( 'Employee.id','Employee.address_id' ))); But this model (Employees model) also has a belongsTo association: var $belongsTo = array( 'Address' => array( ...
Dear experts, Let say I have to search 3 co-related options 1)name 2)address 3)Phone. So, I have to write 8[eight] separate queries.pls see the example below…. $name= $_POST['name']; $address = $_POST['address']; $phone= $_POST['phone']; if($name!=""&& $address==""&& $phone=="") { $searching_query="SELECT id,name,address...
I'm using utf8_encode || utf8_decode ..., but I'm struggling to handle some special characters (é, è ê ... ,) I'm using php. Could someone help? ...
<?php class a { public function foo() { echo __METHOD__ . PHP_EOL; } } class b extends a { public function foo() { $this->foo(); # I want to call a's foo method here. echo __METHOD__ . PHP_EOL; } } class c extends a { public function foo() { echo __METHOD__ . PHP_EOL; $this->foo...
Hello all i have 2 domains e.g. test1.com and test2.com and i need user login cross at this 2 domains. both domains run on same server, i hobe for help, :) ...
I'm creating a script that will take users location from their ip. I saw this api.But know idea how i can get them in array and print them. Here is a sample link: http://ipinfodb.com/ip_query.php?ip=74.125.45.100&timezone=true This a sample respones <Response> <Ip>74.125.45.100</Ip> <Status>OK</Status> <CountryCode>US</CountryCode...
I have a (testing) Drupal 6 site on a free web hosting platform, which unfortunately removed SMTP support for free hostings. Does any one know whether there's a way to give Drupal the ability to send emails on a site without SMTP server, e.g. via the public Gmail's SMTP server? can "sendmail" help in this case? ...
i'm trying to write a php soap server but i keep getting the folow error on louding the wsdl file: WSDLSOAP-ERROR: Parsing WSDL: Couldn't load from 'files.wsdl' : Premature end of data in tag definitions line 2 the wsdl file looks like this: <?xml version="1.0" encoding="UTF-8"?> <definitions name="TemperatureService" ...
Hi, I have a ArrayObject structure that is quite complex to output, it can/and consists of multiple levels of relationship e.g. Parent -> Child -> Children -> Child etc. Structures like this are quite complex to work with when using a foreach, for or while loop. I've looked into SPL Iterators and I think this can be used. I'm a bit unf...
Anyone able to have at look at this? still un-resolved and am desperate to get this working, I am confident I know how the code is working, it is just a problem with the WHERE clause. I need it so that the var $pageGrandChild matches the last part of a string in the database i.e. foo-bar-rules. Any ideas? $pageGrandChild = PAGEGRANDCHI...
I am uploading an image and creating thumbnail for different size. The category are 32px/32px, 64px/64px, 150px/150px. It doing all great except one. It calculates the hieght automatically base on “maintain_ratio” = true property. But i don’t want that. it should be fixed with my defined dimension. But i can’t found such option for that....
Hi guys, I would like to know if it is at all possible for AS3 to grab header information and process it? I am trying to avoid having to use PHP to get the information, then store it in a DB, give it to flash, then go and delete it again, or something alike. Basically the flash is waiting for three variables that get sent through the...
Hi anyone can explain file upload process in PHP. I mean what happens in backend internally. like saving with temp name, moving to upload folder etc. I want it's step by step working. Thanks ...
I have MySQL table called Files which has file_id column and file_type column (and also other columns that are not relevant to the question). I would like to get all file_ids of all picture files (i.e. file_type='picture'). I do the query like this: $pictures_query = mysql_query("SELECT file_id FROM Files WHERE file_type='picture') ...
Hi guys just like in the title - I need regular expression that will match anything that starts with 'http://' ...
Hi Guys, I have my XML feed being created from an associative array. Using new DOMDocument('1.0','UTF-8'); and it was working fine until I made some changes to the methods used to convert it from iso-8895-1 to UTF-8. The character being flagged up is the letter R, but I have gone into the file via ftp and changed it manually (deleted...
Hello everyone, Once I have a client contact information saved in Support Module, I could get the following things done.. Client sends e-mail to [email protected] Mail Scanner scans, creates a ticket. A notification is sent that email is received by support team to client. Admin assigns the ticket to someone, client recieves an email...
hi guys, i have some price values to display in my page. i am writing a function which takes the float price and returns the formatted currency val with currency code too.. like fnPrice(1001.01) should print $ 1,000.01 ...