Hey Anth,
> Hey guys,
=some of the better-looking amongst us are not guys (and then some of us are...)
> I'm running a RH7.2 box with apache 1.3.20 installed and php-4.1.1
> installed as a DSO.
>
> Everything is working fine, except that the output from any date() or
> time() references is 16 h
http://www.thickbook.com
choose the tutorial for a form with custom error messages.
Miles Thompson
At 06:40 PM 2/5/2002 -0500, SpamSucks86 wrote:
>I have a registration form and if a user enters bad information and the
>php script generates an error, I want the user to be able to hit back
>and
Hello!
I'm trying to create a directory, let's say: /some/dir. My script
(create_dir.cgi) is located at the cgi-bin directory and begins with
#!/usr/bin/php. So it's like any other script, isn't it?
The problem is: running php in safe mode with the script permissions:
rwxr-xr-x 8 ro
Hi.
I'm working on an "edit" page where the pull down menu is populated from a
database. I can't figure out how to print "selected" when that particular
record is the one associated with the current ID. Can anyone help?
Here's my current code:
$title";
}
$num = @mysql_num_rows($result);
On Tue, 2002-02-05 at 16:23, Michael O'Neal wrote:
> Hi.
>
> I'm working on an "edit" page where the pull down menu is populated from a
> database. I can't figure out how to print "selected" when that particular
> record is the one associated with the current ID. Can anyone help?
>
> Here's my
Hi, looking at your sql statement, it seems like you are always setting
my_job_id and job_id to the same value for each row in the table. "select
job_id AS my_job_id" is just putting the value of job_id in a variable
called my_job_id. Could you tell us the structure of your mysql table please
Lose the single quotes, quoting a single variable is nonsense.
Quotes are used to define strings, it is a feature (called substitution)
of PHP that allows you to use a variable within a string.
The reason it doesn't work is that this subtitution is only performed on
strings enclosed in "'s (dou
On Tue, 5 Feb 2002, DL Neil wrote:
Hello DL,
> =some of the better-looking amongst us are not guys (and then some of us are...)
Sorry! :)
> Check out the meaning of "EST".
> Sixteen hours behind NSW, Australian time would make it New York time wouldn't it?
*trumpet fanfare*
Thanks for that.
What is the proper way to transfer class properties through-out my pages...
let's say i have a ShoppingCart Class and i have methods like
addToCart(id, qty) and deleteFromCart(id)
also i have properties like CartItems("id" => array(), "qty"=> array())
this is what i do...
//when the user enters
I'm using this code to create a "Next n Articles >>" on my index.page
from my mysql database.
I worked most of it out myself. Then I got some help. It works. I
thought I understood my own code enough to be able to construct a "<<
Previous n Articles". I guess not. My coding skills need help.
So ho
Michael,
I think you're trying to kill yourself coding. here's what I do for myself:
Select Someone
EM."\">".$mydata->FirstName."
".$mydata->LastName."\n";
}
mysql_close($myconnection);
?>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I want to reset the autoindex in a mysql table using php if I can.
I found this. Can anyone help?
http://www.mysql.com/doc/m/y/myisamchk_other_options.html
J
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi PHPers,
in late 2001 I had a customer that was interested in a kind of
universal (my)SQL module for PHPNuke / phpWebsite. Thus I ordered the
development and - as fair as life is - the customer went straight into
bankruptcy.
Now I have a first beta of "modDb" - as we call it - and almost no
ne
Hello All,
Can someone please RTFM me so I can convert MySQL 24 hour time to 12
hour time.
TIA
gary
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wednesday 06 February 2002 09:59, jtjohnston wrote:
> I'm using this code to create a "Next n Articles >>" on my index.page
> from my mysql database.
> I worked most of it out myself. Then I got some help. It works. I
> thought I understood my own code enough to be able to construct a "<<
> Pre
Jason,
I'm not ssure I follow.
$offset is the number i read in in my
$limit is the number displayed.
$num_rows is the number of rows in my database.
What are you doing with $previous? $previous would be my string, not the
previous offset?
Could you show me again?
> > if(!$offset)
> > {
> > $of
On Wednesday 06 February 2002 12:02, jtjohnston wrote:
> Jason,
>
> I'm not ssure I follow.
> $offset is the number i read in in my
> $limit is the number displayed.
> $num_rows is the number of rows in my database.
Correct.
> What are you doing with $previous? $previous would be my string, no
On Tue, 2002-02-05 at 18:44, Gary wrote:
> Hello All,
> Can someone please RTFM me so I can convert MySQL 24 hour time to 12
> hour time.
> TIA
> gary
Use MySQL's date_format() function with the %r specifier in your query:
shanna% mysql
Reading table information for completion of table a
I have a form with 1 checkbox and have coded it like this:
When the form is submitted, $HTTP_POST_VARS[private] only exists IF checkbox
is checked. It doesn't exist otherwise, which is causing a problem because
there are several other elements before and after. What happens is the
value AFTER
On Mon, 2002-02-04 at 20:19, Daniel Grace wrote:
> "Lars Torben Wilson" <[EMAIL PROTECTED]> wrote in message
> >
> > From the manual:
> >
> >break accepts an optional numeric argument which tells it how
> >many nested enclosing structures are to be broken out of
> >
> > You can find this
There is no way. How would you then know if the checkbox was checked or
not?
I use 'em like this
and then check if $private is "myValue" or not.
If you really have to get some data thru, use hidden inputs.
Niklas
-Original Message-
From: Gaylen Fraley [mailto:[EMAIL PROTECTED]]
Sent
The manual shows that you can use switches with numeric values but is it
also possible to use strings? Is this possible? If not, what can I
do? Just a bunch of if statements?
";
break;
case Fred Flinstone:
echo "Yabba Dabba Do";
break;
default:
echo "Do not
Try it.
But to answer your question, yes. Don't forget to put quotes around your
strings in the case statements.
switch($name){
case "beesly":
break;
}
"Phantom" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> The manual shows that you can use s
- Original Message -
From: "YY" <[EMAIL PROTECTED]>
Newsgroups: php.general
Sent: Wednesday, February 06, 2002 1:29 PM
Subject: why !^ in email?
> why appear !^ in email when I send HTML email with mail() function? It
works
> w/ those HTML codes, but I've no idea why there are some "!"
just use iseet();
if(isset($private)){
//do stuff
}
- Original Message -
From: "Gaylen Fraley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 05, 2002 8:41 PM
Subject: [PHP] Checkboxe problem
> I have a form with 1 checkbox and have coded it like this:
>
>
>
>
Pleae help me !
I need delete record from table user.mysql in mysql database, i log on in
mysql like root and I log on on linux server like root. But when I write
command : delete from user where user=''; mysql send me error message :
ERROR 1036 Table 'user; is read only !
Thans for y
What is the proper way to transfer class properties through-out my pages...
let's say i have a ShoppingCart Class and i have methods like
addToCart(id, qty) and deleteFromCart(id)
also i have properties like CartItems("id" => array(), "qty"=> array())
this is what i do...
//when the user enters
> Suppress the error message:
> $result = @mysql_query("sql statement",$db);
DL Neil, thank you: INSERT IGNORE is exactly what i need. You helped me
greatly!
Matt, thaks you for help too, but my non-perfect english doesn't allow me to
express my thoughts correctly.
Thanks!
Valentin Petruchek (
Hello, list!
I've php script that works for seveeral minutes (3-5) - it indexes my site
and when page is indexed it echoes a one-row table (page bla.bla.bla
indexed). But browser shows it only when it gets all the page.
I want it to show line by line... I know it can be done in perl
(www.tracert
101 - 129 of 129 matches
Mail list logo