Jump to content

MGLP

Members
  • Content Count

    24
  • Joined

  • Last visited

Community Reputation

0 Neutral

About MGLP

  • Rank
    Newbie

Contact Methods

  • MSN
    MichaelPettinicchi@hotmail.com

Recent Profile Visitors

547 profile views
  1. Why do I get my image upside-down with the following? <img src=\"Exterior 13.jpg\" alt=\"FerPic 01.jpg\" width=\"600\" height=\"400\"> If I change the jpg file picture to upside-down, I get it upside-down using the same image tag. Tks
  2. MGLP

    No image result with image tag

    I tried what you said but when I put the {}, I ended up with the little black square with the white X for all of my images. Re "checking the source code that is generated" I don't understand or don't know how to do that. All I know is my source code, I.e., my PHP file. I've added a print command to print $Row[25] (which is the file name of the image) before the "img" tag is executed and the name is quite correct. The file extension is not present but I don't think that matters (It works for other image files).
  3. MGLP

    No image result with image tag

    Sorry. I was probably not clear and my apologies for the error in the code I posted. My code is actually: [<img src=\"$Row[28]\" height=\"271\" width=\"380\">] My "$Rows" comes from my code after getting a record from my database: [$Row = mysql_fetch_row($Results);] $Row[28] contains the file name/reference. It's not a problem. It works fine for many of the image files (all JPG) I use in my testing. But some of them show up as that little black box with a white X in it. Yet when I open these files directly with MS Picture Manager or other software, there's no problem. Something else has come up. Some of my images come out sleeping even if they have been saved standing (I hope I'm clear on that).
  4. This might not be an HTML problem but can anyone tell me why I get a little black square with a white X for [<img src=$Row[25] height=\"325\" width=\"380\">]? My image files are jpg and I have no problem when I open them directly using MS Picture Manager or anything else. Thank you
  5. MGLP

    Delete an Uploaded File???

    Absolutely. I should have know. Many thanks
  6. MGLP

    Delete an Uploaded File???

    The Input tag type="file" ... will upload a file but how do we delete such uploaded files? When my user deletes his record (which contains the path/name to his uploaded file) from my database, I want to delete his file also. But I have absolutely no idea how to do it. I am totally baffled! Thanks for the much needed help.
  7. MGLP

    Date Difference not working

    I get "Object of class DateInterval could not be converted to int" for my code (2nd line) [$mytoday=date('Y'."-".'m'."-".'d'); if (date_diff(date_create($mytoday),date_create($Row[23]))<32)] Note: My $mytoday = 2018-04-27 and my $Row[23] = 2018-04-26 Yet, the PHP tutorial says: [$date1=date_create("2013-03-15");$date2=date_create("2013-12-12");$diff=date_diff($date1,$date2);] So my code should work but it doesn't. I put the exact code given by the PHP tutorial in my PHP file and it doesn't work. I get the same error message as with my code. Thanks for your help.
  8. MGLP

    No image result with image tag

    Sorry to have disturbed. Upon further research, it seems there was something wrong with the image file and not a HTML matter.
  9. Why do I get a little black square with a white X for [<img src=$Row[25] height=\"325\" width=\"380\">]? $Row[25] contains the file name and that works fine with my next 9 image tags. It's a problem with the first image only; even if I change that image file. My file is a jpg and I have no problem when I open it directly using MS Picture Manager or anything else.
  10. MGLP

    Get Checkbox Data error

    Many thanks. Works beautifully!
  11. MGLP

    Get Checkbox Data error

    In my form file I have [<input type=\"checkbox\" name=\"stove\" id=\"stove\" value=\"y\">] I use [method=\"POST\"] on Submit. In my next file I have [$stove=$_POST['stove'];] which works fine if the box was checked but if the box was not checked, I get error "Notice: Undefined index: stove in...." How can I test if the checkbox has been checked? Tks
  12. MGLP

    Language Problem

    The database data is not a problem. My problem was with things like forms where the form needs to serve two different languages. So all in all it seems I need to make two sets of php files - one for each language or one set with logic to display an English form or a French form. Many thanks for your help.
  13. MGLP

    Language Problem

    So if I understand you correctly, I need to have 2 sets of php files - 1 English and 1 French - and go to one of these depending on the user's language choice? Am I correct?
  14. MGLP

    Language Problem

    In the euphoria of having gotten the solution to my first problem/question I forgot that I didn't get a reply to my 2nd problem/question which was: 2) If I want to have a choice of French and English, do I need to have 2 separate set of files or is there a translation facility and if so, can you provide me the guidance. I should perhaps have also said '... or 2 sets of code?' Example: my form says: Name:____________ Address: _____________ etc., etc., etc. but if the user has selected French, then I want: Nom:_____________ Adresse:______________ etc., etc., etc.
×