Jump to content

olie480

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

olie480's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Well basically I am just using the $content variable to send out a HTML email, which is why I am using the FIND & REPLACE method. I can't seem to find another way to pass it through to email to everyone. So I would use it as: <?php mail("olie@whatever.com", $subject, $content); ?> But whenever I use the <?php $content = include("../html.inc.php"); ?> The only thing that shows up in the email is the number 1 I should also let you know that I am setting this up because variable data is being sent from MySql to input into the HTML portion... Like "Hello Mike!... yadda yadda yadda..."
  2. Hello Freaks!! I have a question that has been boggling my mind for sometime, but never looked into it. Basically what I have been doing is trying to send HTML info through a variable, but everytime I do it, I have to select the HTML and do a FIND: " & REPLACE WITH: \" in Dreamweaver. It was fun in the beginning, but now it seems to be a pain, and wish to just do a simple include("../htmlinfo.php"); But when I do that of course, the variables that I am trying to pass through do not get executed. I am basically doing this for HTML Email and stuff. So to recap, I want to turn this: <?php $content = "<head> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /> <title>Untitled Document</title> </head> <body> <table width=\"654\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"> <tr> <td>CONTACT</td> <td> </td> </tr> <tr> <td align=\"right\">Name:</td> <td> </td> </tr> <tr> <td align=\"right\">Number:</td> <td> </td> </tr> <tr> <td align=\"right\">Email:</td> <td> </td> </tr> <tr> <td align=\"right\">City:</td> <td> </td> </tr> <tr> <td> </td> <td> </td> </tr> </table> </body> </html>"; ?> TO THIS: <?php $content = include("../htmlform.inc.php"); ?> The reason why I want to make this simple is because if I change something in the HTML, I have to repaste the code, and do the FIND and REPLACE method again. Just does not seem too efficient. Any suggestions? Thank you! Olie
  3. Hey everyone. I was wondering if anyone had a situation where their server provider disabled the PHP MSSQL module, and will not enable it for you, and your code is strictly PHP based. That is the situation I have with 1and1.com hosting. Our server in house is MSSQL, and I am trying to figure out how I can search it using PHP combined with Java, or any other technology through our website to our office database. My last resort would be ditching my PHP knowledge and trying to learn ASP.NET and get my server switched over from Linux to Windows, but I think there has to be a better way. Anyone have any solutions? Thanks!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.