"read" is a reserved word in mysql
(http://dev.mysql.com/doc/refman/5.0/en/reserved-words.html). You have
to double-quote reserved words:
mysql_query("SELECT * FROM mailbox WHERE \"read\"=''");
Graham Cossey wrote:
On 12/29/05, Jay Blanchard <[EMAIL PROTECTED]> wrote:
[snip]
could you pl
On 12/29/05, Jay Blanchard <[EMAIL PROTECTED]> wrote:
> [snip]
> could you please tell me what is the problem with this query
> mysql_query("SELECT * FROM mailbox WHERE read=''");
>
> i always get this warning:
> Warning: mysql_num_rows(): supplied argument is not a valid MySQL
> result res
which is not part of the standards. It's accepted by most browsers
because a lot of sites use it (due to the fact that IE is so popular),
but it's *NOT* standard. So, don't do it! Dan showed the correct way.
- tul
[EMAIL PROTECTED] wrote:
Add the "value" property: document.forms['query_form']
Hello
I have to migrate a PHP-application to a new Linux-Box. Both the old and
the new system are Linux and PHP 5.1.1. (the old one has a Pentium 4,
the new one two Xeon CPUs). I have a problem using the
Crypt_Xtea-Extension. I narrowed it down to the following right-shift
operation:
(-32810
I have a web application I've just completed, and I want to present it as
part of my online portfolio, most of which hi-lights my work as a front end
developer. My question is this: How do I go about showing off all of the
hard-work I've done on the back-end? Do I simply describe the structure o
Hey, Folks:
I have a web application I've just completed, and I want to present
it as part of my online portfolio, most of which hi-lights my work as
a front end developer. My question is this: How do I go about showing
off all of the hard-work I've done on the back-end? Do I simply
descr
>
> Thanks for the responses guys, but what i'm saying is i would
> like to return
> all the variable names i have in a string,
> $String="Blah Blah Blah $VarName Blah Blah Blah";
> $Vars=myspecialfunction($Varname);
> echo ($Vars);
>
> that code would produce $Varname, if there were more
> var
thanks so much.
i didn't realize but I did strip out all the php. My bad.
-jonathan
On Dec 29, 2005, at 1:48 PM, Dan Uyemura wrote:
Try:
I didn't test this, but I think it'll work...
-Original Message-
From: jonathan [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 29, 2005 1:45
[snip]
Thanks for the responses guys, but what i'm saying is i would like to return
all the variable names i have in a string,
$String="Blah Blah Blah $VarName Blah Blah Blah";
$Vars=myspecialfunction($Varname);
echo ($Vars);
that code would produce $Varname, if there were more variables it would
Add the "value" property: document.forms['query_form'].elements['q']
.value.
Kirk
jonathan <[EMAIL PROTECTED]> wrote on 12/29/2005 02:45:23 PM:
>
>
>
>
>
> When the user clicks on the button, I want the text that is in input
> elment 'q' to be sent to the Javascript function drawImg but wh
jonathan wrote:
I know that this is more of a Javascript / DOM question but I cannot
for the life of me figure this out:
I have this form:
When the user clicks on the button, I want the text that is in input
elment 'q' to be sent to the Javascript function drawImg but when I
debug i
Try:
I didn't test this, but I think it'll work...
-Original Message-
From: jonathan [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 29, 2005 1:45 PM
To: php-general@lists.php.net
Subject: [PHP] php / JS / DOM question
I know that this is more of a Javascript / DOM question but I c
PHP Superman wrote:
Hold on, I heard that you can't run the mysql and mysqli php
extensions , try removing the mysql extension if my other advice
doesen't work
Please reply to the list.
You can compile php with both.
From the manual :
http://us2.php.net/mysqli
If you would like to instal
I know that this is more of a Javascript / DOM question but I cannot
for the life of me figure this out:
I have this form:
When the user clicks on the button, I want the text that is in input
elment 'q' to be sent to the Javascript function drawImg but when I
debug it via alerts, it
Thanks for the responses guys, but what i'm saying is i would like to return
all the variable names i have in a string,
$String="Blah Blah Blah $VarName Blah Blah Blah";
$Vars=myspecialfunction($Varname);
echo ($Vars);
that code would produce $Varname, if there were more variables it would also
re
PHP Superman wrote:*
What OS are you using? I think that you entered the wrong filename. for
windows i use php_mysqli.dll . Somewhere in php.ini there is a list of
extensions you can use, uncomment the php_mysqli.dll , copy php_mysqli.dll
to the php install directory and change the php.ini extens
What OS are you using? I think that you entered the wrong filename. for
windows i use php_mysqli.dll . Somewhere in php.ini there is a list of
extensions you can use, uncomment the php_mysqli.dll , copy php_mysqli.dll
to the php install directory and change the php.ini extension setting to
your php
Has anyone encountered this? I am composing an HTML email with
PHPMailer, and for some reason PHPMailer is inserted spaces
periodically, which breaks the formatting. I've looked through the
docs, but can only find a setting for Word Wrap (which is set to 0).
...Rene
--
PHP General Mailing
On 12/29/05, Rory Browne <[EMAIL PROTECTED]> wrote:
> > Please don't make comments like removing older versions of PHP from the
> > download page. We have delivered solutions to clients that run on PHP4.
> > Those clients need the ability to conveniently download PHP4 in order to run
> > our code.
Thanks I deleted the new.
I was following an example in the book for that.
Now I get the error:
Call to undefined function mysqli_connect() in
/var/www/cgi-bin/db_connect.php on line 4,
I added extenstion=mysqli.so to my php.ini
Erik
- Original Message -
From: "PHP Superman" <[EMA
On 12/29/05, Jochem Maas <[EMAIL PROTECTED]> wrote:
> dev lamp wrote:
> > Hi
> >
> > I am unable to call perl code from PHP, since the extension does not
> > get loaded !
> >
> > Scenario 1:
> > use dl('perl.so'); in the php code and invoke the script from the command
> > line
> > The script works
Hi -
It sounds like you're trying to implement something similar to "google
suggest" which uses ajax to allow a user to navigate through a large
list of entries. The "google suggest" method does use a lot of calls
to the database but its asynchronous which eliminates cumbersome page
loads.
http:/
anyone here work with Interfaces? I do and I like them alot;
I recently ran into a situation where it would be nice to be able to specify
that a given interface is only allowed to be implemented by a certain
class (and all subclasses thereof) - Anyone have an idea as to how
to implement such a re
dev lamp wrote:
Hi
I am unable to call perl code from PHP, since the extension does not
get loaded !
Scenario 1:
use dl('perl.so'); in the php code and invoke the script from the command line
The script works fine and the perl code gets executed as well.
so the extension is not being loaded a
Hi
I am unable to call perl code from PHP, since the extension does not
get loaded !
Scenario 1:
use dl('perl.so'); in the php code and invoke the script from the command line
The script works fine and the perl code gets executed as well.
Scenario 2:
the perl extension does not get loaded and th
Of course, fflusch($log); should be fflush($log);
I just found out that $xmlResponse really is empty.
However, connection_status() returns 0, so I assume that the script is
not interrupted by a timeout.
Why does xmlrpc_server_call_method($xmlServer, $xmlRequest, NULL) return
nothing if the ca
Curt Zirzow wrote:
On Wed, Dec 28, 2005 at 11:58:02AM -0500, John Nichel wrote:
M. Sokolewicz wrote:
John Nichel wrote:
M. Sokolewicz wrote:
Bagus Nugroho wrote:
Hi All,
Is mysqli module enable by default on php 4 as mysql module.
no
If not enable by default, where I can get t
Hi all,
I'm using Apache/1.3.33 (Unix), PHP/5.0.3, mod_ssl/2.8.22, OpenSSL/0.9.6a.
I wrote a dummy script that is called by a Java program via XML-RPC,
waits for some time and replies the start and end times.
If the script sleeps for up to 5 minutes, it works perfectly fine.
However, I my
[snip]
could you please tell me what is the problem with this query
mysql_query("SELECT * FROM mailbox WHERE read=''");
i always get this warning:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL
result resource in index.php on line 24
[/snip]
THere is no apparent problem
hi there,
could you please tell me what is the problem with this query
mysql_query("SELECT * FROM mailbox WHERE read=''");
i always get this warning:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL
result resource in index.php on line 24
--
PHP General Mailing List (http
Hi
I am unable to call perl code from PHP, since the extension does not
get loaded !
Scenario 1:
use dl('perl.so'); in the php code and invoke the script from the command line
The script works fine and the perl code gets executed as well.
Scenario 2:
the perl extension does not get loaded and th
[EMAIL PROTECTED] wrote:
> Is there any easy php script to run to view an xml file such as new
> headlines like so: http://news.google.com/?output=rss or can anyone point
> me in the right direction for good online tutorials or books.
>
You can start here:
http://magpierss.sourceforge.net/
Magp
Anas Mughal wrote:
> Here is a PHP5 hosting company:
> http://www.a2hosting.com/
>
Aaargh! I wouldn't suggest that one, I've had a really really bad
experience with them (they shut down my site *w/o any notice* because
they said I was using too much of their resources - while this was not
true).
PHP Superman wrote:
Hey everyone, is there a way to return all the variables from a string into
an array, for example
$Var1="Yo";
$Var2="Man";
$SQL="SELECT * FROM tblname WHERE 4=$Var1 AND WHERE 3=$Var2";
$AllVars=MySpecialFunction($SQL);
your function MySpecialFunction() will recieve the follo
Christian Ista wrote:
From: Jay Blanchard [mailto:[EMAIL PROTECTED]
Header is a good solution, and is the only one available in PHP for
redirects. It requires that you do not send anything else out to the
browsers before sending the redirect, which is what is causing your error.
You can always u
Thanks,
Don't know why I couln't find the install page myself. Got it working
without any problems.
Alex
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
36 matches
Mail list logo