Hey guys,
I have the following code to grab a list of Products
$collection = Mage::getModel('catalog/product')->getCollection();
$collection->addAttributeToSelect('name')
->addAttributeToFilter("category_ids", array('finset'=>$this->category_id));
foreach($collection as $product) {
echo $product->getName();
}
My question i...
I am new to OAuth, and want to create a page that gets the user's contact list from Google using the OAuth system so they don't have to login.
How do I do this? I am using php, so I would really appreciate if there is example code that does this. I can't seem to find it on Google.
Please help!
Thanks
...
Hi all..
i want to add an editor(see attach) to a my webpage. How can i do that?!
...
Hay all im using a simple look to get file names from a dir
if ($handle = opendir('news_items/')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
}
}
}
the files are being outputted news last, oldest first.
How can i reverse this so the newest files are first?
...
function isChongHao(ary,i,j)
if ary(i-1,j)<>0 or ary(i+1,j) then
isChongHao=true
exit function
end if
isChongHao=false
end function
...
Hay all, i need help making a regex. The string must contain a "-" and must not contain a ".".
Can someone help me please.
...
I am making an auction website, which has an auto-bid system. This system lets people make biddings without having to be there.
My question is how to implement such a system. I have made the php files and everything is ready, I've made a html page which refreshes every second. It works, but I'm wondering if there's a better solution.
T...
when accessing a set of information in a database i am then trying to print the names, however i get an undefined index error:
$val= mysql_query("select * from country");
while($row = mysql_fetch_array($val)){
echo $row['country'];
}
i think it maybe to do with not check if isset correctly, is there an example related ot this tha...
I want to build a in-site search engine with php. Users must login to see the information. So I can't use the google or yahoo search engine code.
I want to make the engine searching for the text and pages, and not the tables in mysql database right now.
Has anyone ever done this? Could you give me some pointers to help me get started?...
Hi,
I am using Zend Form to create dynamic form.
I have Zend Form validation too.
Trying to remove Validation dynamically, but not getting any success.
Can you plz help me to remove Zend Validation.
Bellow is my code for remove validation :
$toRemValArray = array();
$toRemValArray[0] = 'ele_4af42ceac7810';
if(isset($_POST['btnPost...
I have faced a problem .I want to select all rows by executing this function:
public function executeQuery($query,$fetch_mode=null) {
$rs = null;
if ($stmt = $this->getConnection()->prepare($query)) {
if ($this->executePreparedStatement($stmt, $rs,$fetch_mode)) {
return $rs;
}
...
im' trying to make a file based article system and i want the folders to be my categories and files inside it to be the actual articles. But sometimes i need some special characters in my folder/file name(\/:*?",and actually i'm interested just in double quotes and question mark). Is there a way to do the trick...something like & is ...
Hi Guys,
I'm learning PHP and I'm not that familiar with OOP yet - I've read a book about it, but never really programmed using OOP.
I would also like to learn how to use a framework (codeIgniter, as it seems the most 'friendly' to beginners).
Now I need a suggestion from you: would you recommend learning FIRST the 'standalone' OOP a...
Hi, I'm using this:
AddHandler application/x-httpd-php .php5 .php4 .php .php3 .php2 .phtml
AddType application/x-httpd-php .php5 .php4 .php .php3 .php2 .phtml
...within a .htaccess file but my .phtml files are not running as php, they're just showing the code!
Have I missed something?
...
How to make HTML Input Box accept date strictly in format dd/MM/yyyy? Alternatively, any PHP code to pass entered date in this format to MySQL?
...
I want to know if there is an equivalent cron in Windows and how I can use it programmatically using PHP.
...
Is there a way, a method, to be able to effectively run unit tests (phpunit) on both linux and windows?
I need to do this because some parts of the system is only available under linux, but i do want to be able to run certain parts of the test suite in my IDE, which is netbeans by the way.
The problems i run into have to do with paths ...
Hi, I am developing a website and I need to receive payments from PayPal and Credit Card, the thing is that I know nothing about this, and my question is where I can find some great resources to help me, or if you have some example codes, everything that can help me.
Thank's alot.
...
I'm working on a wordpress plugin, and have come across a barrier of sorts. I need to take in a value from a textbox from the options page, but I don't want that information stored within the options.php file. Instead, I need to get that value, and then store it within an array, and later that array will be filed into the options.php fil...
hi,i moved data from mysql 4 (they were originally set to latin2 encoding) to mysql 5 and set encoding to utf-8. It looks good in phpMyAdmin, utf-8 is ok. But there are question marks instead of some characters on website! website encoding is also set to utf8 so i dont understand where is the problem.
PHP and HTML files are also set to ...