[PHP] putting variables in a variable

2008-03-28 Thread Hulf
Hi, I am making and HTML email. I have 3 images to put in. Currently I have $body .=" "; ideally I would like to have $myimage1 = "image1.jpg"; $myimage2 = "image2.jpg"; $myimage3 = "image3.jpg"; and put them into the HTML body variable. I have tried escaping them in

[PHP] PHP ide?

2007-11-08 Thread Hulf
Just wondering if anyone uses an IDE and if so what ones? Ta, H. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] isodd() php5?

2007-10-30 Thread Hulf
Hi, Is there a built in function in PHP5 to determine if an integer is even or odd? Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] problem with bind_param

2007-10-29 Thread Hulf
Hi, I am still having poblems with the php5 functions. I have 4 variables in each. What is the problem? Warning: mysqli_stmt::bind_param() [function.mysqli-stmt-bind-param]: Number of elements in type definition string doesn't match number of bind variables in on line 21 $prep = $mysqli

[PHP] what is the point of prepare?

2007-10-29 Thread Hulf
Hi, Begining using the php5 mysql functions and want to know what is the point of preparing/binding the data before I insert it? $prep = $mysqli->prepare ("INSERT INTO cd (cdid,title,artist) VALUES ('0',?,?)"); $prep->bind_param ('22',$title,$artist); Ta, R.

[PHP] moving over to php 5

2007-10-29 Thread Hulf
Hi, It is about time I made the jump to 5, however the only thing that is holding me back is the problem with hosts. How many hosts still run php 4 and am I going to have to spend hours and hours persuading them to upgrade before I can run my code? I have very little time as it is and am anxi

[PHP] Re: problem with download script on safari and ie 7

2007-10-08 Thread Hulf
I changes it now so it is... header('Content-Type: application/octet-stream'); header("Content-Disposition: attachment; filename=$file_name"); echo $content; exit; Which works on ie7 but safari still downloads the .php R. ""Hulf"" <[EMAIL PROTECTE

[PHP] problem with download script on safari and ie 7

2007-10-08 Thread Hulf
The problem I am getting is safari just downloads the .php file. IE7 corrupts the binary file. It opens fine on FF and IE6. Is this a headers problem? Thanks, R. http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] problems with donwload

2007-09-27 Thread Hulf
Under the results there are 3 files to download. Some users are getting an uable to read or corrupt message. http://vps.aztechost.co.uk/~trisco/index.php and 3 here http://vps.aztechost.co.uk/~trisco/rankings.php The upload script is similar if(isset($_POST['_upload']) && $_FILES['userfil

[PHP] php downlaod script

2007-09-25 Thread Hulf
My download script only gives me empty (0kb) xls files. They are being uploaded as blobs and seem ok. Can someone shed some light on why the downoad is not working. Many Thanks, R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] scaling and uploading the pt 2

2007-09-20 Thread Hulf
This is the full code so far. The files are saving but they are not resizing. Can anyone help? I need to get this $myimage = imagejpeg($thumb); into $target_path directory. H. -- if(isset($_POST['_upload']) && $_FILES['userfile']['size'] > 0) { $ima

[PHP] Re: scaling images

2007-09-20 Thread Hulf
Sorry my message was cut off. Yes I want to scale to 300 x 200px before I upload the image to my folder. Here is my code so far. thanks, H. $imageinfo = getimagesize($_FILES['userfile']['tmp_name']); echo $x=$imageinfo[0]; echo $y=$imageinfo[1]; $newwidth = 300; $newheight = 200; // Load

[PHP] scaling images

2007-09-20 Thread Hulf
I have images of varying sizes. I want them to be scaled prior to upload to a set size of 300 x 200 px $imageinfo = getimagesize($_FILES['userfile']['tmp_name']); $ix=$imageinfo[0]; $iy=$imageinfo[1]; //upload the images script I -- PHP General Mailing List (http://www.php.net/) To unsubs

[PHP] ptting the variable inside the input

2007-08-22 Thread Hulf
This does not work echo $title=$row['title']; echo ""; Ta, R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] for loop inside a switch

2007-08-16 Thread Hulf
Hi, switch ($q) { for ($i=0; $i <21; $i++) { case 'faq$i': echo $faq1; break; } } I just want to loop out a big long list of cases. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] output the schema

2007-08-03 Thread Hulf
Hi, I reword my last post. I want to take the result and generate the field info to the screen e.g id, int(10) name, varchar(30) age, varchar(30). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php SHOW

2007-08-03 Thread Hulf
I mean get the schema. ""Hulf"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Is there a way to output my data and tables using a php version of SHOW? > Doesn't have to be pretty HTML just output to screen > > Ta, > > > R. -

[PHP] php SHOW

2007-08-03 Thread Hulf
Is there a way to output my data and tables using a php version of SHOW? Doesn't have to be pretty HTML just output to screen Ta, R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] if inside an echo.

2007-07-31 Thread Hulf
I am outputting a selectbox and want to do the follwoing. How can I add the IF statement inside the the echo? for ($value = 0; $value <= 2000; $value += 100) { echo " $value"; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php