i have this multi dimentional array that i want to print into a table having each record/item go into its own row but it goes column wise. this is the output that im getting: http://mypetshopping.com/product.php
ps: the value of $product will by dynamic based on what product is being viewed.
<?php
session_start();
?>
<table>
<thead>
<t...
I want to install the Crypt_DiffieHellman PEAR package, that gives me the following error:
pear/Crypt_DiffieHellman requires PHP extension "gmp"
So I installed the gmp extension (using MacPorts' "php5-gmp"), both php -m and extension_loaded('gmp') indicate that the extension is loaded. However I still get the PEAR error when I try to ...
$this->totplpremium is 2400
$this->minpremiumq is 800
So why would this ever return true?!
if ($this->totplpremium < $this->minpremiumq){
The figures are definitely correct and I am definitely using the 'less than' symbol. I can't work it out.
...
Recently a problem arose regarding hooking up an API with a payment processor who were requesting a string to be encrypted to be used as a token, using the TripleDES standard. Our Applications run using ColdFusion, which has an Encrypt tag - that supports TripleDES - however the result we were getting back was not what the payment proces...
at index.php i have a form to fill out some settings. the form posts to setsettings.php
at setsettings.php it uses the form data and sets some cookies and redirect back to index.php. if i print_r($_COOKIE) at setsettings.php all is well. but nothing comes up at index.php, the $_COOKIE array is empty :(
Does somebody know how i go abou...
i use preg_match_all and need to grab all a href="" tags in my code, but i not relly understand how to its work.
i have this reg. exp. ( /(<([\w]+)[^>]>)(.?)(<\/\2>)/ ) its take all html codes, i need only all a href tags.
i hobe i can get help :)
...
Below is the code I am working with and the last for loop i am iterating is not working... I think i am doing something wrong using multiple variable in a for loop,also I m aware of the fact that it can be done.
$updaterbk = "SELECT j1. *
FROM jos_audittrail j1
LEFT OUTER JOIN jos_audittrail j2 ON ( j1.trackid != j2.trackid
AND j1.fie...
I have three types of users: A, B, C .. Hence a user base class and then we have 3 derived classes. However it is possible for a user to be of 2 types at the same time. How would we go about dealing with this in a decent fashion, keeping in mind the type(s) of the user will define the kind of access they have in an application.
...
Ok, what i'm trying to do here is to pass a 2d array from php to javascript in the easiest way possible. The main reason for this is because i have the array which is previously filled with data via the phpscript and doing it one by one and just "calling it as it's needed" will not work out too well since well there's more than just one ...
Or version in a similar language. One that's for all types of maps not just 2d.
...
Dear all,
I have develop a project on codeignator.On xamp server.The pagination is working fine on that project on xamp server but when i shift the same project in to my linux server then the whole project work but the pagination is not working.
Can anybody give me any solution on that issue? why the same code pagination is not working...
Is there any other way to access a static variable from a static method, other than using classname::$variable?
...
Hi everybody,
It is a simple thing but i don't get answer for that.
I am generated auto generation id concatenate with year 100001, 100002 like that, in this 10 is year 0001 is auto generation numbers. When i split the year and number then getting add one value is 2 for 0001. but i need as 0002.
Adding value is 0001+1, 0002+1, 0010+...
I want to change the php setting but from ".php" page not php.ini. The settings I want to change is
upload_max_filesize, post_max_size and memory_limit
...
can any one please advice me, is there any possibilities to access .Net modules using php
...
hi, i need to make a simple site search with a pagination in it, can anyone tell me how to do it with out affecting the url structure. currently i m using default ci url structrue and i have removed index.php from it. any sugestion guys?>....
...
I'm trying to detect the current section of a site that a user is viewing by checking for the final directory in the URL. I'm using a PHP and regex to do it and I think I'm close but unfortunately not quite there yet.
Here's what I currently have:
<?php
$url = $_SERVER['REQUEST_URI_PATH'] = preg_replace('/\\?.*/', '', $_SERVER['REQ...
I'm learning PHP right now and I'm trying to insert data into a MySQL database called "pumpl2" The table is set up like this.
create table product
( productid int unsigned not null auto_increment primary key,
price int(9) not null,
value int(9) not null,
description text
);
I have a form and want to insert the fields from t...
Hi!
I wonder how I can make PHPDoc-comments visible in Eclipse on a project-wide basis. For the moment, it only works in the current, open file.
It would be super to be able to check out all the @params and descriptions that I have put in before each function, outside the function's own file.
Thanks a lot!
...
Hi,
I have a string in PHP for example $string = "Blabla [word]";
I would like to filter the word between the '[' brackets.
The result should be like this $substring = "word";
thanks
...