Torsten Roehr wrote:
"Burhan Khalid" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Greetings everyone :
Having a hard time with this one. I have a multi-dim array
$foo[$x][$y]['key'], where $x and $y are numeric. Here is some sample data
[ snipped ]
I need to filter the results
Okay, what you can do is try use an .htaccess file (providing your host
allows them) to make the PHP engine parse .html files.
Create a file titled ".htaccess" with the following contents:
AddType application/x-httpd-php .php .php3 .html .htm
Upload it to the same folder that the .html file is in
In the last pair of examples where it fails, you know you are first
assigning the value of $Data['ID'] to the $_SESSION['CategoryID'] and the
over-writing that value with the value of intval($Data['ID'])? Why are you
assigning $Data['ID'] to it if you are going to overwrite it? If those
other tes
Can someone tell me where to start?
I was able to compile a DSO in BSD/OS 4.3.1 . I try to use the same setup
in BSD/OS 5.1 and not even a .so would show up. HELP!!
--
Member - Liberal International On 11 Sept 2001 the WORLD was violated.
This is [EMAIL PROTECTED] Ici [EMAIL PROTECTED]
Hi,
Monday, April 19, 2004, 8:46:02 AM, you wrote:
KB> Dear list,
KB> I am sorry for the second posting, but this is going
KB> to drive me to drink something other than lattes!
KB> I have one page, index.php. when it calls mod_sub, a
KB> directory type of page is printed. Here I am trying
KB>
php-general Digest 18 Apr 2004 23:57:03 - Issue 2713
Topics (messages 183761 through 183784):
Re: Bookmark server
183761 by: Justin French
183763 by: Chris W
183764 by: Marek Kilimajer
Array Sorting Headaches
183762 by: Burhan Khalid
183768 by: Torste
-
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
As I have no idea what those var contain ..
what does a print_r() of it give you?
print it right when you assign it to the session var to check if
it actually contains a value.
like:
print_r($Data['ID']);
and maybe even
print_r(intval($Data['ID']));
I suspect that this $Data['ID'] is empty
Dear list,
I am sorry for the second posting, but this is going
to drive me to drink something other than lattes!
I have one page, index.php. when it calls mod_sub, a
directory type of page is printed. Here I am trying
to set a session var of the most recently selected
category to allow the use
A while ago I've been looking at some piece of code of the tikiwiki
project to see how they did some of their magic...
Basically they run through the whole text and if they found something
that was translated they made a hash and replaced the actual text with
it and stored the link in an assoc arr
I can't figure out how to do this.
I've four different methods for changing a piece of text into a hyperlink.
the text:
[link=www.hotmail.com]hotmail[/link]
[link=http://www.hotmail.com]hotmail[/link] www.hotmail.com
http://www.hotmail.com
what it should become (offcourse in HTML it will change
Thank you.
TR
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thank you.
TR
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
From what I've seen you didn't actually transmit the first query to
the database.
You assigned the query string to the variable $sql ... but didn't
submit with:
mysql_query($sql);
hth
richard
Sunday, April 18, 2004, 7:41:47 PM, thus was written:
> A basic ht counter script from Meloni's book on m
Execute $sql :)
-- red
-Ursprüngliche Nachricht-
Von: Anthony Ritter [mailto:[EMAIL PROTECTED]
Gesendet: Sunday, April 18, 2004 7:42 PM
An: [EMAIL PROTECTED]
Betreff: [PHP] example from meloni not working
A basic ht counter script from Meloni's book on mysql (page 318).
Not working fo
A basic ht counter script from Meloni's book on mysql (page 318).
Not working for me.
Every time I load the page the counter stays at zero.
Thanks for help.
TR
..
You have been counted.
The current number is
.
// mysql SCHEMA
CREATE TABLE test_track(
id INT NOT N
Do yo have have start_session() on every page to before you can read session variables?
>>Dear list,
>>I am trying to set a simple session variable on PageA.
>>
>>$_SESSION['CategoryID'] = intval($Data['ID']);
>>
>>if I print after setting the value on PageA, I will
>>get the expected ID number.
>
Richard Davey wrote:
Does mysql_real_escape_string (or mysql_escape_string) do anything
extra that addslashes() doesn't? In the examples in the manual it is
just used to escape the ' character, but that is exactly what
addslashes() will do anyway.
real_escape_string() takes the current character s
> Why cannot I embed php in html files?
I'm relatively new to PHP, but I am fairly sure that it is
possible to have PHP embedded in .html files, as my web hosting service
accomplishes exactly that. I believe it's just some kind of setting in
Apache or somewhere else that you or your web ho
Dear list,
I am trying to set a simple session variable on PageA.
$_SESSION['CategoryID'] = intval($Data['ID']);
if I print after setting the value on PageA, I will
get the expected ID number.
go on to PageB and $_SESSION['CategoryID'] is '0'.
If I hard code in a value for $_SESSION['CategoryID
The web server is set up to see the .php file extension and pass the entire page to
the PHP engine for processing. Then the web server passes the
results back to the client's browser ( HTML, text, and images).
>>Yes, the server supports php, and I don't want to make it into a php file
>>beca
You have this as a xxx.php file right?
It has to have a .php extension for it to work.
>>I put this in the body of an html file:
>>
>>>if ($handle = opendir('.')) {
>> while (false !== ($file = readdir($handle))) {
>> if ($file != "." && $file != ".." && eregi('\.html$', $file)) {
>>
"Burhan Khalid" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Greetings everyone :
>
>Having a hard time with this one. I have a multi-dim array
> $foo[$x][$y]['key'], where $x and $y are numeric. Here is some sample data
:
>
> Array
> (
>
> [$x] => Array
> (
>
Pooya Eslami wrote:
Yes, the server supports php, and I don't want to make it into a php file
because its a big html file and I just need this little script on it. Why
cannot I embed php in html files?
The server does not parse html files for php so that it does not waste
CPU on parsing files that
On Sun, 2004-04-18 at 10:27, Pooya Eslami wrote:
> Yes, the server supports php, and I don't want to make it into a php file
> because its a big html file and I just need this little script on it. Why
> cannot I embed php in html files?
You CAN embed PHP in .html files PROVIDED THAT YOUR WEBSERVER
Yes, the server supports php, and I don't want to make it into a php file
because its a big html file and I just need this little script on it. Why
cannot I embed php in html files?
"Andy Ladouceur" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> It's already been mentioned, but you
Chris W wrote:
Justin French wrote:
On 18/04/2004, at 10:35 AM, Chris W wrote:
So now I am out of ideas and was wondering if anyone here had any.
We're getting a little OT, but it's possible that a bookmarklet (a
JavaScript bookmark) installed on all browsers you use could act as
the method o
Justin French wrote:
On 18/04/2004, at 10:35 AM, Chris W wrote:
So now I am out of ideas and was wondering if anyone here had any.
We're getting a little OT, but it's possible that a bookmarklet (a
JavaScript bookmark) installed on all browsers you use could act as
the method of grabbing the
Greetings everyone :
Having a hard time with this one. I have a multi-dim array
$foo[$x][$y]['key'], where $x and $y are numeric. Here is some sample data :
Array
(
[$x] => Array
(
[0] => Array
(
[invoiceid] => 11842
[
On 18/04/2004, at 10:35 AM, Chris W wrote:
So now I am out of ideas and was wondering if anyone here had any.
We're getting a little OT, but it's possible that a bookmarklet (a
JavaScript bookmark) installed on all browsers you use could act as the
method of grabbing the existing URL, and passin
php-general Digest 18 Apr 2004 11:55:07 - Issue 2712
Topics (messages 183746 through 183760):
Re: why doesn't this work ?
183746 by: Daniel Clark
183754 by: Pooya Eslami
183756 by: Andy Ladouceur
Removing line breaks...
183747 by: Russell P Jones
1837
On 16-Apr-2004 Flavio Fontana wrote:
> Hi
>
> I have i Problem i got a variable a=2351 now i need to create an
> array out of this variable
> a[0]=1
> a[1]=3
> a[2]=5
> a[3]=1
>
> I have an idea to use the modulo function an do some Math but im sure
> there is a nicer way of solving my prob
>
Hi,
I just finished reading Chris Shiflett's article in this months php|a
about SQL injection and have a question I can't seem to find answered
anywhere:
Does mysql_real_escape_string (or mysql_escape_string) do anything
extra that addslashes() doesn't? In the examples in the manual it is
just us
> I am planning on writing a "bookmark server" in php. The idea is I will
> have a database that stores all my internet favorites on a web server
> some where, so if I am doing some web browsing away from home and find a
> site I want to save, I can go to my bookmark server and save the url
> ther
"Bob Bruce - Programmer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> This is my first posting to this group, so I am not familiar
> with any special etiquette for it, please bear with me. . .
>
> I maintain the PHP code for the website for the murals of Winnipeg and
> have found a
35 matches
Mail list logo