You could also perhaps try this.
$message = "
$alias
$name
$email
$site
$cam
$quote
";
Might not work in all cases though but it's certainly easier to read.
It all very much depends on personal preference.
Andy.
- Original Message -
From: "John Monfort" <
try and prove how good PHP
really is.
Andy.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
ow that the above is probably more to do with the web server but I want
to prove a point that PHP is not the "fly by night" software that some
people are saying it is.
I know it's good, but, I need to show just how good it can be.
I then want to publish the results for all to see.
Still
Kyle,
If you are absolutely sure that your username and password is
correct...You are sure arn't you ?
Try changing "P500.MSHOME.NET" to either "localhost" or "127.0.0.1"
Most likely the MySQL admin dude has set it so that you can only connect to
--enable-force-cgi-redirect \
--disable-path-info-check \
--enable-safe-mode \
--disable-short-tags \
--with-regex=system \
--with-mysql \
--enable-debug \
--with-mcrypt \
--enable-versioning \
--disable-libxml
--
Andy
--
ename=" . $filename);
Any help would be appreciated!
Andy Baldwin
Software Developer
Questa Software Systems, Inc.
mailto://[EMAIL PROTECTED]
include_path='.:/var/www') in Unknown on line 0
---
I tried combing through the PHP manual but there's no troubleshooting
section and the FAQ doesn't address this issue. :(
- Andy
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Andy do a small page with only this in it and see if it will load.
phpinfo();
?>
That churned out a rather long page with all sorts of information... so
now I'm assuming that PHP is parsing correctly, but I have some sort of
configuration error? What that would be, I'm unsure...
Can we see some of the code throwing the error? PHP is working correctly
if you got the page above (a handy thing to keep around BTW).
I assumed it was a configuration error because the error occured on line
0. But in any case, here's some lowdown.
main.php - the file everyone will be seeing, and
Thanks to this newsgroup I finally overcame one of my biggest errors in
PHP. But it still doesn't work completely. :)
---
Fatal error: Call to undefined function: pg_connect() in
/var/www/include/db.php on line 30
---
Undefined function? Isn't it a standard command?
- Andy Moore
--
P
httpd got access to all the files?
Ah! I fixed it now. Ok, this problem is solved, thanks all :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
point it to a directory or something? I don't know where library files
are stored...
- Andy Moore
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
>
> I think the only way to detect if it can connect to the Internet is to
> see if you can grab a file from somewhere on the Internet. I'd hazard a
> guess that when operating systems are able to tell you they can "connect
> to the Internet" they are actually saying they can ping a predetermined
> By attempting to connect you will implicitly query DNS (which itself
> is a connection to server).
No it's not - it's putting out a packet targeted at an IP address and hoping a
server will answer - hence why multi-cast works for DNS because you're not
directly connecting to a specified ser
>
> Both at home and at work there are caching DNS on the LAN. So a DNS
> request may come back with a valid IP address when the WAN connection is
> down. I still won't be able to connect to the remote site.
Dig an external server - e.g. dig @a.root-servers.net google.co.uk
If your net is down t
>
> I'm confused... what's the problem with just trying to hit the update server?
> If you can then you check for updates, if not then you, erm, don't. Simples,
> no?
True, I think I said this same thing in a previous post - I suggested the DNS
option if all the OP wanted to do was check if a
>
> And I was pointing out that this would not be a valid test when there is
> a caching DNS on the LAN.
I also pointed out how to avoid caching issues - the comment was aimed at the
author of the message before mine.
>
> Too much of the conversation and most of the attribution was stripped
>
You didn't mention in
your post if you had or not and I'm not familiar enough with MySQL on Windows
to know if the essentials package includes it.
The error you're getting from ASP means it doesn't recognise the driver "mySQL"
or is looking for an ODBC connection
d also realise that a lot of mail clients don't render
images/stylesheets by default - therefore straight after the tag before
the rest of the content, put a link to an external website where recipients can
view the content online.
Regards,
Andy
--
PHP General Mailing List (http://ww
Hi,
Have you taken a look at Xdebug - http://xdebug.org/ ?
From the manual: "Xdebug allows you to log all function calls, including
parameters and return values to a file in different formats."
Would this do what you need - then your second script could process this file?
Regards,
A
before
in the ESTABLISHED state, PHP isn't disconnecting.
If any connections are listed as TIME_WAIT, it means the connection was dropped
without the client disconnecting properly - it may be worth running netstat on
your LDAP server as well.
Regards,
Andy
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
rfectly reliable as a relay on
Windows - just install it and SMTP to localhost - nothing more, nothing less.
Andy
I'm trying to parse a string containing an HTML table using the
builtin DOM classes and running into an odd problem.
Here's what I'm doing:
$dom = new DOMDocument();
$dom->loadHTML($str);
$tables = $dom->getElementsByTagName("table");
$rows = $tables->item(0)->getElementsByTagName('tr');
foreach($
5 PM, Rene Veerman wrote:
> hmm lame bug... but you can add a classname to the s and check for that?..
>
> On Thu, Mar 11, 2010 at 9:34 PM, Andy Theuninck wrote:
>> I'm trying to parse a string containing an HTML table using the
>> builtin DOM classes and running into an odd
sportTH'.
>> }
>>
>> the only problem i foresee is s in your reports already having a
>> class="something" set, which could mess it up. you'd need to check
>> that. but in that case you can always pump the original $str to the
>> DOM, and us
Hey everyone,
I'm really not sure what's going on here: basically, the bitwise
NOT operator seems to simply not work. Here's an example of what I
see.
Script
$ cat bintest2.php
=
Output
$ php bintest2.php
Bin: 1
20 August 2010 17:41, Peter Lind wrote:
>> On 20 August 2010 17:10, Andy McKenzie wrote:
>>> Hey everyone,
>>>
>>> I'm really not sure what's going on here: basically, the bitwise
>>> NOT operator seems to simply not work. Here's an exa
On Tue, Aug 24, 2010 at 11:06 AM, Richard Quadling wrote:
> On 20 August 2010 17:00, Andy McKenzie wrote:
>> Thanks to everyone who responded. I've dealt with binary math
>> before, but it never occurred to me (and doesn't seem to be anywhere
>> in the document
On Tue, Aug 24, 2010 at 3:55 PM, Ford, Mike wrote:
>> -Original Message-
>> From: Andy McKenzie [mailto:amckenz...@gmail.com]
>> Sent: 24 August 2010 17:24
>> To: php-general@lists.php.net
>> Subject: Re: [PHP] Bitwise NOT operator?
>
>
>> From y
On Wed, Aug 25, 2010 at 9:46 AM, Colin Guthrie wrote:
> 'Twas brillig, and Andy McKenzie at 24/08/10 21:42 did gyre and gimble:
>> Even if I'd thought about it in terms of the architecture, I
>> would have assumed that PHP would treat a two-bit number as a two-bit
Jordan,
Bostjan hit the main points, but if you're trying to run a secure
server, you probably ought to know more about it than you do now.
It's pretty easy to arrange a secure connection that isn't actually
secure if you don't know what you're doing. I'd recommend a good
Apache book -- I have
>
> A question, to clarify my fuzzy thinking about such things:
>
> Can a business have a server connected to the Internet but limit access to
> just their employees? I don't mean a password protected scheme, but rather
> the server being totally closed to the outside world other than to their
> in
On Sun, Sep 12, 2010 at 1:51 PM, tedd wrote:
> At 1:18 PM -0400 9/12/10, Andy McKenzie wrote:
>>
>> >
>>>
>>> A question, to clarify my fuzzy thinking about such things:
>>>
>>> Can a business have a server connected to the Internet but
On Mon, Sep 13, 2010 at 8:11 PM, Micky Hulse wrote:
> On Mon, Sep 13, 2010 at 5:05 PM, Daniel Brown wrote:
>> It would be cheaper to employ the same method used on some
>> lawnmowers and required on Jet Skis and Skidoos: a cable with a clip
>> worn by the rider. The rider falls off, the cable
Hey folks,
I have the feeling this is a stupid question, but I can't even find
anything about it. Maybe I'm just not searching for the right things.
Here's the problem. I'm writing a lot of pages, and I hate going in
and out of PHP. At the same time, I want my HTML to be legible. When
you
On Mon, Sep 20, 2010 at 3:47 PM, Steve Staples wrote:
> On Mon, 2010-09-20 at 14:56 -0400, Andy McKenzie wrote:
>> Hey folks,
>>
>> I have the feeling this is a stupid question, but I can't even find
>> anything about it. Maybe I'm just not searching for
On Mon, Sep 20, 2010 at 3:50 PM, Rick Pasotto wrote:
> On Mon, Sep 20, 2010 at 03:02:35PM -0400, TR Shaw wrote:
>>
>> On Sep 20, 2010, at 2:56 PM, Andy McKenzie wrote:
>>
>> > Hey folks,
>> >
>> > I have the feeling this is a stupid question, but
On Mon, Sep 20, 2010 at 3:59 PM, Peter Lind wrote:
> On 20 September 2010 21:56, Andy McKenzie wrote:
>> On Mon, Sep 20, 2010 at 3:50 PM, Rick Pasotto wrote:
>>> On Mon, Sep 20, 2010 at 03:02:35PM -0400, TR Shaw wrote:
>>>>
>>>> On Sep 20, 2010, at 2:5
Here's a related question maybe one of you can answer: is there any
place in HTML (not PHP, but actually in HTML) where there's a
difference between a single quote and a double quote? As nearly as I
can tell, it shouldn't ever matter. If that's the case, using
double-quotes to enclose an echo ge
On Tue, Sep 21, 2010 at 3:32 AM, Simcha Younger
wrote:
> On Sep 20, 2010, at 2:56 PM, Andy McKenzie wrote:
>
>
>> Hey folks,
>>
>> Here's the problem. I'm writing a lot of pages, and I hate going in
>> and out of PHP. At the same time, I want my
Hey folks,
Here's the deal. I have the following code:
if($col_vals[$i][$val['column']] == $search_result[0][$col])
{ echo ' selected="selected"'; }
elseif($val['default'] == $col_vals[$i][$val['column']])
{ echo ' selected="selected"'; }
It's supposed to check whether t
[$i][$val['column']]) &&
(!isset($search_result[0][$col])))
Now the elseif only triggers if there is a default, but there is no
value in the DB for that field.
Hope my failure to think saves someone else some trouble later!
-Alex
On Fri, Sep 24, 2010 at 1:56 PM, chris h w
On Wed, Oct 6, 2010 at 9:03 AM, Robert Cummings wrote:
> On 10-10-06 08:52 AM, Peter Lind wrote:
>>
>> Where exactly do you get the part about double quotes from? Can't seem
>> to locate it in the any of the relevant specs (xhtml or xml). Also,
>> never seen an xml or xhtml validator choke on sing
On Wed, Oct 6, 2010 at 9:25 AM, Peter Lind wrote:
> On 6 October 2010 15:21, Andy McKenzie wrote:
>> On Wed, Oct 6, 2010 at 9:03 AM, Robert Cummings wrote:
>>> On 10-10-06 08:52 AM, Peter Lind wrote:
>>>>
>>>> Where exactly do you get the part about dou
favoring the value of the knowledge here, but it's
been a close thing a few times in the last week.
-Andy
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, Oct 22, 2010 at 9:22 AM, Jay Blanchard wrote:
> [snip]
> really makes me question remaining a member...it's been a close thing a
> few times in the last week.
> [/snip]
>
> $door = new door("large", "heavy", "swift");
> $door->open();
> $door->hitArse();
> $door->close();
>
> C'mon, the ru
I'm currently seeing this in 5.3.10, although it's an intermittent
problem I've seen earlier versions too. Occasionally I get a "maximum
execution time" error when calling fclose() on a parallel port file
descriptor. Code looks like this:
$fp = fopen('/dev/lp0','w');
if ($fp){
fwrite($fp,$LongS
y exist, then taper off for a while, then come
back. I'd bet when the next major version of PHP is released we'll
see an upswing in traffic for a while as people try to figure it out.
-Andy
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, and I've now
scrapped the entire project and rebuilt it. Why? Because I did just
about everything wrong. It just plain wasn't practical to try to fix
it. I'd never learned the basics, I just threw myself at a big
project to see what would happen.
Good luck!
-Andy McKenzie
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sat, Feb 9, 2013 at 10:41 AM, Jim Giner wrote:
> This is a tough one.
>
> Lately, my web pages are giving me some problems. Once a day or so one or
> more of my pages/scripts will give me a 404 error page saying my web page
> has timed out. Problem is that the page was just displayed. I clic
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
This is a good point, and one I hadn't thought of. I saw "Network
time out" and thought network problems, but Geoff is right. If it's
actually a 404
On Thu, Feb 14, 2013 at 2:52 PM, Daniel Brown wrote:
> Remember to hit reply-all, Andy, so it goes to the list as well as
> the previous author.
>
> On Thu, Feb 14, 2013 at 2:49 PM, Andy McKenzie wrote:
>> On Thu, Feb 14, 2013 at 2:29 PM, Daniel Brown wrote:
>>> O
... I'm unemployed right
now, and a project to work on this week (or next... this week is kind of
busy) might be a good thing.
-Andy McKenzie
On Mon, Apr 1, 2013 at 6:49 PM, Mark wrote:
> On Tue, Apr 2, 2013 at 12:27 AM, Sorin Badea
> wrote:
> > Hi Mark,
> > I think a sim
thing much more complex then that there's going to be some value in
using foreign keys, whether formally (constraints set in the DB) or
informally (constraints imposed in the web interface), but it's quite
possible the guy had never worked on something where they were needed.
-Andy
.
On Thu
was supposed to,
so we fixed it" kind of way. If you were taking advantage of that bug, you
get knocked down, but the vast majority of software will keep running.
Java doesn't seem to work that way, at least from an IT worker's
perspective.
Andy McKenzie
On Tue, Aug 20, 2013 at
of opening a file
on a new OS, only to find that the default editor there has wiped out my
formatting. With PHP, that's not a big deal: as long as I put my braces
in the right places, everything will continue to work. With Python -- or
any whitespace delimited language -- it's fatal, and I have to hope I can
exit without saving anything.
Andy
On Fri, Jan 7, 2011 at 11:55 AM, la...@garfieldtech.com
wrote:
> Hi folks. I have a project coming up that will involve writing a
> non-trivial command line PHP application. Most of it will be nice and
> abstracted and standalone and all of that jazz, but it will need to do
> command line intera
Hey folks,
Hopefully this is enough on-topic not to annoy anyone. Up until
now I've mostly written small one-off scripts -- a web page that needs
a few things dynamically generated, a shell script to do a small job,
things like that -- and vim has been more than adequate. I'm
currently worki
On Wed, Jan 26, 2011 at 8:51 AM, Lester Caine wrote:
> Andy McKenzie wrote:
>>
>> So: does anyone have a recommendation for an IDE that works in
>> Windows, Mac, and Linux? I spend roughly equal time in all three, and
>> I haven't found a tool I like yet that w
On Tue, Feb 22, 2011 at 6:29 AM, Dotan Cohen wrote:
> I wrote a short page on how to actually type of code that one writes,
> it can be found here:
> http://dotancohen.com/howto/write_code.html
>
> The point that I stress on the page is that first you close an
> element, then you fill it's content
Greetings,
I'm moving some scripts from an older server (SuSE who-knows-what,
running PHP 5.2.5) to a newer one (Ubuntu 10.10, running PHP 5.3.2).
For the most part there haven't been any problems, or they've been
things that I was able to fix easily. This one's got me stumped. I
have the fol
On Mon, Mar 14, 2011 at 11:39 PM, Adam Richardson wrote:
>>
>> This one's got me stumped. I
>> have the following line in a script:
>>
>> $this->bc = ($this->network | (~$this->netmask)) & 4294967295;
>>
>> $this->network and $this->netmask should both be of type long, and I
>> should wind up wit
On Tue, Mar 15, 2011 at 8:07 AM, Andy McKenzie wrote:
> On Mon, Mar 14, 2011 at 11:39 PM, Adam Richardson
> wrote:
>>>
>>> This one's got me stumped. I
>>> have the following line in a script:
>>>
>>> $this->bc = ($this->network
> Now: I did a little more looking around this morning, and it looks
> like I may well run into problems here given that I'm moving from a
> 32-bit architecture to a 64-bit architecture. Bitwise math is still
> fairly obscure to me, so it's likely that I'm overlooking something
> obvious, but may
this case. (If you're
confused by the numbers I used, check here:
http://www.yolinux.com/TUTORIALS/LinuxTutorialManagingGroups.html)
I hope that helps!
-Andy
On Mon, Mar 21, 2011 at 1:58 PM, Al wrote:
> I understand dir perms pretty well; but, have a question I can't readi
On Thu, Apr 7, 2011 at 12:15 AM, Kirk Bailey wrote:
> If I only had 1 book on php, what would it be?
>
> --
> end
>
> Very Truly yours,
> - Kirk Bailey,
> Largo Florida
>
My most common reference is, as other people have said, www.php.net.
But when I reach for a
On Fri, Jun 24, 2011 at 1:30 PM, wrote:
> Chrome. Enough said. Now, if we can only convince the rest of the world ...
>
Ugh. I can't stand Chrome. Of course, I gave up on Firefox years ago
and went back to Opera, so it doesn't bother me when Firefox does
something weird lik
#x27;t quite supplanted it as a
concept book, but is my go-to for "here's a way to solve this
particular problem using a new version of PHP" book.
-Andy
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Put simply, I like to learn the basics from books
rather than web pages.
-Andy
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
s about in
this context proved unsuccessfull
I thank you for your time and bid you good day
With kind regards
Andy Pieters
Straight-A-Software
A young idealistic programmer
--
Registered Linux User Number 379093
--
Feel free to check out these few
php utilities that I released under the GP
charcters after the > are gone.
With kind regards
Andy Pieters
Straight-A-Software
On Monday 04 April 2005 16:57, Neo Theone wrote:
> Until some time I could make a new empty line in mysql with this query:
> INSERT INTO `".$_SESSION['type']."`() VALUES ()
> where
On Monday 04 April 2005 18:45, Andy Pieters wrote:
> After the ?> must be NO character, not even a CR or LF
> Best way to check this is to put your cursor right next to the > and press
> the left key. If you r cursor moves then press left followed by del. Keep
> pressing the
To test,
cstl.php?dk=somethinghere
and try to print that?
Maybe your browser is configured to NOT print images (or bakckground) ?
Maybe your printer is textonly (just kidding)
Tada
Andy
On Tuesday 05 April 2005 23:26, DuSTiN KRySaK wrote:
> Hi there - I had my first crack at creatin
the rpms, you're better of compiling each yourself
(exluding Linux). For example, the precompiled rpms from Fedora (read Red
Hat) do not include GD on php.
Required items:
An internet connection
A good deal of time
Much more patience
Much commitment.
Some reading glasses
Andy
--
Register
actors are applied AFTER login verification. (The login is
verified with a cookie that holds a unique id I sent when the user loged on.
This is validated against a database. The unique id's live span is extended
after each request)
Thank you for your input already
Andy
--
Registered
-- Forwarded Message --
Subject:
Date: Wednesday 06 April 2005 07:30
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Thank you for contacting ActiveWire Inc!
This is an automated response. Due to the enormous amount of
SPAM (200+) emails per day, we have blocked this email add
break;
case 6: somestuff;
break;
etc
default: somestuff;
break;
}
You can find answers to these and many other questions on www.php.net
Look at the documentation section
Andy
--
Registered Linux User Number 379093
--
Feel free to check out these few
php utilities that I
Thank you all for your input.
Andy
--
Registered Linux User Number 379093
--
Feel free to check out these few
php utilities that I released under the GPL2 and
that are meant for use with a php cli binary:
http://www.vlaamse-kern.com/sas/
--
--
PHP General Mailing List (http://www.php.net
start of the file.
Andy
On Wednesday 06 April 2005 12:07, Robert S wrote:
> I am running a Woody server. I'd like to run php scripts from the command
> line, but I note that the php/php4 executable is not in my PATH.
>
> I have php4, version 4.1.2-7.0.1 installed.
>
> Is
HI
Suggestion 1: configure apache to parse files with php extension thru php
binary
Suggestion 2: place a shebang on the start of the php file
like
#! /usr/bin/php
Suggestion 3: rewrite your script and have the php script call the perl ;-)
Tada
Andy
On Friday 08 April 2005 07
Here is that faq url
http://www.php.net/manual/en/faq.installation.php#faq.installation.apache2
Cheers
Andy
--
Registered Linux User Number 379093
--
Feel free to check out these few
php utilities that I released under the GPL2 and
that are meant for use with a php cli binary:
http
expired? No -> User still loged in
No Cookie
Do Login
This way, you automatically log out users that are logging in on another
computer.
Kind regards
Andy
--
Registered Linux User Number 379093
--
Feel free to check out these few
php utilities that I released und
throughout
> the business day.
>
Off course I know of tons and tons of sites out there that have Linux +
Apache2 + MySql + Php > 4
And the're running just fine, day after day after day.
It is a calculated risk we made and haven't regreted it since.
Andy
--
Registered Linux User
your harddisk wiped out by an
intruder. You're asking for it.
Try running 'last' and see if your system hasn't been compromised already
Andy
--
Registered Linux User Number 379093
-- ---BEGIN GEEK CODE BLOCK-
Version: 3.12
GAT/O/CM d- s:+ a- C UL P+ L+++ E--- W+++
he
back button, there is a white page that sais "Your session has expired".
It should be noticed that I do not use sessions.
It should be like POST-once, after that there should be no more remnants of
it.
With kind regards
Andy
--
Registered Linux User Number 379093
--
one
Will point you in the right direction.
Andy
--
Registered Linux User Number 379093
-- ---BEGIN GEEK CODE BLOCK-
Version: 3.12
GAT/O/CM d- s:+ a- C UL P+ L+++ E--- W+++ N++ o+ K w--- O+++ M- V
PS+ PE++ Y+ PGP+++ t+ 5-- X R !tv b DI+++ D++ G e-- h+ r--- y+
-- ---END GEEK CODE BLOCK-
escape_string($_POST['Phonenumber']);
etc
There are some issues when magic quotes are turned on but you can implement a
hack that corrects any consuequences of that (stripslashes)
Andy
--
Registered Linux User Number 379093
-- --BEGIN GEEK CODE BLOCK-
Version: 3.1
GAT/O/&g
t($mydialog);
Off course the limitations are second to none!
I have released some PHP CLI scripts under the terms of GPL2 and they all use
the same basic simple engine for argument processing. It may not suit your
needs, but you're welcome to study it to get you started.
With kind regards
Y, it will in its
turn call function X (which is not overloaded in class B) and function X
calls the function GUID from which class? Class A or Class B?
Kind regards
Andy
--
Registered Linux User Number 379093
-- --BEGIN GEEK CODE BLOCK-
Version: 3.1
GAT/O/>E$ d-(---)>+ s:
On Wednesday 20 April 2005 23:36, Matthew Weier O'Phinney wrote:
>
> Since Class B overrides method guid, function x will call the method
> from Class B.
Thank you.
Andy
--
Registered Linux User Number 379093
-- --BEGIN GEEK CODE BLOCK-
Version: 3.1
GAT/O/>E$ d-(---)>
ort back here and ask us to analyze your code for
pointers on how to make it more secure.
Good luck!
Andy
ps: Google is your friend!
http://www.google.com/search?num=100&q=%22read+pdf%22+%2Bphp&btnG=Search
Also search on PEAR
http://pear.php.net
--
Registered Linux User Number 379093
Hi
First, execute your query
unset($fail);
$res=mysql_query($sql,$dbhandle) or $fail=true;
if( (isset($fail)) || (!(is_resource($res)) )
echo "There was a problem with the execution of the query";
if(mysql_num_rows($res)==0)
echo "The query resulted in ZERO records";
#now that's out of the way
On Thursday 21 April 2005 17:04, [EMAIL PROTECTED] wrote:
> Hmm... another project to add to my list of
> projects that I'll never finish. haha
Glad to know I'm not the only one. ;-)
Andy
--
Registered Linux User Number 379093
-- --BEGIN GEEK CODE BLOCK-
Version:
elect between which ages he wants
> the records shown...
> eg: if he types 23,25 then I should get all results where
> age >=23 and age <=25
>
SELECT * FROM
`table`
WHERE `age` BETWEEN 25 AND 26;
You might want to sanitize your input first.
Like using intval() on
be table" so we can see how your table looks like.
Andy
--
Registered Linux User Number 379093
-- --BEGIN GEEK CODE BLOCK-
Version: 3.1
GAT/O/>E$ d-(---)>+ s:(+)>: a--(-)>? C$(+++) UL>$ P-(+)>++
L+++>$ E---(-)@ W+++>+++$ !N@ o? !K? W--(---) !O !M- V-
his scheme, the browser can cache the different bits of the script, and
you don't need to send all of the script on each page hit.
Kind regards
Andy
--
Registered Linux User Number 379093
-- --BEGIN GEEK CODE BLOCK-
Version: 3.1
GAT/O/>E$ d-(---)>+ s:(+)>: a--(-)>? C$(+++)
On Wednesday 04 May 2005 22:47, Amir Mohammad Saied wrote:
Bonjour Amir
C'est liste est en Anglais.
Cependant, la réponse:
Il est necessaire de 'eschapper' le character '\'
Au lieux d'ecrire '\', il faut ecrire '\\'
Donc si le chemin est
\\srvdfs00\partages\0-50\M7\05_APValidation\Forfa
y.
* in mysql commands, it is better to explicitally specify the resource link
identifier you obtained when you opened the connection
($link=mysql_connect(...))
* if you include a critical script, better use 'require' because it will cause
php to stop parsing the page if it cannot find
XXX
" . $i++ . "";
ob_flush();
sleep(1);
}
?>
Kind regards
Andy
--
Registered Linux User Number 379093
-- --BEGIN GEEK CODE BLOCK-
Version: 3.1
GAT/O/>E$ d-(---)>+ s:(+)>: a--(-)>? C$(+++) UL>$ P-(+)>++
L+++>$ E---(-)@ W+++&
es.
$myvar='this is $$$ test';
Andy
--
Registered Linux User Number 379093
-- --BEGIN GEEK CODE BLOCK-
Version: 3.1
GAT/O/>E$ d-(---)>+ s:(+)>: a--(-)>? C$(+++) UL>$ P-(+)>++
L+++>$ E---(-)@ W+++>+++$ !N@ o? !K? W--(---) !O !M- V-- PS++(+++)
PE--(
401 - 500 of 780 matches
Mail list logo