I'm trying to pass vars into a php (html) file that uses FRAMES -- top, main
and bottom.
The TOP frame has my menu items. The MAIN frame will show the pages, and
the BOTTOM frame will have my footer stuff --
Now, when I click on a menu item in the TOP frame I want the TOP and MAIN
frames to upd
Try doing it by yourself.
$the_str = str_replace('"','\"',$the_str);
$the_str = str_replace("'","\\'",$the_str);
This is a little hack until you find what is the problem with addslashes();
Best regards,
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS
- Original Me
Hi,
I'm having troubles entering information from a form into a MySQL
database. Specifically if the user enters an apostrophe anywhere in the
form, all the information is rejected and nothing is entered into the database.
After researching a little on php.net I found the addslashes() command
Yes. MySQL is as stable as the box you run it on. ;)
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
-Original Message-
From: jtjohnston [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 24, 2002 10:06 PM
To: [EMAIL PROTECTED]
Subject: [PHP] mysql 4 windows
Does anyone kno
El sáb, 23-02-2002 a las 01:56, jtjohnston escribió:
> What's the difference between
> if (isset($submit_happening))
> and
> if $submit_happening)
if (isset($var)) evaluates whether $var exists or not
if ($var) evaluates de value of $var
$var = 1;
if(isset($var)) --> TRUE
if($var) -->
Luke Vogel wrote:
[snip]
> Has anyone else experienced this issue, and or can anyone recommend a
> secure solution.
Found the solution ...
http://www.sendmail.org/~ca/email/doc8.12/SECURITY
--
Regards
Luke
--
Q: What does FAQ stand for?
A: We are Frequently Asked this Question, and we h
Does anyone know if mysql 4 windows is up to snuff yet?
I'm running http://www.easyphp.org/
Can it be installed as localhost2?
John
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Monday 25 February 2002 07:43, Martin Towell wrote:
> I tried doing that, but some servers don't support them :(
>
> -Original Message-
> From: Billy S Halsey [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 25, 2002 10:39 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Email Verific
hi all,
One of the binarycloud developers just told me to have a look at the SAP OS
database, SAPDB.
I'm going to test it tomorrow to see if it actually does what it claims, but
this _looks_ like serious OS competition to Oracle, and if it is I would
very much like to use it for my next project.
You may want to look at dir() under Directory Functions - it also comes
with a handy example...
Bogdan
Uma Shankari T. wrote:
>Hello,
>
>
> Is there any function to display the subdirectory structure of the root
>directory using php...
>
>
> Is anyone know this plz tell me
>
>
>
>-Uma
Hello,
Is there any function to display the subdirectory structure of the root
directory using php...
Is anyone know this plz tell me
-Uma
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
it's to do with the length of a line - I think it's 1024 - if a lines longer
than that, an ! is put there and a new line is made
Martin
-Original Message-
From: Steven Walker [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 1:18 PM
To: [EMAIL PROTECTED]
Subject: [PHP] HTML Emai
Hi,
Has anybody every had problems with random characters showing up in HTML
email messages?
I've set up an auto-responding email system for product purchasing and
registration. The system sends multipart HTML and plain text messages
using mail(). However, exclamation points are showing up in
On Mon, 25 Feb 2002, Martin Towell wrote:
> You can use sockets and connect to their mail server (bit after the @) and
> "pretend" to send an email to them, but cancel the request before you
> actually send anything - doesn't always work though, as some servers will
> report back the all users are
what about $argv ?
-Original Message-
From: SpamSucks86 [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 11:40 AM
To: [EMAIL PROTECTED]
Subject: [PHP] HTTP Request Headers - PUHLEASE HELP!
I have an infinitely annoying problem. I coded a script which tracks who
viewed my profi
I have an infinitely annoying problem. I coded a script which tracks who
viewed my profile in AOL Instant Messenger. When they click on a link
(AIM inserts their screen name into the URL) the script records it.
However, it does not replace spaces in their screen name with %20 like a
normal browser
Hi, is there a recommended PHP way of extracting data from a MySQL database and
creating a CSV (Comma-seperated-values) file on the client (not the server).
Thanks in advance
Petras
fixed the connection problem,
I am still getting no output to the option menu.
The output HTML page looks like this.
The Search Page
food
Search
if I do a select * from food_type_menu;
at the sql prompt
apologies,
my fault forgot to include the dbconnect at the top of the page. I was
trying to access the database without loggin onto it.
Sorry all.
Matt.
-Original Message-
From: Martin Towell [mailto:[EMAIL PROTECTED]]
Sent: 24 February 2002 23:43
To: '[EMAIL PROTECTED]'; [EMAIL PROTE
It may of allready been mentioned, but why don't you just send out a "Click
The Link To Verify" email... that way you are allways 100% sure the email
addy works.. Just requires the user to follow a link
Andrew
- Original Message -
From: "Martin Towell" <[EMAIL PROTECTED]>
To: <[EMAIL PROT
Getting there now...
all looks well, very tidy etc.
However my drop down box is empty ?? I know there is data in the table I am
running the select on though ???
Any ideas ?
Thanks,
Matt.
-Original Message-
From: Martin Towell [mailto:[EMAIL PROTECTED]]
Sent: 24 February 2002 23:
RE: [PHP] RE: (HTML related) helping to creating dropdown lists from fetched
arrays.genius - didn't notice that, forgot to close the query.
Thanks,
Matt.
-Original Message-
From: Martin Towell [mailto:[EMAIL PROTECTED]]
Sent: 24 February 2002 23:43
To: '[EMAIL PROTECTED]'; [EMAI
I tried doing that, but some servers don't support them :(
-Original Message-
From: Billy S Halsey [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 10:39 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Email Verification
I don't have code, since I've never needed to do this, but c
original line:
while ($row = mysql_fetch_array($results);
new line:
while ($row = mysql_fetch_array($results))
-Original Message-
From: Matthew Darcy [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 10:37 AM
To: Martin Towell; [EMAIL PROTECTED]
Subject: RE: [PHP]
I don't have code, since I've never needed to do this, but can anyone
see a problem with simply issuing a VRFY or an EXPN command instead of
actually faking out sending a message?
/bsh/
Martin Towell wrote:
>You can use sockets and connect to their mail server (bit after the @) and
>"pretend"
RE: [PHP] RE: (HTML related) helping to creating dropdown lists from fetched
arrays.Thanks Martin.
That looks perfect.
I have adaprted what you sent to use in my test application and I am getting
an error on line 22 which is the $row= line.
Take a look and see if you can spot my error as it all
The very first record will be the very first time you assign the $row a
query result. So basically:
$row = mysql_fetch_array($sql_result);
$row will now only have the very first results data in it, if you want the
next rows data you would just call it again:
$row = mysql_fetch_array($sql_resul
RE: [PHP] [NEWMAN] Collecting information from a my sql table.Dang, thanks (o;
- Original Message -
From: Martin Towell
To: 'Philip J. Newman' ; [EMAIL PROTECTED]
Sent: Monday, February 25, 2002 12:22 PM
Subject: RE: [PHP] [NEWMAN] Collecting information from a my sql table.
Well, I found the problem. it wasn't happening where I thought it was.
which brings up another question I'll have to ask in a new subject about
output buffering.
On Sun, 2002-02-24 at 18:00, Jeff Bearer wrote:
> It's all returning proper dates and the proper timestamps when I check
> them inside
Jeff,
Everything you are doing sounds fine, and I don't see any logic problems
with the while loop. However, I really can't extrapolate any further
conclusion without more info. How are you determining that the if
statement is working? As long as this loop is running it should always
echo 'GO
how about ?
$row = mysql_fetch_array($sql_result);
$pub_id = $row["pub_id"];
$pub_headline = $row["pub_headline"];
$pub_dateline = $row["pub_dateline"];
$pub_info = $row["pub_info"];
$pub_image = $row["pub_image"];
-Original Message-
From: Philip J. Newman [mailto:[EMAIL PROTECTED]
When I want to get just one record is there an easyer way than using the while loop
that I have been using?
Philip J. Newman
Philip's Domain - Internet Project.
http://www.philipsdomain.com/
[EMAIL PROTECTED]
Phone: +64 25 6144012
try this: (I don't have experience w/ mysql, but I do with other dbs)
".$row["col2"];
}
?>
-Original Message-
From: Matthew Darcy [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 10:06 AM
To: [EMAIL PROTECTED]
Subject: [PHP] RE: (HTML related) helping to creating dropdown lis
it does help a little.
I know the html is wrong I used this as an example to what I wanted.
What I need to know is how to use PHP to generate the options in the list
from col1 and show the option 2.
The data for these is got from an array.
so really what I want to know is how to code in PHP
It's all returning proper dates and the proper timestamps when I check
them inside the loop. I'm formatting the dates in -MM-DD format and
strtotime is returning the proper timestamps. I'm curious how can you
say it's a problem with the dates when the if statement comparing the
same expressi
They are very questionable. Have had heard many complaints from clients and
associates about these guys shutting down sites without warning, anything
that starts to get a few hits seems to be an issue with them...
Again, you get what you pay for people :)
Jeff
- Original Message -
From:
You can use sockets and connect to their mail server (bit after the @) and
"pretend" to send an email to them, but cancel the request before you
actually send anything - doesn't always work though, as some servers will
report back the all users are correct
This is the code I use - a bit long thou
:)
foreach (array_count_values ($names) as $name=>$count)
Thanks M! :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
What's their deal? How do they offer all that and be so cheap?
Using my site like Geocities to advertise?
http://www.phpwebhosting.com/host_details.html
J
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
foreach (array_count_values ($names) as $name=>$count)
-^^
-Original Message-
From: jtjohnston [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 9:34 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Access Array Values?
I knew there was ar
Hi,
I want to create a dropdown list with options from a table.
ie
"
}
I know this is basic but it is to give you an idea of what I want.
I have tried to find an example of this in the book I am using to learn to
no result.
I am guessing this is how it works from the info I have read fr
Is this what you want?
function validateEmail ($email) {
return (ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'. '@'.
'[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.' .
'[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$', $email));
}
This will also do the job. It actually connects to the mail ser
Well, after browsing through the HTTP/1.1 standards I found that an optional
header "Host" after the GET request could be used.
I now write "GET /clientlogin.php?username=me&password=mypassword
HTTP/1.0\r\nHost: www.lottery-machine.co.uk\r\n\r\n" to the open socket...
and it works fine!!!
"Las
I knew there was areason why I stopped Perling :) THANKS!
How do I disassemble its values? How would I foreach? Something like this?
foreach (array_count_values ($names) as $name and $count) <-??
{
echo"".$name." (".$count.")`;
}
bill (3)
john (3)
mary (4)
http://www.php.net/manual/en/f
Steven Walker wrote:
> Does anybody know any good ways (or available code) for verifying
> email addresses?
>
> Checking syntax is not enough.. I'd like to actually be able to test
> whether the email address exists.
The only way to be sure is to send them an e-mail with a link or
validation
Does anyone know if phpwebhosting.com is still in business?
I have sent them 2 sales inquiries and nothing happened so far for last
4-5 days and I also left them a message. I guess I got to the point that
I need to move on..since this company cannot even answer sales
inquiries...
Pax
--
PH
http://www.php.net/manual/en/function.array-count-values.php
- Original Message -
From: "jtjohnston" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, February 24, 2002 10:49 PM
Subject: [PHP] Convert An Array
> http://ccl.flsh.usherb.ca/db/authors_under_study.php
> or
> $name
http://ccl.flsh.usherb.ca/db/authors_under_study.php
or
$names = array ("john", "mary", "bill", "mary", "bill", "mary", "bill",
"john", "bill", "john");
1) How do I count the elements of $names to produce:
bill 4
john 3
mary 3
2) How do I store the counted elements into a new array? How d
Yeah the idea of php md5() hash is for data integrity, by taking a hash of
some data and taking a hash of it later, allows you to compare the results
and see if the data hash been changed, such as a database value.
You have to use some form of client side technology to pass variables
encrypted. e
Michael,
Thanks for your help! Your advice entirely makes sense. Perhaps a good
way to use email verification is to alert the user that the address
could not be verified, but if they insist, they can still submit it.
This probably falls under the 90/10 rule... I'll spend 90% of my time
trying
What you could do additionally to syntax check, is to check if the domain they are
giving is existant or not with checkdnsrr(). Still not 100% fullproof though :-(
cheers,
thalis
On Sun, 24 Feb 2002, Steven Walker wrote:
> Does anybody know any good ways (or available code) for verifying ema
Steven Walker wrote:
> Does anybody know any good ways (or available code) for verifying email
> addresses?
>
> Checking syntax is not enough.. I'd like to actually be able to test
> whether the email address exists.
Nothing is 100%, so don't exclude people because you can't verify them.
The
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Jason Wong declared
> Not sure whether there is a built-in function for doing so. But here's
> something I prepared earlier:
>
> function create_list_from_ENUM($dbh, $table, $column) {
> $sth = $dbh->prepare("SHOW COLUMNS FROM $tab
I think I got this off the Zend site a year or so ago:
//
function mysql_fetch_enumerations($db_connection, $table_name, $column_name,
$sorted="unsorted") {
/*
Author
Thomas J. Swan
Revision History
1.0Creation of function
1.1Added the ability to sort the array before returning
Does anybody know any good ways (or available code) for verifying email
addresses?
Checking syntax is not enough.. I'd like to actually be able to test
whether the email address exists.
Steven J. Walker
Walker Effects
www.walkereffects.com
[EMAIL PROTECTED]
--
PHP General Mailing List (http
On Monday 25 February 2002 02:59, Nick Wilson wrote:
> Hi all
> Which php function can I use to get the emum values from a mysql db
> table? I remember doing this once before but I've been looking at the
> manual and just can't remember how I did it?
Not sure whether there is a built-in function
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi all
Which php function can I use to get the emum values from a mysql db
table? I remember doing this once before but I've been looking at the
manual and just can't remember how I did it?
Many thanks
- --
-
Jeff,
The problem is most likely with incrementing $event_data. It's hard to
say without seeing the rest of the code.
Steven J. Walker
Walker Effects
www.walkereffects.com
[EMAIL PROTECTED]
> I have a problem while loop that isn't terminating when it's supposed
> to. I can't figure out what t
Does anyone have any idea why I can display a true SVG file successfully
in IE 6 with Adobe SVG viewer 3.0, but not when the identical content is
generated by PHP. Example:
SVGRECT.SVG displays properly (Apache server includes directive "AddType
image/svg+xml svg"):
http://www.w3.org/TR/SVG/
php-general Digest 24 Feb 2002 17:23:04 - Issue 1191
Topics (messages 85981 through 85998):
Re: php3/php4 difference
85981 by: David Robley
Flash and php
85982 by: Martin
85983 by: Martin
85984 by: Mika Tuupola
85985 by: Martin
Re: adding 'vote' mec
Jason,
> > Can't execute INSERT INTO events (TITLE, SUMMARY, ORG, CITY, PROVINCE,
> > DATE, REG_DATE, FEE) VALUES ('Another Event', 'Summary of this event
> > goes here', 'Another Organization', 'Coquitlam', 'BC', 'Another Date',
> > 'Another Date', '$250') Unknown column 'ORG' in 'where clause'
Thanx Rasmus,
Andy
"Rasmus Lerdorf" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> See http://www.php.net/~rasmus/gd.html
>
> On Sun, 24 Feb 2002, Andy wrote:
>
> > Hi there,
> >
> > I am a Linux newbie and I would reallly like to get this thing workin
I have a problem while loop that isn't terminating when it's supposed
to. I can't figure out what the problem is, if I run a comparison
inside the while loop it matches as it should, but for some reason the
same comparison isn't working as the while loop expression. I get an
infinite loop when I
Is there a good way to rotate a JPEG image (90°, 180° or 270°)?
I tried jpegtran and convert (ImageMagick)... But they both don't really
work as expected. Why?
jpegtran only workes if used with -trim. But this trims the image (cuts some
pixels away), which is not a very good way.
ImageMagick's
See http://www.php.net/~rasmus/gd.html
On Sun, 24 Feb 2002, Andy wrote:
> Hi there,
>
> I am a Linux newbie and I would reallly like to get this thing working on
> RH7.2 But it does not work out!
>
> A "normal" PHP4.1.1 installation works. But I need gd2.0 and JPEG support.
> Thats where my know
Hi there,
I am a Linux newbie and I would reallly like to get this thing working on
RH7.2 But it does not work out!
A "normal" PHP4.1.1 installation works. But I need gd2.0 and JPEG support.
Thats where my knowledge ends.
I tryed following configue line:
./ configure --with-apxs=/usr/sbin/apxs
Hi
http://www.php.net/manual/en/function.header.php
There is a section about how to disable caching about 1/3 way down the page.
Regards
Girish
--
www.girishnath.co.uk
- Original Message -
From: "Andy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, February 24, 2002 12:04
Hi!
I hope this is right address to get some help about this.
I tried many ways to get working locales, but nothing works.
My OS is FreeBSD 4.5 and php i use is 4.1.1.
I want to get slovenian locale working
If I set LC_ALL in my environment and if i type date for example in
shell everything is
I'm running GTK on Win32 and have made an app that connects to a server and
downloads some data.
I tested it over my LAN and it works fine, using both 10.0.0.1 and
gethostbyname("amd") as the host in fsockopen(host, 80, 30)
I've now tried running it over the internet, trying to connect to the serv
On Sunday 24 February 2002 04:03, jtjohnston wrote:
> I'm splitting mysql entries to build an array of author names called
> $authors.
>
> > As someone already suggested, you could use:
> > array_push($authors, explode(";", $mydata->AS));
>
> http://ccl.flsh.usherb.ca/db/authors_under_study.php
>
On Sunday 24 February 2002 06:57, [EMAIL PROTECTED] wrote:
> I've just created a "add record to table" type of page - basically copied
> a working php file I have on hand, and changed the values etc.
>
> Now, I am having problems trying to troubleshoot something. Basically
> my mySQL query is:
>
>
Hi there,
I would like to disable clients browser cache. Anyhow this does not work.
In a PHP book I found following line:
header("Pragma: no-cache");
Does not work though.
Can anybody help?
Thanx Andy
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Steven Walker declared
> I personally prefer voting mechanisms that display how many votes have
> been cast. If you keep the thumbs_up separate from thumbs_down, you can
> figure the total number of votes. Otherwise, you will not be
Hi Mika, thanx for your answer,
> http://www.php.net/manual/en/ref.swf.php
> http://www.php.net/manual/en/ref.ming.php
which one should I prefer (using windows) ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sun, 24 Feb 2002, Martin wrote:
> I was wondering if there is some php-support to generate
> flash-animations in general.
http://www.php.net/manual/en/ref.swf.php
http://www.php.net/manual/en/ref.ming.php
--
Mika Tuupola http://www.appelsiini.net/~tuupol
Okay, I found the Ming-Library in the documentation (I just search for
flash in the functions list and didn't find anything). I will try this.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello!
I read that the flash-format has been published to all users (see:
http://www.macromedia.com/macromedia/proom/pr/1998/flashstandard.html).
I was wondering if there is some php-support to generate
flash-animations in general.
What I'm looking for in particulla is a simple horizontal text-
77 matches
Mail list logo