Jump to content

bford21

Members
  • Posts

    24
  • Joined

  • Last visited

    Never

Contact Methods

  • Website URL
    http://bkgallery.site90.net

Profile Information

  • Gender
    Not Telling

bford21's Achievements

Member

Member (2/5)

0

Reputation

  1. Anyone have any solutions for me. I still haven't been able to figure it out. I have however been reading up on different ways to do this and was wondering if a while loop was the way to go. Thanks
  2. Hey guys so I'm working on creating my own CMS for my website and one of the features I am having trouble with is creating the script to mail a newsletter to everyone in the database. I thought it would be simple enough but I cant seem to figure it out. When I run the code below everything seems to work however only the first email in the database actually receives an email. I think it might be something with my while() loop but I'm not sure. Any help would be greatly appreciated. $subject = $_POST['subject']; $message = nl2br($_POST['message']); // To send HTML mail, the Content-type header must be set $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // Additional headers $headers .= 'From: B.net' . "\r\n"; // Connect to database // requires Global Functions ratings_db_connect(); // Finds the number of verified subscriptions $qry ="SELECT * FROM subscriptions WHERE verified ='yes'"; $result = mysql_query($qry); while ($email = mysql_fetch_array($result)){ $email = $email['email']; mail ($email,$subject,$message,$headers); }
  3. Thanks for the pagination idea. I remember thinking about that awhile back and forgot about it. Also I'm looking at the nav bar for the tutorials section now and something definitely needs to be done with it. Thanks for pointing it out.
  4. Hey everyone, I've been working on this site on and off now for almost a year. I put a lot of time into it and its a huge improvement from anything I've done in the past. I realize that I don't have the best eye for design, however I try my best. On this project I was more worried about the content than overall design, however I'm happy with it. I was just wondering what advice you guys could offer on how it could be improved. Did I spell something wrong? Does it look right in your browser. Do you like the colors etc. I appreciate anything you guys can throw at me! My Site: http://bkgallery.site90.net
  5. I've been teaching myself PHP and web design for about 2 years now and I've come along way. I just recently finished my own personal website which hosts multiple PHP projects and tutorials. I've created my own rating system and comment system as well. Before registering my own domain name I thought I mine as well post it here and see what flaws you guys can find cause I'm sure theres a bunch. However I kindly ask that if you do find a flaw please don't cause any damage to the site and just report it here. My Site : http://bkgallery.site90.net/ Proof its mine: http://bkgallery.site90.net/phpfreaks.html Thanks in advance for all the feedback!
  6. I want to display two tables on one line keeping the width of the table. In the past whenever I've wanted two things on the same line I've always floated one left and the other right. I've tried doing this here but the tables have a width of 45% and when they get floated its as if thats ignored. Heres a picture to better explain the situation. http://i52.tinypic.com/2ry1vur.jpg Thanks in advance for all your help.
  7. Well I've think its about time I purchased a laptop but I want to make sure I get something that suits my needs. Hardware wise I am clueless so I need your help. I'm looking for something under $700 and brand doesn't mean much. I'll be dual-booting Linux and most likely what ever shitty version of windows comes pre-installed. I'll be using it for programming, Photoshop, web surfing, screen recording, actually gaming and all the other little things you associate with general everyday computer use. I also would like something with good battery life and isn't ridiculously loud. So far I like the following two. http://www.newegg.com/Product/Product.aspx?Item=N82E16834157533 http://www.newegg.com/Product/Product.aspx?Item=N82E16834115984&cm_re=acer_laptop_i5-_-34-115-984-_-Product Links and advise would be much appreciated. I need your expertise!
  8. bford21

    IE issues

    Hey guys I've been working on this site on and off now for a year or so and when I made the general template I made sure it worked in IE, FF and Chrome. I just finished doing some major work such as validating every page as best I could and putting the layout into PHP includes for easier editing. Now I don't know what it is but somewhere along the way things got messed up. Now when I open the site in IE things are a mess. I don't know if these issues are because IE updated or if I somehow managed to mess things up big time when I was updating the site. Anyhow any advice on how to fix the issues would be greatly appreciated. Site: http://bkgallery.site90.net CSS: http://pastebin.com/J2iDDc7u
  9. I could be completely wrong here but in your form you use method="get". If I read your post correctly you'd want to use method="post". Then again I could be wrong.
  10. So I have a site with about 100 pages and its getting to the point where making edits to every single page is annoying. I know I could edit the existing pages to use PHP includes to make editing down the road easier, however I don't expect the site to grow to more than 150 pages and was wondering if it will be worth it. If I were to edit my site to use PHP includes I would have to go through every page and edit it correctly. I would have to change every file extension of every page to .php, thus making me have to edit all links on all pages. Thats a hell of a lot of work. Thanks in advance for the advice. P.S If you have an alternative solution then I'm all ears.
  11. I recommend optimizing all your images some of them took way to long to load and I simply exited out. I have fast internet, I can only imagine how long they would take with a slower connection.
  12. The only two things I would change in the current design is your navigation and that image of the paint brush. The paint brush was poorly cut out in Photoshop and those white pixels around the edges really stick out against the black background. Other than that though I think you have a good start.
  13. Ahh yes it works. Thanks again everyone for your help. Just as I thought it was a few small errors. Thanks again I love this place.
  14. ahh see I knew it would be something simple. I fixed the code to look like this. mysql_query("INSERT INTO subscriptions (email, confirmation number, verified) VALUES ($email, $confirmation_number, 'no')") or die('Error'); That gets rid of the error but now I still cant insert the data into the database.
  15. Alright so I am in the middle of creating an email subscription script and I am having trouble storing the users info in my MySQL database. I have no idea why. I've looked things over 100 times and I still cant get it. Heres what my code looks like. // Connect to database // requires Global Functions ratings_db_connect(); mysql_query("INSERT INTO subscriptions (email, confirmation number, verified) VALUES ($email, $confirmation_number, 'no')"); or die(); I know I have a database connection, the problem lies in the mysql_query. I added or die(); to see if my query was actually working and it wasnt. After adding or die(); I keep getting this error. That error goes away if I remove or die(); but then still my info doesn't get put into the database. I am sure this is a simple fix and I am just not seeing it. Any help would be greatly appreciated.
×
×
  • 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.