[PHP] Get First 20 Characters of a Variable or Database Entry

2004-01-21 Thread Dimitri Marshall
the event name. I could do the whole event name but it could get quite long. Thanks, Dimitri Marshall -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problem with Picture Name

2004-01-06 Thread Dimitri Marshall
s isn't a usual format, and I tried htmlsecialchars ENT_QUOTES but it still saves the picture name onto the server like such: photo\'.jpg. Can someone help me out?" Dimitri Marshall -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] simple php search

2003-12-05 Thread Dimitri Marshall
ame FROM employees WHERE surname = > '{$_GET['surname']}'" You might also want to do it this way... "SELECT firstname, surname FROM employees WHERE surname = \"{$_GET['surname']}\"" Just in case their name is something like O'Neil,

Re: [PHP] " " in a Variable

2003-12-02 Thread Dimitri Marshall
Sorry, what I mean is... I have a field in a form where users input text. If the user inputs something like: Hi there, "this is a quote" and you should know it. Then only... get's inserted because of the double quotes. Is that more clear? Dimitri Marshall "Chris Shiflet

[PHP] " " in a Variable

2003-12-02 Thread Dimitri Marshall
Hi there, I'm sure this is an easy fix, but how do you either prevent users from being able to input " " in a field or make it so that it doesn't affect the code? Thanks in advance, Dimitri Marshall -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Picture Width and Height in $_FILES

2003-12-01 Thread Dimitri Marshall
with no success. Any help is greatly appreciated. Thanks, Dimitri Marshall -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Variable in $_FILES?

2003-12-01 Thread Dimitri Marshall
put 'object'$objectNumber together so I just changed it to simply $objectNumber, so it now works. This is what the code is now: $file = $_FILES{$objectNumber}; $fileName = $file['name']; $filetmp = $file['tmp_name']; ... and everything works. Dimitri Ma

[PHP] Variable in $_FILES?

2003-12-01 Thread Dimitri Marshall
n do to make it work? Thanks in advance, Dimitri Marshall -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Two Actions in a Form?

2003-11-26 Thread Dimitri Marshall
what the HTML is for this. I can't remember. Thanks a bunch in advance, Dimitri Marshall -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Making a Search Function?

2003-11-17 Thread Dimitri Marshall
way to do this. Could someone enligthin me? Greatly appreciate any help in advance, Dimitri Marshall -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Unique ID

2003-11-11 Thread Dimitri Marshall
I want to delete the posts after 30 days, and if I delete the row, then that would mess up the row system. Any suggestions? Dimitri Marshall -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Delete after 30 Days

2003-11-10 Thread Dimitri Marshall
Hey, Here's my situation. I'm making a message board and I want posts to be deleted after 30 days. Does anyone know of a script, or how, I can delete an entry on my database after a certain amount of time (ie. 30 days) automatically. Dimitri Marshall -- PHP General Mailing

[PHP] Re: Ive lost a zero somewhere

2003-11-05 Thread Dimitri Marshall
$price = 25; $f_price = sprintf("%01.2f","$price"); echo "$f_price"; This will give you 25.00 instead of 25. Maybe put your result into a variable and then convert it into the decimal number using the sprintf() function. Dimitri Marshall "Richard Cook" &

[PHP] Re: FTP_DELETE HELP!

2003-11-05 Thread Dimitri Marshall
Problem solved... Thanks everyone! Dimitri Marshall "Dimitri Marshall" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > Just wondering what to put for the "resource ftp_stream" in the following: > > ftp_delete ( resource ftp_stream, strin

[PHP] FTP_DELETE HELP!

2003-11-05 Thread Dimitri Marshall
ost in mysql_connect? Thanks in advance, Dimitri Marshall -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] FTP_DELETE!

2003-11-05 Thread Dimitri Marshall
Don't know what that is because I don't connect to FTP. The files upload fine, but I just want to know how to delete them. Is the result of ftp_connect() the $host in mysql_connect? Dimitri Marshall "John W. Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PRO

[PHP] FTP_DELETE!

2003-11-05 Thread Dimitri Marshall
Hi, Just wondering what to put for the "resource ftp_stream" in the following: ftp_delete ( resource ftp_stream, string path) Thanks in advance, Dimitri Marshall -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Having trouble with Uploading Files to Server...

2003-11-05 Thread Dimitri Marshall
Wicked... Works, thanks. Dimitri Marshall "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Web server need permission to write to > /home/unit-dir/public_html/members/memberpix/ directory. Change the > directory permissions to 777. &

[PHP] Having trouble with Uploading Files to Server...

2003-11-05 Thread Dimitri Marshall
mepage.php on line 36 Couldn't upload first image Thanks, Dimitri Marshall -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Uploading Files!

2003-11-03 Thread Dimitri Marshall
Hi there, I'm new to this new PHP thing and man it's frusterating. Anyway, I'm not gonna tell you my life story, but I just need to know how to allow users to upload files to my server . I've already made a form with the http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php