Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Search Forums
Password Reminder
Register
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 256
Search took 0.01 seconds.
Search: Posts Made By: Daniel Walker
Forum: PHP Databases May 24th, 2006, 11:09 AM
Replies: 5
Views: 1,221
Posted By Daniel Walker
You should probably take a look at using the...

You should probably take a look at using the MySQLi (i==improved) libraries, instead: they're the default in PHP 5, anyway. The others are kinda deprecated.
Forum: PHP Databases May 24th, 2006, 11:07 AM
Replies: 4
Views: 1,865
Posted By Daniel Walker
Won't load for me, so can't comment directly,...

Won't load for me, so can't comment directly, but what are you aiming for that DB:PEAR doesn't offer?
Forum: PHP Databases May 24th, 2006, 11:05 AM
Replies: 1
Views: 1,162
Posted By Daniel Walker
Your version of PHP is older than the version of...

Your version of PHP is older than the version of MySQL you are trying to connect with. MySQL upped the security on their password loggin quite some time ago, so (since all loggin attempts are sent...
Forum: PHP How-To October 31st, 2005, 08:22 AM
Replies: 2
Views: 10,572
Posted By Daniel Walker
If you find that your setting cannot be updated...

If you find that your setting cannot be updated using a .htaccess file, consider using ini_set(), instead: http://uk.php.net/manual/en/function.ini-set.php. Settings overridden using a call to the...
Forum: PHP Databases October 28th, 2005, 02:56 PM
Replies: 3
Views: 1,669
Posted By Daniel Walker
I think you misunderstand. What anshul is saying...

I think you misunderstand. What anshul is saying is, avoid having to get the database to process the hash at all. Simply hash it in your script and send the hash: store it in a fixed-length character...
Forum: MySQL October 28th, 2005, 02:33 PM
Replies: 5
Views: 1,429
Posted By Daniel Walker
What I think you want to do is use a GROUP BY on...

What I think you want to do is use a GROUP BY on the RuleId field, specifying a RuleId='x,y, or z', along with a call to the COUNT() function in your query.

Try:
SELECT *,COUNT(*) FROM...
Forum: Beginning PHP April 19th, 2005, 05:37 AM
Replies: 9
Views: 7,748
Posted By Daniel Walker
The book may be wrong, and no one may have told...

The book may be wrong, and no one may have told the people at Wiley about it, yet. Either that, or they've been told, and just haven't put up an erratum for it, yet: everyone is human. I don't have a...
Forum: Beginning PHP February 25th, 2005, 04:26 PM
Replies: 2
Views: 1,353
Posted By Daniel Walker
Well, first, you need to input the data via...

Well, first, you need to input the data via <textarea> type input fields. That'll presevre the formatting (but I assume you're doing that).

Next, look into using preg_replace...
Forum: PHP How-To December 1st, 2004, 10:53 AM
Replies: 5
Views: 1,617
Posted By Daniel Walker
Have you actually got a mail transfer agent...

Have you actually got a mail transfer agent installed and running? Nothing will happen if you haven't ;).
Forum: PHP How-To December 1st, 2004, 10:39 AM
Replies: 2
Views: 1,725
Posted By Daniel Walker
You probably want to look at something like...

You probably want to look at something like PHPDig:

http://www.phpdig.net/navigation.php?action=doc

Index Server was a fudge, IMO, and never really worked properly when I used it.
Forum: PHP Databases September 26th, 2004, 08:38 AM
Replies: 2
Views: 3,088
Posted By Daniel Walker
Let me guess that the lastaccesstime field is...

Let me guess that the lastaccesstime field is hardwired to default to NOW()...

If thta's the case, then the value for $username must be wrong... In fact, from my reading of it $username is never...
Forum: Beginning PHP September 26th, 2004, 08:27 AM
Replies: 5
Views: 730
Posted By Daniel Walker
Am I missing something, guys? Surely you could...

Am I missing something, guys? Surely you could just run:

if(date("d")<15){
//Do one thing: e.g. require _once(beginning_of_month.php);
}else{
//Do t'other thing
}

Stacy,...
Forum: Beginning PHP September 25th, 2004, 09:02 AM
Replies: 3
Views: 797
Posted By Daniel Walker
I don't usually bother with IIS these days, but...

I don't usually bother with IIS these days, but it looks like a text file that the code is trying to open, write to and then close again (perhaps an access log, or something) has either been removed...
Forum: Beginning PHP September 25th, 2004, 08:46 AM
Replies: 3
Views: 1,308
Posted By Daniel Walker
Well, its's probably part of it. Like I say, only...

Well, its's probably part of it. Like I say, only a few browsers will implicitly insert whatever is between the option tags as the value passed for the overall select element. Either way, though,...
Forum: Beginning PHP September 23rd, 2004, 05:33 AM
Replies: 3
Views: 1,308
Posted By Daniel Walker
Well, first off, <Option> elements must always...

Well, first off, <Option> elements must always have a value. Some browsers, such as the Mozilla family, always populate the option list implicitly using whatever isbetween the tags, but I think mopre...
Forum: PHP Databases August 27th, 2004, 05:44 AM
Replies: 2
Views: 1,595
Posted By Daniel Walker
Never done it, but you could try using the PX...

Never done it, but you could try using the PX libraries (as far as I know, these cover Paradox versions 4,5,6, and 7, and ship with a brief intro to what is known about the Paradox file format):
...
Forum: PHP Databases August 26th, 2004, 07:39 AM
Replies: 7
Views: 947
Posted By Daniel Walker
This is what I was meaning: If I understood...

This is what I was meaning:

If I understood your database structure correctly, the $rs_photographsEnlarged resultset will contain an entry for 'photographerID', which could be retrieved as...
Forum: PHP Databases August 25th, 2004, 10:46 AM
Replies: 7
Views: 947
Posted By Daniel Walker
If each photo's record has a photographerID...

If each photo's record has a photographerID column, couldn't you use that? Are you trying to use that, and all you're getting is ID 1? If so, have you checked to see what values your photographerID...
Forum: PHP How-To August 24th, 2004, 08:10 AM
Replies: 1
Views: 1,381
Posted By Daniel Walker
Well, if you just want to replace all double...

Well, if you just want to replace all double backslashes with single ones....

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>String Thing</title>
</head>...
Forum: PHP Databases August 24th, 2004, 05:04 AM
Replies: 1
Views: 1,178
Posted By Daniel Walker
Yes it does. ODBC was invented for UNIX by the...

Yes it does. ODBC was invented for UNIX by the X/Open and SQL Access group. Microsoft just invented the name "ODBC" because they like trying to patent other people's work.

I've come back and...
Forum: Beginning PHP August 24th, 2004, 04:56 AM
Replies: 3
Views: 1,519
Posted By Daniel Walker
Hm, yes, you do. The actual error reported was...

Hm, yes, you do. The actual error reported was generated by the space, but you're right; adding backticks would, indeed, have only allowed the CREATE statement to proceed on to that second comma...
Forum: Beginning PHP August 23rd, 2004, 04:43 AM
Replies: 5
Views: 1,908
Posted By Daniel Walker
That'll work if you concatentate your reference...

That'll work if you concatentate your reference to the the $_POST variable onto the end of your string - i.e.:

echo 'You have selected the answer: ' . $_POST['Question1'];

This is the most...
Forum: Beginning PHP August 23rd, 2004, 04:27 AM
Replies: 3
Views: 1,519
Posted By Daniel Walker
If you want to put in fieldnames with spaces in...

If you want to put in fieldnames with spaces in them, you'll have to surround them with backticks (on the English-language versions of a PC keyboard, this is usually up in the top left hand corner of...
Forum: Linux August 19th, 2004, 08:53 AM
Replies: 1
Views: 2,682
Posted By Daniel Walker
Libgd2 can be got from here: ...

Libgd2 can be got from here:
http://www.boutell.com/gd/

However, GD2 should be part of your PHP installation. You shouldn't normally need to update GD separately. Have you tried updating your PHP...
Forum: PHP How-To August 19th, 2004, 08:41 AM
Replies: 1
Views: 859
Posted By Daniel Walker
Why not use the addslashes and stripslashes...

Why not use the addslashes and stripslashes functions, instead?
http://uk2.php.net/manual/en/function.addslashes.php
http://uk2.php.net/manual/en/function.stripslashes.php

Also, bear in mind...
Showing results 1 to 25 of 256

 


All times are GMT -4. The time now is 12:06 AM.


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