repeating region of php email function doesn't work do not

I have a form which should be sent by electronic mail and like products attached to it. However, I have a repeat region to list all products, but when I send the e-mail Island shows that the first item on the list.


below is the form set up

emailer

E-mail information new tenant

        $to = ' [email protected] ';// . ',' . "$row_rsOrder ['email']";

$to = $row_rsOrder ['email'];

$subject = "order details";

$message ="

< html >

< head >

< title > Dear ".» $row_rsOrder ["FirstName"]. $row_rsOrder ["LastName"]. "Please see the details of your order below < /title >

< / head >

< body >

" < img src =-" http://www.website.com/images/logoBLPP.jpg \" alt=\"" />

Your order of B < h2 >. $row_rsOrder ["OrderID"]. "< / h2 >

< table width = "800" border = "0" cellspacing = "0" cellpadding = "0" >

< tr > < td > < p > thank you for shopping below are you details of the order you placed recently. If you have any questions please contact us < /p >

< br / >

< /a > < /p >

< tr > < td > < table > < /tr > < / table >

< table width = '980' border = "1" cellspacing = "0" cellpadding = "10" >

< tr valign = "top" >

< td bgcolor = "#E9E9E9" class = "header1" > Customer Name < table >

< class td 'text' = > "." $row_rsOrder ["FirstName"]. $row_rsOrder ["LastName"]. "< table >

< td bgcolor = "#E9E9E9" class = "header1" > Order ID < table >

< td bgcolor = "#E9E9E9" class = "text" > "." $row_rsOrder ["OrderID"]. "< table >

< td bgcolor = "#E9E9E9" class = "header1" > status command < table >

< class td 'text' = > "." $row_rsOrder ["TransactResult"]. "< table >

< /tr >

< tr valign = "top" >

< td bgcolor = "#E9E9E9" class = "header1" > Email < table >

< class td 'text' = > "." $row_rsOrder ['email']. "< table >

< td bgcolor = "#E9E9E9" class = "header1" > < table >

< class td = "text" > < table >

< td bgcolor = "#E9E9E9" > < span class = "header1" > </span > < table > Order Date

< class td 'text' = > '.makeDateTime ($row_rsOrder ["OrderDate"], '%#d %B %Y', true). "< table >

< /tr >

< tr valign = "top" >

< td bgcolor = "#E9E9E9" class = "header1" > shipping address < table >

< class td = "text" > < p > "." $row_rsOrder ['address']. "< /p >

< p > "." $row_rsOrder ['city']. "< /p >

< p > "." $row_rsOrder ['postal code']. "< /p >

< p > "." $row_rsOrder ['country']. "< /p >

< p > < /p > < table >

< td > < table >

< td > < table >

"< td colspan ="2"align ="right"valign ="bottom"> < span class ="head"> ORDER TOTAL: DoFormatCurrency ($row_rsOrder ['Total'], 2, ','.', ' £', ""). "". "< br / >"

"</span > < span class ="text"> shipment: DoFormatCurrency (['shipping'], 2 $row_rsOrder, ','.', ' £', ""). "". "</span > < span class ="head"> < br / >"

</span > < table >

< /tr >

< tr valign = "top" >

< td bgcolor = "#E9E9E9" class = "header1" > Product ID < table >

< td bgcolor = "#E9E9E9" class = "header1" > < table > Product Description

< td bgcolor = "#E9E9E9" colspan = "2" class = "header1" > size < table >

< td bgcolor = "#E9E9E9" > < span class = "header1" > quantity </span > < table >

< td bgcolor = "#E9E9E9" align = "right" > < span class = "header1" > price </span > < table >

< /tr >

      <? php do { ?>

< tr valign = "top" >

< class td 'text' = > "." $row_rsOrder ['ProductID']. "< table >

< class td 'text' = > "." $row_rsOrder ['product']. «, ». $row_rsOrder ["productGroupGUID"]. "< table >

< td colspan = "2" class = "text" > "." $row_rsOrder ["UnitSize"]. "< table >

< td > < span class = "text" > "." $row_rsOrder ['quantity']. "</span > < table >

< td align = 'right' class = "text" > ". DoFormatCurrency ($row_rsOrder ["UnitPrice'"], 2, ','.', ' £', ""). "." "< table >

< /tr >

      <? php } while ($row_rsOrder = mysql_fetch_assoc($rsOrder)); ?>

< tr valign = "top" >

< class td = "text" > < table >

< class td = "text" > < table >

< td colspan = "2" class = "text" > < table >

< td > < table >

< td > < table >

< /tr >

< /table >

< / body >

< / html >

";

Content-type always defined when sending HTML email

$headers = "MIME-Version: 1.0 '. « \r\n » ;

$headers. = "content-type: text / html;" Charset = UTF-8 ". « \r\n » ;

$headers. = "from: company name < " [email protected] > '. "\r\n";

$send = mail ($ $subject, $message, $headers);

Yes, all THE information in the database was recovered and sent to the email. Only 3 products for test purposes.

I just tested it down to the do-while loop. After that html table code is absent.

You have to bare in mind, this is a crude test. The updated database in place the query is not as complex as yours is, so maybe it's why his work, but certainly break the 'message' is the way to go. I can try to get another table products tomorrow if I have time to test.

Database to html code and column names are the same as you have. the recordeset is "rsOrders" instead of "Mina" that you used.

<>

If (! function_exists ("GetSQLValueString")) {}

function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

{

If (via PHP_VERSION< 6)="">

$theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;

}

$theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($theValue);

Switch ($theType) {}

case 'text ':

$theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

break;

case "long":

case "int":

$theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';

break;

case "double":

$theValue = ($theValue! = "")? doubleVal ($TheValue): 'NULL ';

break;

case "date":

$theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

break;

case "set":

$theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;

break;

}

Return $theValue;

}

}

@mysql_select_db ($database_conDonations, $conDonations);

$query_rsOrders = "SELECT * FROM orders";

$rsOrders = mysql_query ($query_rsOrders, $conDonations) or die (mysql_error ());

$row_rsOrders = mysql_fetch_assoc ($rsOrders);

$totalRows_rsOrders = mysql_num_rows ($rsOrders);

emailer

E-mail information new tenant

$to = ' [email protected]'; / /. ',' . "$row_rsOrder ['email'];

$to = $row_rsOrder ['email'];

$subject = "order details";

$message ="

Dear ".» $row_rsOrders ["FirstName"]. "see your order below details

' http://www.website.com/images/logoBLPP.jpg-' alt =------"------" / >

Your order of B. $row_rsOrders ["OrderID"]. »

Thank you for shopping below are you details of the order you placed recently. If you have any questions please contact us


Name of the customer «. $row_rsOrders ["FirstName"]. » Command ID «. $row_rsOrders ["OrderID"]. » Status of orders «. $row_rsOrders ["TransactResult"]. »
E-mail «. $row_rsOrders ['email']. » Order date «. $row_rsOrders ["OrderDate"]. »
Shipping address

«. $row_rsOrders ['address']. »

«. $row_rsOrders ['city']. »

«. $row_rsOrders ['postal code']. »

«. $row_rsOrders ['country']. »

ORDER TOTAL: "." $row_rsOrders ['total']. »

Shipping: "." $row_rsOrders ["expedition"]. »

Product ID

Product description

Size

Quantity

Price

";

?>

"?>

«. $row_rsOrders ['product']. »

«. $row_rsOrders ["UnitSize"]. »

«. $row_rsOrders ['quantity']. »

«. $row_rsOrders ['UnitPrice']. »

";

?>

"?>

Content-type always defined when sending HTML email

$headers = "MIME-Version: 1.0 '. « \r\n » ;

$headers. = "content-type: text / html;" Charset = UTF-8 ". « \r\n » ;

$headers. = "from: company name [email protected]> '."\r\n";"

$send = mail ($ $subject, $message, $headers);

mysql_free_result ($rsOrders);

?>

Tags: Dreamweaver

Similar Questions

  • PHP mail form doesn't work do not

    Can someone let me know if they notice why the email is not received? I would really appreciate the help. I have included my code below.

    < are method = "post" name = "ClientInterest" action = "sendEmail.php" >

    < class p = "name" >

    < input name = "name" type = "text" class = "validate [required, custom [onlyletter], [0,100] length] entry-feedback" placeholder = "Name" id = "name" / > "

    < /p >

    < class p 'email' = >

    < input name = "email" type = "text" class = "validate [required, custom [email]] entry-feedback" id = "email" placeholder = "Email" / > "

    < /p >

    < class p = "text" >

    < name textarea = "text" class = "validate feedback-comments [, length [6,3000]]" id = "comment" placeholder = "Comment" > < / textarea > "

    < /p >

    < div class = "submit" >

    < input type = "submit" value = "SEND" id = "button" / >

    < / div >

    < / make >

    <? PHP

    $name = $_POST ['name'];

    $email = $_POST ['email'];

    $text = $_POST ['text'];

    $forward = 1; redirect #? 1: Yes. 0: no

    $location = "index.html";

    ? >

    <? PHP

    $email_from = "$email";

    $email_subject = "customer interest."

    $email_body = "you have received a new message from $name. $email '.»

    "The message is: $text.

    $to = ' [address removed by the moderator email"; "] ".

    $headers = "from: $email_from \r\n";

    $headers = "reply-To: $email \r\n";

    mail ($to, $email_subject, $email_body, $headers);

    If ($forward = 1) {}

    Header ("' Location: $location '");

    }

    else {}

    ECHO ("thank you for submitting our form. We will answer you as soon as possible. ») ;

    }

    ? >

    Your web server supports PHPl?

    Have you checked your spam folder?

    BTW, your script is not sure. I wouldn't use it.  See the link below for a safe script.

    ALT-Web Design & Publishing: sensitive Contact form with 3.2 Bootstrap and PHP (part 1)

    Nancy O.

  • Photosmart HP 6520 all-in-one: Photosmart HP 6520 Scan to computer function doesn't work is not after the driver download

    After that our latest operating system updated, our HP Photosmart 6520 had scanning problems.  Usually a reboot or as part of the scan on the HP computer would work.  Today, I downloaded the latest driver in the hope that could solve the problem.  Now the scanner is not recognize the computer, and I can't enable analysis of the it function with HP on my Mac utility.  The print feature works very well.   This message I see in the HP utility:

    "The HP software required for the Scan of the computer could not be located on this computer. Please download and install the latest HP recommended software for your device to http://www.hp.com/supportand then try again. »

    I searched HP website, but I can't find anything other than the driver I downloaded for Mac OS X 10.10.

    What can I do to get my scanner up and running again?  Thank you very much for your help!

    Hi @kjnowicki

    I want to help you with your scanning device.

    We will reset the printing system, repair disk permissions, add the printer using the driver and try to start a new search.

    Reset the printing system

    1. Click on the Apple icon ( ), then click on System Preferences.
  • spell check doesn't work is not in outlook on windows 7

    Hi the spell checker doesn't work is not in my outlook for windows 7. This can be corrected?

    Sincerely, Robert H.C.

    Outlook.com has a manual spell at the top next to the options button controlIt won't appear that if you write an e-mail AND if your browser is not checking spelling himself. In most modern browsers the spell checking is done by the browser itself and may need to be enabled in this browser

    IE , it depends on the version you have.
  • with firefox 43 yahoo and yahoo mail doesn't work does not correctly

    With the help of win 7 and firefox 43.0.1, I have 4 computers and now all have problems with yahoo and yahoo mail doesn't work does not correctly. Loading sites, but most of the features are missing and clicking on what whether changes to the lists of text. I have disabled flash / anti-spam etc., cleared cookies and cache and even firefox loaded down once again and have upgraded, no help. I'm forced to use IE now.

    I tried Yahoo support, they said try Firefox... In any case, it's Firefox and I found a solution using the 'Refresh Firefox' button. Whatever the problem was fixed on two of my computers so far. Got to update my setting again but it's 10 m, compared to the 10 hours I spent trying all that is nothing.

    Thanks for the help!

  • functions of YouTube works do not (such as adding to the playlist comment)

    Hello.
    functions of YouTube works do not (such as adding to the playlist comment) has stopped working, they are still working for the same account on chrome or another browser. (when it happened I didn't update or downgrade programs, addons, plugins that run in firefox or chrome, I don't see why all of a sudden).
    so I can't like videos, I get the message 'feature not available try later', can't add videos to the playlist (whole playlist including fav, as: Watch more later playlist pre made by youtube) and can't comment, for these 2 functions, I get the message 'invalid request '.
    all this happen again and many times, they stop or I can't make it work with reboot, refresh, try again.
    I did a fresh install of firefox and all it's the addons, plugins, same installation fees of adobe and divx, vlc products (which have the plugins or addons in firefox)
    After installing I could like comment add to playlist, before the snap all the addons, but I could only play HTML5 in youtube, any video that had no HTML5 support required at adobe. (after that I installed adobe it worked until I restarted the browser).
    now it does not work yet. (to disable, uninstall all the addons, plugins does not affect the problem)

    Some issues may also occur because of ProxTube - at least, I realized that I was was instantly redirected to the first film in the playlist on youtube - having no chance to see the entire playlist. It works when I disabled ProxTube.

  • DNG Converter doesn't work is not on a camera called raw photo

    DNG Converter doesn't work is not on a raw photo camera that always comes back with this Message "check if the camera is recognized.   "

    Supported cameras Camera Raw plugin | Compatible cameras

  • LR 5 doesn't work is not on the new Macbook Pro.

    LR 5 doesn't work is not on the new Macbook Pro.  Have tried 2 CC downloads, download licensed 5.6 and 5.5 download licensed, all the results in the same thing.  It comes up with the screen base but no signs and gives that an error occurred when changing the modules.  Nothing I have tried seems to help.  He also said "start with lightroom mobile at the top on the left, although it said it's Lr 5.6.  Anyone else having problems?  Calls to adobe are no help and have to wait until Monday for technical support.  Surely this must run on a NEW laptop with any other installed software!

    Setup logs was very good.  Application installed but is not working properly.  Finally got Adobe support and it turns out be a file permissions error.  Had to add applications and myself as accessors of the Lightroom folder under ~/Library/Adobe/ path and set permissions to read & write (was read only for everything except system) and apply to all the cases closed.   Works fine now.  Including this here in case when someone else is going through this issue.

  • I have a brand new installation of 13 PS elements. How I have difficulty drag and drop doesn't work is not on my system Windows 7 Pro 64-bit?

    I just installed PS 13 items on my system Windows 7 Pro 64-bit. Mouse clicking works, but how I have difficulty drag and drop works do not? For example, I can't create a selection rectangle or drag the sliders or move the panels of the tool or resize a text box, I tried as an administrator (it does not help). Same "ClickLock" in Windows does not drag. No other program on my machine has problems. Help!

    Reset preferences did not set anything. Even reinstall 13 elements PS has not fixed anything.

    However, late breaking new...

    See other discussions on this topic, which suggests a conflict of startup program that might be the cause, I did some experiments.

    All the functions of the mouse to 13 PS elements worked well if I started my Windows 7 in "safe" mode
    So, back in 'normal' mode, I manually disabled all startup programs. Returned mouse problem.
    Enter the control panel "services", I disabled 'Synergy' (a program that allows me to share my keyboard and mouse between two computers). Fixed a problem.
    The reactivation of all the startup programs while leaving a synergy service is turned off, everything works still fine.
    Start all programs present and re-empowerment synergy, but turned off its 'high privilege check box. Everything is still fine.

    Conclusion: Synergy in high privilege mode service was the only culprit.
    Synergy in non high mode allows my PS 13 items and keyboard/mouse sharing to coexist.

    The strange thing is that only PS elements 13 was affected by synergy. I detect no problems anywhere else. But it doesn't matter; the new arrangement (no high synergy) works fine for everything.

    Al

  • WiFi doesn't work do not

    A year and half ago we bought a new Mac and the Time Capsule (TC) to go with it. I tried to set up at the start and think about this topic, I do not think that it has never worked properly. I say this because we got a new modem without router because time Capsule has an inside, and we are unable to connect to wifi. I have a TB Ethernet connection and if I can get online in this way, but the WiFi does not work. Last night, I went through and set up and the WiFi worked, but today it no longer works and I can't seem to do it again.

    The indication of WiFi signal says I'm connected, on my Mac and on our phones, but when you disconnect from data it no longer works. It's very frustrating because I don't want to have to go back to a modem/router of the rental of our cable company.

    We have just upgraded to OS X El Capitan 10.11.6

    When it worked last night I created everything from scratch. But I do not think that I would have to do every time I need to use the internet. I also tried to create a WiFi with a custom DNS but that doesn't work anymore.

    Any help would be appreciated.

    Thank you.

    Amazing!

    I am so embarrassed but understand that I would update in the case where everyone does the same thing.

    When I put in 1.5 years ago I went from ethernet cables. The Ethernet cable from the modem was connected to the LAN port and the Ethernet cable from the Mac was connected to the WAN. Once I put the cable from the modem to the WAN everything has worked.

    Sometimes, just come back to square one.

  • Crossfade doesn't work does not in iTunes 12.4

    I use OS x El Capitan 10.11.1. set iTunes to automatically level to 12.4. I played music on a playlist with crossfade turned on, but none of the songs crossfaded. I am aware of crossfade doesn't work every time that the songs are played in order any of the same artist and album, but my playlist was not organized as such, so it should work. I tried to turn the market feature and quit iTunes and restart, but no luck. Any suggestions?

    Although I usually do not use this feature, you seem to be correct.  Can operate either...  You can report the problem here

    https://www.Apple.com/feedback/ (under OS X Apps - iTunes)

  • Touchscreen doesn't work is not for the Satellite U920t - 10 p

    Please read this completely before you answer with your copied and pasted answers.

    My touch screen lets you stop work, but was still attached with a reboot of the machine.
    Now it doesn't work at all and * I've tried everything posted elsewhere in this forum *.

    I tried to change the settings for battery power, try to update the drivers (not exactly who is right though!).

    Please can anyone help because it is a new machine and it's very frustrating.

    Serial number: 7D054633H
    Model: Toshiba Satellite U920t - PSUL1E-01900JEN 10 p

    Thanks in advance.

    > Please read this completely before you answer with your copied and pasted answers.
    IMHO, I n t think that someone here in the forum doesn t read the messages before playback
    I hope that this part of your post is just the result of frustration due to the malfunction of the notebook...

    Back to your question:
    > I tried everything already posted elsewhere in this forum.
    and what does this mean? What have you tried exactly?
    Have you given zero and plant control panel?

    If not try and in the case where this help not the laptop's hardware could be affected which requires new checks of material by an authorized

  • HP 14-r206nv: light wireless led doesn't work do not

    I have a very minor issue that don't mind operating of the laptop, but I'm curious to know why it does not work, because I know that before reinstalling windows it worked normally.

    Well well, to the point now. After a hard drive failure and replacement, Windows 8.1 are installed again and each driver has been installed and works well. The only thing that doesn't work is the led light button wireless (F12). The button is working correctly, activation and deactivation of the Wi - fi, but not the led. It lights, neither white nor red, it is always disabled.

    The model of the wireless card is Realtek RTL8723BE.

    I installed the drivers from the HP site.

    Version of the driver for the wireless card is 2013.8.915.2014

    The version of the wireless button driver is 1.1.7.1

    I tried the latest drivers for the card (an optional windows updates finds) implemented to date for this and the wireless button (if I try update driver in Device Manager, it installs a new) but nothing has changed for good so I decided to go back to what the official site suggests and post here.

    Hi @v1184,

    Thank you for your inquiry.

    I understand that you had a hard drive failure and he had to be replaced, you did. You reinstalled Windows 8.1 and all drivers are up to date.  The only problem you are having is that the wireless button light does not illuminate, but it does not work.

    You tried to update the wireless driver button, but has not changed, so you returned back to the recommended HP driver.  As the wireless button does not work it is not the driver, however, it could be that the light burned. The other possibility would be that when you replaced the hard drive, the connection has been dislodged or disconnected and must be reconnected.

    Please let me know if this information helps you solve the problem by marking this message as 'accept as Solution', this will help others easily find the information they seek.  In addition, by clicking on ' Thumbs Up ' below is a great way to say thank you!

  • IPhone 6s off right speaker doesn't work is not on the helmet

    IPhone 6s off right speaker doesn't work don't not on the helmet, tried 3 different sets of headphones, have tried to clean shooting, reloading the OS etc., checked the slider etc, still no joy, any suggestions very welcome. It works on both speakers if I don't push the CAP fully home (but he then falls easily).

    Are you sure that you're pushing all the way?  If you are, this looks like a connector damaged in the phone. As a 6 s that it is still under warranty, then take it to an Apple store.

  • WIFI doesn't work does not correctly after driver update

    I have a DESIRE 4 laptop 1023tu with operating system Windows 8 PRO. My WIFI works does not properly after the update drievr.

    Problems...

    1. When you try to connect to a wifi hotspot the quick adapter turns off and allows the card instantly

    2. after connected, sometimes no internet access and the problem turns off only after reconnecting to the netwrok after setting off.

    If the update doesn't work not for you then do as I explained in my previous post and roll back to the previous driver. This philosophy can be applied to all updates.

    If there is no pressure or emerging reason to update to your PC or laptop works just great... do not update. (this is especially true when it comes to an update of the BIOS)

    For your question #2, the problem could be your wireless (modem, router or access point) which causes the connection dropped.

    Best regards
    ERICO

Maybe you are looking for

  • How the * can I get rid of Yahoo search - Firefox still refuses my changes at the next startup.

    Work in Win10.Firefox refuses to keep the changes I made to remove Yahoo.Remove all browsers except Google - next time you start it again Yahoo!No other browser has been replaced, with the exception of Yahoo. It's very 'big brother', which I don't ex

  • Screenswavers

    My HP G61 laptop no longer goes to the idle screen after some time, I chose.   He doesn't even go to a white screen after a period of not used.  Often, there's just about everything I used last. Any help would be appreciated.

  • HP 15 Notebook: Mute light does not turn off!

    Hey so been having this problem with my light on the button mute. It does not turn off. I checked to see if the volume works and it makes. Mute works but the light just stays on. Help!

  • Why my computer displays a restore point (dated today ' hui), even when I click on show other points of restoration?

    I'm trying to restore my computer to a previous point, because it's strange (temporary is assigned to some users and the computer itself freezing). I did it before on an older computer which ran on XP. But my current Windows 7 system gives me only a

  • NATting a server

    I have a Nat problem that is confounding me. Today, in our lab, I have a video server that is on the subnet 10.16. 42.91/26 This subnet is managed by a L3 with L3 routing switch to the rest of the network. I need this test server on a WAN access emul