Yup,
I knew it was something really simple. I should never touch a computer
before the coffee is brewed ;-)
Thanks!
Robert
On Wednesday, December 12, 2001, at 11:09 AM, Steve Cayford wrote:
Do you want $$fname = $val here? Taking the string in $fname as the
name of a variable to which
I'm trying to use a hash to translate a value into something human readable. I know
how to do this with an if-else but that seems like a waste of typing.
I have a bunch of items in the db and their values are abbreciations such as 'm_r'. I
want m_r to show on the page as Mens Rings. I was
)){
if ($key == $item){
$item_text = $val;
}
}
echo $item_text;
Thanks again,
Robert
- Original Message -
From: Matthew Loff [EMAIL PROTECTED]
To: 'Robert Weeks' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, December 21, 2001 4:26 PM
Subject: RE: [PHP-DB] Hashes
Robert
What exactly is the error message? Did you change config.php to use the name
of your database and your username password?
I've found the articles at devshed to be helpful in the past. This
particular one has a pretty good explaination of setting up a user
authentication system:
On 2/5/02 9:58 AM, Todd Williamsen [EMAIL PROTECTED] wrote:
Now I have two small issues...
1. How would I automate the file naming otherwise errors will fly (can't
copy file... blah blah)
You could replace the file name with a randomly generated number. There are
a number of ways to
If you read to part 2 of the tutorial it has quite a bit on inserting data.
The reason there are tutorials and books are to teach the *concepts* behind
what they are showing you.
This is probably what is tripping you up; you create the table with uid as
an integer, auto increment, not null
them as temporary files to resize them and save them in
a
DB with the regular name with special chars stripped out.
JD
-Original Message-
From: Robert Weeks [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 05, 2002 7:19 AM
To: Todd Williamsen; [EMAIL PROTECTED]
Subject: Re: [PHP
,
Robert Weeks
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ok,
This is driving me nuts. I'm sure its something simple but I can't seem to
find the glitch.
I'm trying to make a simple shopping cart using Session varibles to store
the item = quantity pairs, then I loop thru the cart and query the db to
get the item details, etc.. Most of it works fine
Why don't you just do the sql insert *after* the file upload function?:
Pseudocode:
if( NOT file upload attack, wrong file type, etc.){
//copy the file to the permanaent location
//call function to insert file details into the database
}
else{
//echo error to user
See the manual at php.net:
addslashes()
stripslashes()
I've found it easier to just turn on magic-quotes in the php.ini file
This is all covered at php.net
Robert
- Original Message -
From: Nick Patsaros [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
11 matches
Mail list logo