[PHP] Insert Chars into a string

2005-04-14 Thread PartyPosters
Hello, I have a variable that contains a filename, I want to be able to insert the date and time just before for the ".jpg" for example if my filename is 'pic.jpg' I want it to read 'pic_Monday 15th of January 2003 05:51:38 AM.jpg (or if anyone else knowshow to write the time and time all in num

[PHP] Creating a Directory

2005-04-12 Thread PartyPosters
Hello, I am using the following script to upload files to my server. Is there anyway I can create a directory (on the fly) for the new image to go, as I want people to be able to upload files with the same name. Thanks $uploadDir = 'uploads/'; $uploadFile = $uploadDir . $_FILES['form_data']['n

[PHP] Simple Problem

2005-04-12 Thread PartyPosters
I can't figure out what I am doing wrong, this sql string seems to filter out the information I want but it duplicates the all info, as 'num_rows' is total of rows in the table and not the correct value of the filtered information? $sql="SELECT products.productID, products.title, products.number

[PHP] php and javascript

2005-04-10 Thread PartyPosters
Hello, I have a form that when I hit sumbit I want to test the varialble in javascript. I can get it working using test variables in php but I want to be able to call the input box in my form, the only problem is the name of the box is in an array (i think) as it's in a list. You can see the 2 s

Re: [PHP] Simple Alert Message then Redirect?

2005-04-07 Thread PartyPosters
Thanks for you reply. I need to be able to test the php variable though, is the anyway I can call the java funtion from my if statement? - Original Message - From: "Josip Dzolonga" <[EMAIL PROTECTED]> To: "PartyPosters" <[EMAIL PROTECTED]> Cc: Sent:

[PHP] Simple Alert Message then Redirect?

2005-04-07 Thread PartyPosters
Hello I want to display an alert message then after users click ok I want to automatically goto a URL if ($var_stock_count == 0){ alert("Message") redirect("http://www.google.co.uk";); } Can someone help me put this right. Thanks Kaan.

Re: [PHP] Sending a Table Via mail

2005-03-23 Thread PartyPosters
w mail($to, $re, $message,$headers); ### MAIL ENDS HERE ?> - Original Message - From: "John Nichel" <[EMAIL PROTECTED]> To: Sent: Wednesday, March 23, 2005 9:37 PM Subject: Re: [PHP] Sending a Table Via mail > PartyPosters wrote: > > Hello is th

[PHP] Sending a Table Via mail

2005-03-23 Thread PartyPosters
Hello is there any way I can send a table (or just tabulated data) via email. I've tried this but comes up with an error. $to = [EMAIL PROTECTED]; $re = "Test Email from system"; $msg = "hello" mail($to, $re, $msg); Thanks in advance.

Re: [PHP] Converting to a string

2005-03-23 Thread PartyPosters
Thanks guys, you were right - I needed to change the format of the field in the database. :D - Original Message - From: "Daniel Gerzo" <[EMAIL PROTECTED]> To: "PartyPosters" <[EMAIL PROTECTED]>; Sent: Wednesday, March 23, 2005 8:58 PM Subject: Re: [PHP

[PHP] Converting to a string

2005-03-23 Thread PartyPosters
Hello guys, i am using date("l dS of F Y h:i:s A") and want to put the value in a database as a string, How do I converting it to a string, this is what I have got so far:- $v_ship_date = date("l dS of F Y h:i:s A"); Lots of thanks. - Original Message - From

[PHP] Notice: Undefined offset: 3 in ..........

2005-03-22 Thread PartyPosters
'$v_distIDArray[$i]', userID, '$v_companyArray[$i]','$v_add1Array[$i]','$v_add2Array[$i]')"); } Thanks Kaan - Original Message - From: PartyPosters To: php-general@lists.php.net Sent: Tuesday, March 22, 2005 10:01 PM Subject: Passi

Re: [PHP] Passing Arrays between pages

2005-03-22 Thread PartyPosters
Thanks for all your help!!! managed it with - $testArray = implode('|', $testArray); On next page: $testArray = explode('|', $testArray); - Original Message - From: <[EMAIL PROTECTED]> To: "PartyPosters" <[EMAIL PROTECTED]> Cc: Sent: Tuesday,

[PHP] Passing Arrays between pages

2005-03-22 Thread PartyPosters
Hello, Please can someone tell me how you pass arrays between PHP pages. I have tried something like this and have tried many variations of this but nothing working yet ; Page 1 $testArray[0] =Apple; $testArray[1] =Banana; $testArray[2] =Peach; echo ""; Page2 echo $testArray[1]; On different