Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Search Forums
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Showing results 1 to 25 of 249
Search took 0.03 seconds.
Search: Posts Made By: harpua
Forum: BOOK: Professional PHP Design Patterns February 2nd, 2011, 03:21 PM
Replies: 1
Views: 1,957
Posted By harpua
Chapt 22 - manage.php

On my server I have notices turned on, I was noticing that I get the following errors when I select the "Add User" link from the users page.


Notice: Undefined index: user in...
Forum: BOOK: Professional PHP Design Patterns January 24th, 2011, 12:59 PM
Replies: 1
Views: 1,476
Posted By harpua
Chapter 22 Controller Class

Chapter 22, Controller Class page 165.


In the book you have

$called = call_user_func_array(array(new $this->parts[0], $this->parts[1]), array($this->parts));


In the download code you...
Forum: BOOK: Professional PHP Design Patterns January 5th, 2011, 11:40 PM
Replies: 5
Views: 1,901
Posted By harpua
That Worked! Many Thanks, very good book by the...

That Worked! Many Thanks, very good book by the way, very easy to understand compared to some others I have tried.
Forum: BOOK: Professional PHP Design Patterns January 5th, 2011, 11:08 PM
Replies: 5
Views: 1,901
Posted By harpua
here is the full code I have and how I am getting...

here is the full code I have and how I am getting it to work.
I am pulling info from a database I have and formatting it to fit the book example, so ignore the fieldnames.


<?php
class CD {...
Forum: BOOK: Professional PHP Design Patterns December 29th, 2010, 05:50 PM
Replies: 5
Views: 1,901
Posted By harpua
If I do this it works, it is like there is...

If I do this it works, it is like there is another layer of array deminsion being added.


foreach($rooers as $cd) {
//$cd is an array and cannot access the "name" property
foreach($cd as...
Forum: BOOK: Professional PHP Design Patterns December 28th, 2010, 05:26 PM
Replies: 5
Views: 1,901
Posted By harpua
iterator Pattern

Hello,
I am working through the iterator pattern but when I try to loop through the array to build the table, I am getting Notice: Trying to get property of non-object errors.

I am using...
Forum: Beginning PHP December 26th, 2007, 04:41 PM
Replies: 1
Views: 955
Posted By harpua
This is a Notice, you can ask your hosting...

This is a Notice, you can ask your hosting company to adjust the error_reporting to turn off the notices, then you will not get this message. I personally like to leave them on during development to...
Forum: Flash (all versions) December 18th, 2007, 11:11 AM
Replies: 1
Views: 2,760
Posted By harpua
To change the font colors try this, you need to...

To change the font colors try this, you need to set up a TextFormat() first, then call it later where ever you need it changed.

var DefaultTxt = new TextFormat();
DefaultTxt = 0xBE0C26;

var...
Forum: Beginning PHP December 13th, 2007, 07:09 PM
Replies: 2
Views: 1,487
Posted By harpua
1. In your function you need to add the word...

1. In your function you need to add the word "function" or this will not work.
2. It is a good idea to go ahead and assign $callModornot a value you would test it and assign the value, with the...
Forum: PHP Databases November 30th, 2007, 05:36 PM
Replies: 13
Views: 1,808
Posted By harpua
if you are wanting previous months you could...

if you are wanting previous months you could change DATE_ADD to DATE_SUB in my code.
Forum: PHP Databases November 30th, 2007, 05:07 PM
Replies: 13
Views: 1,808
Posted By harpua
We are close. It does look like it's working, so...

We are close. It does look like it's working, so that is good. It is telling me that 0-- count was returned so that means that we should look at the data in the DB.

Can you verify the field is a...
Forum: PHP Databases November 30th, 2007, 04:12 PM
Replies: 13
Views: 1,808
Posted By harpua
Dumb question time, for my benefit : ). Are you...

Dumb question time, for my benefit : ). Are you sure you are connecting to the DB? It is good practice to add the "or die" statement to the end of the mysql_query. Also you should write everything...
Forum: PHP Databases November 30th, 2007, 02:54 PM
Replies: 13
Views: 1,808
Posted By harpua
Sorry, change SUBADD to DATE_ADD, my brain was...

Sorry, change SUBADD to DATE_ADD, my brain was in a couple different places.

$result = mysql_query("SELECT id, first_name, last_name, company, date_format(entry_date, '%m-%d-%Y') as...
Forum: PHP Databases November 30th, 2007, 01:44 PM
Replies: 13
Views: 1,808
Posted By harpua
You could do something like this $result =...

You could do something like this

$result = mysql_query("SELECT id, first_name, last_name, company,
date_format(entry_date, '%m-%d-%Y') as formatted_date, date_format(entry_date, '%M') as...
Forum: Flash (all versions) November 28th, 2007, 10:51 AM
Replies: 2
Views: 1,694
Posted By harpua
This is just the logic of how I would make it...

This is just the logic of how I would make it work. I would capture your numbers, then for the minute button I would pass the number to a function that did nothing but calculate the number of seconds...
Forum: PHP How-To October 29th, 2007, 11:23 PM
Replies: 3
Views: 2,054
Posted By harpua
You might try http://phpmailer.sourceforge.net

You might try http://phpmailer.sourceforge.net
Forum: PHP How-To October 9th, 2007, 03:59 PM
Replies: 0
Views: 940
Posted By harpua
preg_replace problem

Can somebody please help me with what is happening here. I haven't used regular expressions much.

I have a string that is used to set up a link, http://www.somelink.com, my link text, within some...
Forum: PHP How-To September 10th, 2007, 05:29 PM
Replies: 1
Views: 9,767
Posted By harpua
Convert PDF to JPG

I'm not looking for the code, just need too know if PHP's PDF functions, can convert a PDF to a JPG?
Forum: Flash (all versions) August 23rd, 2007, 08:46 AM
Replies: 2
Views: 2,075
Posted By harpua
Not positive this would help, but something to...

Not positive this would help, but something to look at. You might want to convert the symbols to html entities.

http://www.w3schools.com/tags/ref_entities.asp
Forum: Flash (all versions) August 16th, 2007, 08:55 AM
Replies: 4
Views: 1,120
Posted By harpua
From the flash help manual, I have never used...

From the flash help manual, I have never used this.

There are several options that you can use to save a file: Save, Save As, and Save and Compact. When you save a file, Flash does not analyze all...
Forum: Flash (all versions) August 15th, 2007, 03:46 PM
Replies: 2
Views: 2,056
Posted By harpua
you could look into the setInterval function and...

you could look into the setInterval function and clearinterval function. This calls a function after a set amount of time then you clear it to stop.
Forum: Flash (all versions) August 15th, 2007, 09:40 AM
Replies: 4
Views: 1,120
Posted By harpua
There is no way that I know of that you can go...

There is no way that I know of that you can go through your library and clean it up. FYI, when you publish your swf file, it will not include items that are not used in your library.

mike
Forum: BOOK: Professional Adobe Flex 2 ISBN: 978-0-470-10267-1 July 30th, 2007, 08:35 AM
Replies: 1
Views: 1,195
Posted By harpua
Book Content

Does this book tell you how to set a computer up and what tools you need to work with Flex?

Thank You
mike
Forum: Javascript July 28th, 2007, 11:07 AM
Replies: 0
Views: 1,432
Posted By harpua
disabling submit button

I have an upload image form and that code works perfect.

My problem is I have added some javacript to disable the button after the submission. The disable will work fine but then the form will not...
Forum: Flash (all versions) July 23rd, 2007, 10:54 AM
Replies: 7
Views: 1,381
Posted By harpua
since all you are doing is retrieving information...

since all you are doing is retrieving information via script and this page will run in the background you do not need the html headers.

all you need on your php code to process whatever data and...
Showing results 1 to 25 of 249

 


All times are GMT -4. The time now is 11:40 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.