Hi there, I am currently using the following code to display content
based on the URL parameters
HTML CONTENT
else {
?>
OTHER HTML CONTENT
?>
now what I need to do is modify the code so that the script che
Hello to everyone.
I want to clean a field from my Data Base in MySQL from a button. But I don't know how
i can create a button in PHP, the funtion of button is TRUNCATE TABLE(Table).
I have a form in HTML but hi don't work because when I press the button he don't do
anything, but when i press
same way, if i understand your questoin...
if your url looks like this
sometestpage.php?mov=something&year=1999
- the queries are seperated by the '&' char..
then
$_REQUEST will have both mov and year elements in it
so just as $_REQUEST['mov'] worked, so would $_REQUEST['year']
Jason
Dusti
Is there an easy way to strip out everything but letters and numbers
from a string? I tried searching the archives and didn't come up with
much. Thanks.
Jeff
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
the reason it doesnt work, is becuase you have muddied the requests for
the client and the server. PHP is completely server side, so putting a
php function name in onclick, which will execute client side code doesnt
work.
the solution would be to have you button reload the page, or submit to
an
Jeff Oien wrote:
Is there an easy way to strip out everything but letters and numbers
from a string? I tried searching the archives and didn't come up with
much. Thanks.
Jeff
$string = preg_replace('/[^a-z0-9]/i', '', $string);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, vi
Jeff Oien wrote:
Is there an easy way to strip out everything but letters and numbers
from a string? I tried searching the archives and didn't come up with
much. Thanks.
$fixed = preg_replace('/[^a-zA-Z0-9]/','',$text);
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E
i think with perl regs.. as preg_replace is, you can just use a shortcut
command..
\w is any word char,
\d is any digit..
im not sure it will improve this solution any, but its something else :P
Jason
Marek Kilimajer <[EMAIL PROTECTED]> wrote:
>
> Jeff Oien wrote:
> > Is there an easy way to
"Jason Wong" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> So now are you fully convinced it's your firewall that's the root of your
> problem?
No, not really. At the moment I am assuming it is a bug in something
somewhere. The versions of php and MySQL that I am using are not
"Greg Donald" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Yeah, seeing how we don't have physical access to your system that's
> all you will get is guesses and suggestions. If you want definative
> answers, hire a consultant, bring them to your pc, and pay them to fix
> it.
"Jason Davidson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>>
> Now that you have figured out, that it is possible its your firewall,
> which, many, and i think you claimed before was impossible, what
> exactly makes you sure i said anything invalid.
It is my understanding that
Hello. I am writing some code, but though everything seems ok, I get the
same error:
"parse error, unexpected T_VARIABLE on line 23" .
Here is the code:
var $connection;
var $db;
var $query;
var $record;
var $tlist;
}
Function fl_SQL($server, $user, $pass, $db = NULL) {
$thi
Hi,
You don't have a ; at the end of the line. You have $this->db =
$db and you should have $db;.
-Dan Joseph
-Original Message-
From: Yusuf [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 15, 2004 11:19 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Coding Blues - Parse Error
I do that a lot using Microsoft Access. I just finished on a project where I
had to eliminate duplicates from each of three or more queries, a couple of
which have three keys. However I am not much more experienced han you are;
Microsoft Access generates SQL for us so I am not sure what the SQL
me thinks it's time to look very closely at http://www.postgresql.org
Not just you sam, all of us.
--
Raditha Dissanayake.
http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP apple
Dan Joseph wrote:
You don't have a ; at the end of the line. You have $this->db =
$db and you should have $db;.
Also, this:
> Function doquery($query, $db = $this->db){
is causing your error. The default value must be a constant expression,
not a variable, function, method, etc...
--
---John
Anyone know how I can split a number into individual digits?
Thanks,
Michael
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Michael Mao wrote:
Anyone know how I can split a number into individual digits?
http://us2.php.net/manual/en/function.preg-split.php
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals – www.phparch.com
--
PHP General Mail
Thanks John.
Found what I'm looking for:
Function str_split()
On Wed, 15 Sep 2004 23:48:33 -0400, John Holmes <[EMAIL PROTECTED]>
wrote:
Michael Mao wrote:
Anyone know how I can split a number into individual digits?
http://us2.php.net/manual/en/function.preg-split.php
--
PHP General Mailing Lis
Michael Mao wrote:
Anyone know how I can split a number into individual digits?
If you want to be funky, you can try
Greg
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At one time, I thought that I read about a problem with PHP4 sessions involving the
recognitioni of the session expiration in the session engine.
The problem was that the session variables were read into the scipt BEFORE the
expiration time was checked. Anyone remember this? So, I'm asking if the
On Thu, 16 Sep 2004 04:51, Andrew W wrote:
>
> On 13 Sep 2004, at 19:11, Ed Lazor wrote:
>
>> Why use SSI? PHP's include directive allows you to bring separate
>> pages
>> together for creating an overall page. You can include .html files.
>> Also,
>> PHP programming isn't *required* in a file
--- Dennis Gearon <[EMAIL PROTECTED]> wrote:
> At one time, I thought that I read about a problem with PHP4
> sessions involving the recognitioni of the session expiration in
> the session engine.
>
> The problem was that the session variables were read into the
> scipt BEFORE the expiration time
On Thu, 16 Sep 2004 04:14, Trevor Gryffyn wrote:
> It appears to be a "user not found" type error..'desintione non
> existente' looks a lot like "destination doesn't exist". The guys that
> manage the PHP-General list need to be made aware so they can remove the
> offending email address. Th
Is there a PHP syntax that can convert a $string result to all UPPER CASE?
--
Louie Miranda
http://www.axishift.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello Yusuf,
> Class fl_SQL
> {
> var $server;
> var $user;
> var $pass;
>
> var $connection;
> var $db;
>
> var $query;
> var $record;
> var $tlist;
> }
The bracket is wrong. Your class only has properties but no methods.
> Function fl_SQL($server, $user, $pass, $db = NULL) {
> $
On Thursday 16 September 2004 15:36, Louie Miranda wrote:
> Is there a PHP syntax that can convert a $string result to
> all UPPER CASE?
php.net -> manual -> strings -> strtoupper ?
--
- E -
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.ph
Hello PHP Users,
I have files (that protected from direct download) and I put it
outside public_html/ directory (outside web server directory).
and the people from outside could access the file by typing:
www.myweb.com/download.php?filename=xzy.pdf
can someone give me hint how to do this ?
than
Hi,
I am installing php-4.3.6 on Fedora,
When I am compiling I receive the following error :
[EMAIL PROTECTED] php-4.3.6]# make install
Installing PHP SAPI module: apache2handler
/www/build/instdso.sh SH_LIBTOOL='/www/build/libtool' libphp4.la
/www/modules
/www/buil
101 - 129 of 129 matches
Mail list logo