[PHP-DB] Re: Upload images with minimun effort from final user
You have just to rename the image with the news ID ! Perhaps I did not understand correctly your question ? Tell me if you want also an example (in french, sorry) of the upload and rename, etc wioth pear quickform David Arroyo wrote: Hi @ll, I have to make an interface for a newspaper site, where users can upload news including images. I want to store the image's name in a field of my NEWS table, in order to catch it with an img tag later, but I don't want people has to upload the image, remember its name, and put it as another field in the form. Can anyone help me with an example, tutorial or any idea? Thanks in advance, David. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Re: Upload images with minimun effort from final user
You can store the original name of the uploaded file in your news table by extracting it from the variable you use to save the image, so there is no need for the user to input . Check this link: http://us3.php.net/features.file-upload A better solution is to rename the image to the unique ID of the news article it's associated with (assuming there is only one image allowed per article). This helps eliminate the chances of overwriting an existing image without bothering the user with error messages. When I do this, I usually use the md5sum of the unique ID instead of the actual number. For example: $image_name = md5($article_id) . .jpg; -- Sincerely, A.J. Brown BitNotion Techologies Sylvain Gourvil [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] You have just to rename the image with the news ID ! Perhaps I did not understand correctly your question ? Tell me if you want also an example (in french, sorry) of the upload and rename, etc wioth pear quickform David Arroyo wrote: Hi @ll, I have to make an interface for a newspaper site, where users can upload news including images. I want to store the image's name in a field of my NEWS table, in order to catch it with an img tag later, but I don't want people has to upload the image, remember its name, and put it as another field in the form. Can anyone help me with an example, tutorial or any idea? Thanks in advance, David. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] oracle complex type and oci_new_collection
Is it possible to use a complex collection in PHP as shown below? Oci_new_collection is successful, but the OCI-Collection-getElem(i) returns false for each record returned. If we change from a complex type to a simple type, the data returns as expected. - -- COMPLEX TYPE - create or replace type aud_cl_clu_row as object ( channel_line_up varchar2(50), audit_status varchar2(20) ); create or replace type aud_cl_clu_tbl is table of aud_cl_clu_row; - -- SIMPLE TYPE - create or replace type aud_cl_clu_tbl is table of varchar2(50); -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] oracle complex type and oci_new_collection
Is it possible to use a complex collection in PHP as shown below? Oci_new_collection is successful, but the OCI-Collection-getElem(i) returns false for each record returned. If we change from a complex type to a simple type, the data returns as expected. - -- COMPLEX TYPE - create or replace type aud_cl_clu_row as object ( channel_line_up varchar2(50), audit_status varchar2(20) ); create or replace type aud_cl_clu_tbl is table of aud_cl_clu_row; - -- SIMPLE TYPE - create or replace type aud_cl_clu_tbl is table of varchar2(50); -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] why are you deleting my post?
QUIT -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] oracle complex type and oci_new_collection
Is it possible to use a complex collection in PHP as shown below? Oci_new_collection is successful, but the OCI-Collection-getElem(i) returns false for each record returned. If we change from a complex type to a simple type, the data returns as expected. - -- COMPLEX TYPE - create or replace type aud_cl_clu_row as object ( channel_line_up varchar2(50), audit_status varchar2(20) ); create or replace type aud_cl_clu_tbl is table of aud_cl_clu_row; - -- SIMPLE TYPE - create or replace type aud_cl_clu_tbl is table of varchar2(50); -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] oracle complex type and oci_new_collection
Is it possible to use a complex collection in PHP as shown below? Oci_new_collection is successful, but the OCI-Collection-getElem(i) returns false for each record returned. If we change from a complex type to a simple type, the data returns as expected. - -- COMPLEX TYPE - create or replace type aud_cl_clu_row as object ( channel_line_up varchar2(50), audit_status varchar2(20) ); create or replace type aud_cl_clu_tbl is table of aud_cl_clu_row; - -- SIMPLE TYPE - create or replace type aud_cl_clu_tbl is table of varchar2(50); -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Call Postgre Stored Procedure
Is it possible to call postgres' stored procedure from php? if it's so, how? Can anyone give me the example script to call postgres' stored procedure? Thanks Heri __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php