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
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 my
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 how do I
Michael,
I think you're trying to kill yourself coding. here's what I do for myself:
select name=from
option value= SELECTEDSelect Someone/option
?php
$myconnection = mysql_connect($server,$user,$pass);
mysql_select_db($db,$myconnection);
$news = mysql_query(select * from $table ORDER by
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
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
Previous n
Jason,
I'm not ssure I follow.
$offset is the number i read in in my a href
$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)
{
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 a href
$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,
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 and
I have a form with 1 checkbox and have coded it like this:
input type=checkbox name=private
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.
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 at
There is no way. How would you then know if the checkbox was checked or
not?
I use 'em like this
input type=checkbox name=private value=myValue
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:
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?
?
if (isset($Name)) {
switch ($Name)
case Homer Simpson:
echo DO'Hp;
break;
case Fred
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
- 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 ! signs
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:
input
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
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 my
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 (aki
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
101 - 123 of 123 matches
Mail list logo