Questions tagged with array

1 answer

0 votes

Asked by agoddard, on 19/12/09 in

SMTP Issues?

I purchase a pre-made site and it sends user registrations, password reminders and news items to it's users but it will not send the information via SMTP. Here is the array - why isn't working or is a server specific issue? I am on a Linux...

1 answer

0 votes

Asked by jamesl, on 4/2/10 in

echo array element

Hi,

how would you echo the 18465 number value in this array?

[totGp] => Array

(

[0] => Array

(

[0] => Array(

[SUM(Order`.`gross_profit)] => 150000)

[Order] => Array

(

[user_id] => 4

)

)

)

This is the array as seen in the controller dump.

1 answer

0 votes

Asked by blacksymmetry, on 11/2/10 in

How can i get values from array?

Hello, i have got relationships between two tables

Users

Ratings

In users function detail i get some values about user, by


<?php print_r($detail_values);?>
Print values on screen and i would like get a write out values in array:
[Rating] => Array (...

1 answer

0 votes

Asked by mindblip, on 15/2/10 in

Xml Core - toArray() PHP 5.2.12 help

Hi,

I am running a LAMP dev environment PHP 5.1.6 and Xml-toArray() works fine on valid XML.

I uploaded to my client's server running PHP 5.2.12 and the same XML is parsed incorrectly.

It returns an array but with only 1 index of partial elements....

2 answers

0 votes

Asked by Flowrush, on 23/2/10 in

How can I get an array containing all images in a particular folder

I'm new to CakePHP and I've tried to get the answer to my question by digging in the API and CookBook, but couldn't find anything.

I just want a simple array containing all names of the images in a folder. I want to echo the names of these images...

1 answer

0 votes

Asked by blacksymmetry, on 5/3/10 in

Get values from selected checkboxes into array(only really functionally solutions)

Hello, i would like to ask:

How to GET values from selected checkboxes into array?

I tried this(and many others) solutions:



<?php //echo $form->checkbox('User.id',array('value' => $value['User']['ID'],'multiple' =>  'checkbox')); ?>

But in this...

2 answers

0 votes

Asked by sijukalikatt, on 23/4/10 in

Select Box

Hi all

I have to make a select box populated from my database. It should contain the country names..

From my controller I can pass 'countries' to the view as $countries.. So in the view


$countries look like...

1 answer

0 votes

Asked by wouterraddoux, on 18/5/10 in

How do i put this data in my DB?

Hello,

i have an array in $this-data that looks like this:


Array
(
    [Boeking] => Array
        (
            [start] => 25/12/2010
            [end] => 26/12/2010
            [centrum] => Brussels
            [responsible] => Wouter
           ...

1 answer

0 votes

Asked by lalov1, on 27/5/10 in

Having trouble with $uses array

Hello,

I've had trouble with the adding other items to the $uses array. Every time I add something else the page doesn't work. Do I have to add it somewhere else too?

2 answers

0 votes

Asked by paweld, on 7/6/10 in

HABTM array not fully filled

Hello,

I've been trying to make HABTM work:

This is my PostController


<?php

class PostsController extends AppController
{
	var $name='Posts';
	
	var $helpers = array('Html');

	function index(){
		$this->set('posts',...

0 answers

0 votes

Asked by jameslivsey, 1 week, 5 days ago in

capture string of input instead of array number?

Hi

I have an input that is fed from an array like;

$sales = $this-Lead-User-find('list',

array(

'fields' = 'username', 'position'));

and i access it like this in my view;

echo $form-input('sales', array

(

'label' = '',

'type' = 'select',

'options' =...

1 answer

0 votes

Asked by bmckim87, 1 week, 1 day ago in

Find Help. Data into array instead of new record.

I have Reviews, Albums, Artists

Reviews HABTM Albums

Albums HABTM Artists

I'm getting the most recent reviews:


		$this->bindModel(
			array(
				'belongsTo' => array(
					'Album' => array(
						'foreignKey' => false,
						'conditions' =>...

0 answers

0 votes

Asked by Vicky, 2 days, 21 hours ago in

How to disable the next link on reaching the last record.

hi frnds,

i have two tables namely courses and holes. the holes table has a course_id which acts as a foreign key.

On a particular page i want to display the number of holes related to that particular course. i am able to display the contents for...

<< previous next >>