Jump to content

Eksotik

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Eksotik's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Oh, well.. I think I go back to basics. Anyway, thanks for your help, Dan! -T
  2. I tried fetching data and it worked, so I guess MySQL is working. So I wrote error_reporting(E_ALL); to my index.phtml file but nothing really changed. In php.ini there was this line error_reporting = E_ALL & ~E_DEPRECATED. At start I was just studying basic PHP but somehow I found this cool tutorial. I used some time studying the tutorial and I thought I could try it.. Now I'm pretty confused since everything seems to be right but the app isnt't working.. -T
  3. This is the tutorial I followed: http://akrabat.com/wp-content/uploads/Getting-Started-with-Zend-Framework.pdf I did recheck all the steps and I'm sure I did it right. But I'm not that sure about my MySQL configuration, could that cause the problem or is it php relevant? -T
  4. Hey, I'm new with PHP and I was following some zend -tutorial when this came up: <?php $this->title = "My Albums"; $this->headTitle($this->title); ?> <p><a href="<?php echo $this->url(array('controller'=>'index', 'action'=>'add'));?>">Add new album</a></p> <table> <tr> <th>Title</th> <th>Artist</th> <th> </th> </tr> <?php foreach($this->albums as $album): ?> <tr> <td><?php echo $this->escape($album->title);?></td> <td><?php echo $this->escape($album->artist);?></td> <td> <a href="<?php echo $this->url(array('controller'=>'index', 'action'=>'edit', 'id'=>$album->id));?>">Edit</a> <a href="<?php echo $this->url(array('controller'=>'index', 'action'=>'delete', 'id'=>$album->id));?>">Delete</a> </td> </tr> <?php endforeach; ?> </table> I've tried everything but only thing it says is: Warning: Invalid argument supplied for foreach() in index on line 13. Line 13: <?php foreach($this->albums as $album): ?> -T
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.