php-general Digest 22 Jun 2010 14:22:54 -0000 Issue 6810

Topics (messages 306302 through 306303):

Re: Website content question
        306302 by: Ernie Kemp

Warning messages on web page.
        306303 by: Mike Davies

Administrivia:

To subscribe to the digest, e-mail:
        [email protected]

To unsubscribe from the digest, e-mail:
        [email protected]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
I did put the PHP code. It kind of working.

 

From: [email protected] [mailto:[email protected]] On Behalf Of Hans Åhlin
Sent: June-21-10 9:43 PM
To: Ernie Kemp
Cc: PHP General List
Subject: Re: [PHP] Website content question

 

Did you include the necessary php code?


**********************************************
Hans Åhlin
  Tel: +46761488019
  icq: 275232967
  http://www.kronan-net.com/
  irc://irc.freenode.net:6667 - TheCoin
**********************************************



2010/6/21 Ernie Kemp <[email protected]>

Error! Filename not specified.

This is not a direct PHP question but I will be using PHP in the website.

 

I go to the php list because the wordpress forum does not respond to my 
questions and I know some of you have a lot of expertise in other areas than 
PHP.

 

I wish to a my own pages to a theme.

I created pages on my PC and added the code at the top of the page for 
wordpress to use the page for a template page.

I than FTP’d the file over to web hosting server template location.

Through  wordpress “administrator” I added my file called homepage.php.

 

I FTP’d my CSS, images, js and flash folders over to the template location.

Went to load the website 
http://localhost/Michael-8701/site_flash/wordpress/wp-content/homepage.php and 
all I got was the html code displayed.

 

I tried moving the folder around but same results.

Read some docs on this but it’s not clear to me why this will not work.

 

Please help this is new to me and I need to get over this wall.

Thanks,

..../Ernie

 

 

 

 

 

 

 

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.829 / Virus Database: 271.1.1/2952 - Release Date: 06/21/10 
14:36:00


--- End Message ---
--- Begin Message ---
Hello,

This is my first post to this list and I am a novice at php coding. I
can generally follow the code but not good at writing from scratch.


I have recently been trying to add to a website which was originally
developed by someone else and is written in php and mysql. I am trying
to add a 'news' section to the site. This would be similar to an
existing 'projects' section so, rather than write it completely from
scratch I copied the php and the database tables from the 'project'
section and renamed 'project' to 'news'.


This is working well except for one thing – I get the following error
messages when looking at the detailed news item. This code does not
produce this warning in the project section which is using the same php
code


Warning: reset() [function.reset]: Passed variable is not an array or
object in /home/b23aadf/public_html/news/details.php on line 72

Warning: Variable passed to each() is not an array or object
in /home/b23aadf/public_html/news/details.php on line 73


The relevant lines are :


72 reset($thumbsarray);

73 while (list($key, $value) = each($thumbsarray)) {

The site is at www.aadf.co.uk and select 'News'.

Is anyone able to help resolve this? If you let me know what further
information you require I can provide it.


Mike Davies

-- 
Mike Davies
Integra Web Design, Rhynie, By Huntly, AB54 4LS
01464 861535            www.integrawebdesign.co.uk


--- End Message ---

Reply via email to