I don't really get it. This is a select statement working with the datas of
one table.
A field of a record (namely "page" here) can only take one value, so it is
totally nonsense to give XOR for that field.
I think you want to select two different recordsets: one with page 1 and 3,
and another
Usually, when I have to redirect the user AFTER headers has been sent (like
showing an error message), I write this:
location=page_to_send.html
But this will redirect the user at once. If you want the user to read the
page, you should do something in Javascript with setTimeout(func,timeout)
f
Hi,
I downloaded PHP 5.3.0, and since then I can't use fbird_connect. When I
inspected the installed files, I realized that php_interbase.dll is not there!
Where is it? Or where can I get it?
SanTa
Hi,
I have a mysql database, which the users can insert comments. As the users can
be from different countries, with different character encoding, the mysql table
can contain various special characters.
How can I be sure to display these comments properly? I've found the
mb_convert_encoding, a
Hi,
It isn't really a programming question, but rather a structural.
Let's suppose I have a PHP page, which is built by other PHP files' includes.
Which is the better approach:
in a switch-like statement I include the required PHP files, which contain
all the functions, and the HTML code to p
The classic method is:
1.) read the whole file into an array of strings.
2.) search for the last line
3.) insert a string BEFORE the last line.
4.) write back the whole file to the same name
Classic file handling does allow you to append to the end of a file, or
recreate as a whole.
Usually thes
t;'Sándor Tamás (HostWare Kft.)'" ;
"'PHP-General List'"
Sent: Friday, April 24, 2009 3:03 PM
Subject: RE: [PHP] Self-Process php forms or not?
So, on your opinion, we can call that method, on some circumstances, a good
practice?
What about the moto: "le
I think the main advantage is that if something goes wrong processing the
datas, you can show the form again without redirecting again.
And if you have to change the behavior of the page, you have to change only
one file instead of two.
SanTa
- Original Message -
From: "MEM"
To: "
This isn't PHP but mysql question.
You didn't mention that the table itslef is created or not. If not, then it
is probably a mysql error,
maybe your installation of mysql doesn't support INNODB.
SanTa
- Original Message -
From: "abdulazeez alugo"
To:
Sent: Tuesday, April 07, 2009
uot;
To: "Virgilio Quilario"
Cc: "Sándor Tamás (HostWare Kft.)" ;
Sent: Wednesday, March 11, 2009 1:55 PM
Subject: Re: [PHP] Silly question - include vs. eval
On Wed, 2009-03-11 at 20:49 +0800, Virgilio Quilario wrote:
>> Hi,
>>
>> I wo
Hi,
I wondering what is the difference between include(), and eval('
?>'.file_get_content().'
Did I miss something, or you really left the execution of the last $sql?
After you put the 'INSERT INTO...' string in $sql, you have to mysql_query
it, or you won't get any result.
SanTa
- Original Message -
From: "Chris Carter"
To:
Sent: Tuesday, January 20, 2009 3:34 PM
Subject
Hi,
My problem is that how I can know that a valid e-mail address is exists on the
mail server?
Is there some PHP function, or protocol, or something?
Thanks,
SanTa
#x27;t have any access to this
machine, only FTP and of course, web.
The PHP installation doesn't even let me to do exec_command().
SanTa
- Original Message -
From: "Lester Caine"
To:
Sent: Wednesday, January 07, 2009 9:07 AM
Subject: Re: [PHP] Firebird Backup
Sán
Hi,
I don't know if it's Firebird or PHP question.
I want to use remote administration on one of my pages, at least do a backup
for a Firebird database. Because the database file is located on a different
intranet machine, I have to use service manager to do backup.
So I tried:
$svc_mgr = ib
Yes, the error is here.
You get the record count with a mysql_fetch_assoc(), which reads the first
record, and then step onto the next one. So the first record's datas will
disappear at the next mysql_fetch_assoc() line (which can be found in your
while loop).
You should NOT fetch the first
How do you know the record count for the query?
SanTa
- Original Message -
From: "Gary Maddock-Greene"
To:
Sent: Monday, December 22, 2008 3:02 PM
Subject: [PHP] First record not diplaying
Hi, I seem to have a bug in my code but can't see why. My first record
does not display when
... and in that way, you can create the name of the constant as you please:
$VAR_IMG = 'HOME';
define('IMG_HOME', 'pic.jpg');
echo(constant('IMG_'.$VAR_IMG));
SanTa
- Original Message -
From: "clive" <[EMAIL PROTECTED]>
To: "PHP LIST"
Sent: Thursday, December 11, 2008 9:18 AM
Subject
In fact, if I have to redirect, and I am not sure about headers are sent or
not, I usually do:
print('window.location=somewhere.php');
That way I can always do the redirection.
SanTa
- Original Message -
From: "Andrew Ballard" <[EMAIL PROTECTED]>
To: "David Stoltz" <[EMAIL PROTECTED
ks!
-Original Message-
From: Sándor Tamás (HostWare Kft.) [mailto:[EMAIL PROTECTED]
Sent: Friday, December 05, 2008 6:59 AM
To: php-general@lists.php.net
Subject: Re: [PHP] Help with IF ELSE
You should check if php.ini has display_error off. This can prevent all
error message to be shown.
San
For your original problem:
If you're unsure if you've sent something to the browser BEFORE the
header(), you should check it with header_sent(). This function returns true
if something has been sent to the browser.
SanTa
- Original Message -
From: "David Stoltz" <[EMAIL PROTECTED]>
You should check if php.ini has display_error off. This can prevent all
error message to be shown.
SanTa
- Original Message -
From: "David Stoltz" <[EMAIL PROTECTED]>
To: "Richard Heyes" <[EMAIL PROTECTED]>
Cc:
Sent: Friday, December 05, 2008 12:42 PM
Subject: RE: [PHP] Help with IF
I don't think, because it happens on different machines, with different users.
(one of them is a fresh install)
SanTa
- Original Message -
From: Ramesh Thiruchelvam
To: Sándor Tamás (HostWare Kft. )
Sent: Wednesday, December 03, 2008 12:05 PM
Subject: Re: [PHP] Pi
Hi,
I have a strange error / misfunction with PHP header and IE7.
I render a JPG from a database BLOB to show it on a page.
In Firefox, when the user clicks on the image, and selects "Save image as... ",
(s)he can download it in JPG format.
But when a user in IE7 does the same, (s)he only can ge
Through PHP you can access the filesystem, so the folder containing your
documents doesn't even have to be on the website.
I would do this way:
Click here
And in the PHP file:
file_get_contents(DOCFOLDER . $_GET['filename'])
or something like this.
SanTa
- Original Message -
From: "
Hi,
I have these lines to get parameters' name to $regs, but I always get the
first one twice.
What do I do wrong?
$sql = 'select * from hotsys where ALREND=:alrend and SYSKOD=:syskod';
eregi('(:[a-z,A-Z,0-9]+)', $sql, $regs);
Thanks,
SanTa
--
PHP General Mailing List (http://www.php.ne
Hi,
I wrote a little registration routine, which will send a confirmation letter to
the user with a random number in the message body (my site is on a host, so I
can't write in the subject, and ask the user to reply), which can be clicked
then, and my site will finish the registration. My big p
"A form" of the web existing long before that depending on your
definition of the web. To me it's a way for people to share
information. That would cover the BBS world which pre-dates LANs by
some distance.
Spider webs have existed for many a year...
Yeah, but when was the last time you sa
It depends. If the project built up of slightly different modules, putting
the coders on a big, white table seems to be a good idea. But if the modules
are completely different, you should separate them, so each of them can be
focused on their own subject. In this case, you have to have some peo
Thanks, but unfortunately my ISP does not implemented PEAR, and uses PHP
4.3.10.
- Original Message -
From: <[EMAIL PROTECTED]>
To: ""Sándor Tamás (HostWare Kft.)"" <[EMAIL PROTECTED]>
Cc:
Sent: Friday, December 07, 2007 12:07 PM
Subject: Re: [PHP
Hi,
I don't know if it is a PHP question, but I give it a try.
I've been trying this subject for a while, but with less success.
Now I can create mail bodies like this:
Content-Type: multipart/alternative;
boundary="-=Part233475926a47beb07.46978329"
---=Part233475926a47beb07.46978329
Conte
31 matches
Mail list logo