PHP transfer variable question?
My program is ok in apache_1.3.19 and php-4.1.2£¬but when I change over to
php_4.3.2
and apache_1.3.27,I can't get variable¡£
code:
//newsList.php:
$querystring = "SELECT id,title FROM
The functions you're wondering about are designed for dealing with inserting
user input into a database. If you have a form in which someone can enter text,
you need to process the input with addslashes() in case the user input contains
quotes. htmlspecialchars() and htmlentities() have similar u
Hi there everyone, I'm trying to insert the below text into phpmyadmin, and it
inserts fine, but when I try to access it via PHP it doesn't access it, and via
phpmyadmin 2.2.3 I can't delete it OR edit it, so is there any illegal character in
the below text that you can see? I put it into a te
Hi this is about PHP commands even though has mysql too.
I go to mysql board when I find one they said MySQL is not necessarily PHP driven and
if I want
PHP specific questions to go to a PHP list.
How do you deal with forms, db storage of the data and calling it up in a form to edit?
The online
Interesting. They say the ISAPI module isn't production quality yet... we
use it, though, w/o problems. We're running IIS on Win2000 and php 4.3.2.
Does it work besides the phpinfo() problem?
Jake
LandEZ
"Ryan Jameson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
More info... I
What you can do is replicate all s with hidden fields:
Al di Meola
John McLaughlin
...
...
But I fail to see why so doing would be useful. Your dynamic form is created
after some query; therefore why not simply call the same query after
submission to obtain all possible values of the options
Hi everyone,
Well, I have already formulated my problem several times, always in a
different way, but yet I have no solution.
I try to say it as easy as it gets:
I simply want one specific selction-box to 'keep' ALL options present after
having submited the form!
I'm thinking about a variable o
There are several ways you can do it. But the first step is to translate to
24 hour time.
So the first thing we have to check is if the am or pm flag was set. Then
add 12 hours or leave as is OR set the hour to 00 (midnight).
Something like this may help:
Switch(strtoupper($ampm_flag)) {
// if i
Hi David
Comments inline...
On 13 Jun,2003 at 10:26 David Shugarts wrote:
> PHP--I need the user to be able to input a time, then validate it as to
> whether it is complete (e.g., expresses AM or PM and evaluates correctly),
> then pass it into an INSERT statement into the time field of a datab
Hi, All--
Has anyone already solved the problem of how to get a time input from the
user in people time (12-hour clock) and format it to be INSERTed in a mySQL
time field?
The mySQL time field is 24-hour and of course it can be formatted in the
SELECT statement to be displayed as 12-hour for the
Hello,
On 06/12/2003 10:21 AM, Hardik Doshi wrote:
Hi Manuel,
Do you have any references for generating XML files
from any of the persistent database?
That depends on what you want to do.
This class can generate arbitrary XML documents:
http://www.phpclasses.org/xmlwriter
This package can acce
Why not use the built-in conversion functions in mysql?
>From the manual:
INET_NTOA(expr)
Given a numeric network address (4 or 8 byte), returns the dotted-quad representation
of the address as a string:
mysql> SELECT INET_NTOA(3520061480);
-> "209.207.224.40"
INET_ATON(expr)
Given t
Here's how I did it when playing with this...
Table definition:-
CREATE TABLE ip_list (
ip_from double default NULL,
ip_to double default NULL,
country_code char(2) default NULL,
country_name varchar(100) default NULL,
KEY ip_from (ip_from,ip_to,country_code,country_name)
) TYPE=MyISAM;
On Friday 13 June 2003 15:48, G & E Holt wrote:
> I hope this is something easy I am overlooking but here goes:
>
> I have a table called: country which has the following fields:
>
> FieldType
> ip_from double(11,0)
> ip_todouble(11,0)
> country_cod
On 13 Jun,2003 at 0:48 G & E Holt wrote:
> $resolved=$DB_site->query_first("SELECT * FROM country WHERE
> '$resolvingip' BETWEEN ip_from AND ip_to");
Don't think you should have the '' around the ip number. Does that help?
Ronan
e: [EMAIL PROTECTED]
t: 01903 739 997
w: www.thelittledot.com
T
On 12 Jun,2003 at 18:21 Becoming Digital wrote:
> > The PHP "SELECT FROM" below (before snip) listed the expected data.
> > Is there a way to get the digit "3" into a PHP variable
>
> $data = mysql_result($result,1,"name"));
>
>
> > How do I trap or collect or save the digit "3" generated the
>
I hope this is something easy I am overlooking but here goes:
I have a table called: country which has the following fields:
FieldType
ip_from double(11,0)
ip_todouble(11,0)
country_code char(2)
country_name varchar(50)
IP_FROM
17 matches
Mail list logo