Jump to content

I-AM-OBODO

Members
  • Content Count

    365
  • Joined

  • Last visited

Community Reputation

1 Neutral

About I-AM-OBODO

  • Rank
    Advanced Member

Contact Methods

  • AIM
    funkyfel
  • MSN
    funkyfela
  • Yahoo
    funkyfela
  • Skype
    chidi.james

Profile Information

  • Gender
    Male
  • Location
    Nigeria
  • Interests
    Computer, Playing Video Games, Learning
  1. I-AM-OBODO

    Echo Download Link

    In between, The download attribute is not supported by older browsers though
  2. I-AM-OBODO

    Echo Download Link

    The concatenation does the job. The work of concatenation(the dot) is to join. So mine as well is very ok. So whichever way you feel like, its up to you!
  3. I-AM-OBODO

    Echo Download Link

    Oops! somehow through trial and error i got it working. Thanks.
  4. I-AM-OBODO

    Echo Download Link

    Hi guys, I stored the path of a file in a database and the file in a folder, now i want users to click on a link and be able to download the file. I tried: echo " Download <a href=".$file_path." download>Here</a>"; ?> Didnt work, just took me to the path of the image. What i want is a link and when clicked the download window pops out. Thanks
  5. I-AM-OBODO

    Database not connecting again!!!

    Will do. Thanks
  6. I-AM-OBODO

    Database not connecting again!!!

    Thanks all. Seen the problem. It was from an a file i included. It was obsolete. Uses mysql instead of mysqli. Problem resolved. Thanks
  7. I-AM-OBODO

    Database not connecting again!!!

    ok. Will do. Thanks
  8. I-AM-OBODO

    Database not connecting again!!!

    Dont know if its off or on (live) but on my local server everything is working just fine
  9. I-AM-OBODO

    Database not connecting again!!!

    Its showing just blank page
  10. Hi all. My database just stopped connecting? I have tried everything i could but no way! When i login to the page, it shows just blank page. So i started trying to figure out what could be the problem by disabling some included files. Then i discovered the problem is from my database connection. I re-uploaded the files and still not working (still blank) What could have happened and what can i do? I even went as far as creating the database connection inside the page to see if it will work but still no way! Thanks
  11. I-AM-OBODO

    Sending mail from multiple table

    Yeah. I know PHPMailer will save resource, that is what i initially planned to use but the loop is where i have problem so i just decided to use the mail() function. How will the loop look like?
  12. I-AM-OBODO

    Sending mail from multiple table

    Thanks
  13. I-AM-OBODO

    Sending mail from multiple table

    Was thinking there's a way i could do a select and send mails instead multiple sendmail
  14. Hi guys, Whats the best way of sending mails from multiple table? This is what i did, but i feel there should be a better way of doing it cos sometime it delivers and sometimes it doesn't (don't know why though). Thanks $subj="New Sign up Notification"; $header="MIME-Version: 1.0" . "\r\n"; $header .="Content-type:text/html;charset=UTF-8" . "\r\n"; $header .="From: GOODGUYS<noreply@yoyo.com>"; //TABLE 1 $t1 = "table1"; $stmt = $pdo->query(" SELECT t1_email, t1_name FROM $t1 "); while($rows = $stmt->fetch(PDO::FETCH_ASSOC)){ $t1_name = $rows['t1_name']; $t1_email = $rows['t1_email']; $t1_msg =" <html> <body> <h3>Subject: News</h3> <p> Hi $t1_name, <br> This is a message to you blah blah blah </p> <p> Thank you.<br> </p> </body> </html> "; mail($t1_email,$subj,$t1_msg,$header); } //TABLE 2 $t2 = "table2"; $stmt = $pdo->query(" SELECT t2_email, t2_name FROM $t2 "); while($rows = $stmt->fetch(PDO::FETCH_ASSOC)){ $t2_name = $rows['t2_name']; $t2_email = $rows['t2_email']; $t2_msg =" <html> <body> <h3>Subject: News</h3> <p> Hi $t2_name, <br> This is a message to you blah blah blah </p> <p> Thank you.<br> </p> </body> </html> "; mail($t2_email,$subj,$t2_msg,$header); } //TABLE 3 $t3 = "table3"; $stmt = $pdo->query(" SELECT t3_email, t3_name FROM $t3 "); while($rows = $stmt->fetch(PDO::FETCH_ASSOC)){ $t3_name = $rows['t3_name']; $t3_email = $rows['t3_email']; $t2_msg =" <html> <body> <h3>Subject: News</h3> <p> Hi $t3_name, <br> This is a message to you blah blah blah </p> <p> Thank you.<br> </p> </body> </html> "; mail($t3_email,$subj,$t3_msg,$header); }
×

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.