Jump to content

Colton.Wagner

Members
  • Posts

    157
  • Joined

  • Last visited

Everything posted by Colton.Wagner

  1. Yes it would be okay as all data is encrypted. Sorry I didn't read anything but the header.
  2. Assuming you are not using https it would be a bad thing because all of that information would be passed a crossed the internet. I always refill the email and username but I always reset the password for the user's security. Thanks, Colton Wagner
  3. do you truley own all the URL's mobsters0".rand(1,9).com and may I ask why you do that? Is it to bypass blocks? because that will still get blocked because it is still going to the same Ip address. Thanks, Colton Wagner
  4. First off please use code tags for future reference. I think the source of your problem is in the line: power_id IN ("' . $powers . '")'; I have never seen IN used as a part of the DELETE syntax. I found no documentation for it either. Basically you are not testing to see if anything is equal to the power_id column. I think you have just messed up your mysql syntax. Thanks, Colton Wagner
  5. Here is the problem if you want the logo and the link bar to be on the same line and have the logo on the left and the link bar on the right you must make sure that the logo does not take up all of the space in the header as far as width goes. You have the logo set to be 1000px and the header to be 1000px where is the search bar supposed to fit in there? if you want the search bar to float right on the next line then use: clear: left; float: right; If you want the search bar to be in the logo which is very common you must set the search bar div inside the logo div and align it within those constraints. If you could be a little bit more descriptive on what you want done I could be more help. Thanks, Colton Wagner
  6. First off please use code tags for future posts. Are you sure your $querystmnt is correct? Also if you are going to set something as just $row with no array value then you must have you statement formed with a WHERE: $query = mysql_query("SELECT * FROM test WHERE id='1'"); I think the problem lies within your mysql but I can not tell. Thanks, Colton Wagner
  7. Could you be more descriptive? Are you asking how you should set up the database or are you asking for someone to write the entire code? Also SQL or MYSQL? Thanks, Colton Wagner
  8. Did you get it all solved? Thanks, Colton Wagner
  9. You set the variable $bool and did nothing with it and you never called it. I removed it I am assuming you were trying to put in an error catch for it but I just removed it. <?php //make connection with database $con = mysql_connect("XXXXXXXXX","XXXXXXXXXX","XXXXXXXX"); if (!$con){ die('Could not connect: ' . mysql_error()); } mysql_select_db("dejuistestudiek", $con); //select all emails from mailing table if($con){ $sql = "SELECT * FROM mailing"; $result = mysql_query($sql); //prepare text for html mail $text = trim($_POST['TEXT']); $text = nl2br($text); $text = stripslashes($text); if($result){ while($row = mysql_fetch_array($result)){ // single recipient $to = $row['email']; // subject $subject = 'StuWay - Nieuwsbrief'; // message $message = '<html> <head> <title>Birthday Reminders for August</title> </head> <body> <p>Here are the birthdays upcoming in August!</p> <table> <tr> <th>Person</th><th>Day</th><th>Month</th><th>Year</th> </tr> <tr> <td>Joe</td><td>3rd</td><td>August</td><td>1970</td> </tr> <tr> <td>Sally</td><td>17th</td><td>August</td><td>1973</td> </tr> </table> </body> </html>'; // 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: Do-Not-Reply@dejuistestudiekeuze.be' . "\r\n"; // Mail it mail($to, $subject, $message, $headers); } } } ?> Hope I could be some help. Thanks, Colton Wagner
  10. So basically you did not set your array in the header your code is messed up. I will attempt to change it later I am on my blackberry right now but here is some of it corrected see if it works. <?php $youtubeIds = array("rHNtuaVHenM","zIAdbIMNq9g","QQ4TlJLa-n4","JccPOA12ELI","JccPOA12ELI", "TWhhXVqVB7E"); $embedCode = '<object width="853" height="505"><param name="movie" value="http://www.youtube.com/v/' . $youtubeIds['$youtubeclip'] .'?fs=1&hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/' . $youtubeIds['$youtubeclip'] .'?fs=1&hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="853" height="505"></embed></object>'; if(isset($_GET['youtubeclip'])) { if(is_numeric($_GET['youtubeclip'])) { if($_GET['youtubeclip'] >= 0 && $_GET['youtubeclip'] <= 5) { $youtubeclip = $_GET['youtubeclip']; } else { $youtubeclip = 0; } } else { $youtubeclip = 0; } $prevyoutubeclip = $youtubeclip-1; if($prevyoutubeclip < 0) { $prevyoutubeclip = 5; } $nextyoutubeclip = $youtubeclip+1; if($nextyoutubeclip > 5) { $nextyoutubeclib = 0; } $clip_names= array('Episode #1', 'Episode #2', 'Episode #3', 'Episode #4', 'Episode #5', 'Episode #6'); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Billy Green</title> <link rel="stylesheet" type="text/css" media="screen" href="episode_style.css"> </head> <body> <div class="wrapper"> <?php include 'header.php'?> <div id="episode_content"> <div class="youtube_box"> <?php echo $embedCode; ?> </div> <h2 class="clip-description">"<?php echo $clip_names[$youtubeclip]; ?>" </h2> <div class="youtube_control"> <a href="episodes.php?youtubeclip=<?php echo $prevyoutubeclip; ?>"> Previous Clip </a> <a href="episodes.php?youtubeclip=<?php echo $nextyoutubeclip; ?>"> Next Clip </a> </div> </div> <div class="clearIt"> </div> <?php include 'footer.php'?> </div> </body> </html> Tell me what happens. Thanks, Colton Wagner
  11. I have the code working here:http://kno3technology.com/apps/video-fix.php code: <?php setcookie("movie",$movie); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>What's The Weather Like?</title> <link href="http://www.kirstyjay.com/television/style.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="wrapper"> <div id="remote"><img src="http://www.kirstyjay.com/remote-sm.jpg" width="221" height="700" border="0" usemap="#Video1" /> <map name="Video1" id="Video1"> <area shape="circle" coords="109,500,14" href="#" alt="6º" /> <area shape="circle" coords="68,502,15" href="<?php echo $_SERVER['PHP_SELF']; ?>?vid=IzJP6H0QgHI" alt="5º" /> <area shape="circle" coords="151,465,14" href="#" alt="4º" /> <area shape="circle" coords="109,465,14" href="<?php echo $_SERVER['PHP_SELF']; ?>?vid=oT33ewdRJbA" alt="3º" /> <area shape="circle" coords="68,466,14" href="<?php echo $_SERVER['PHP_SELF']; ?>?vid=yJ_QAP7w8oo" alt="2º" /> <area shape="circle" coords="110,238,19" href="#" alt="English Blog" /> <area shape="rect" coords="97,36,123,59" href="#" alt="Homepage" /> </map> </div><!-- END remote --> <div id="header"> <h3>What's the weather like today?</h3> </div><!-- END header --> <div id="tv"> <div id="video"> <?php if(isset($_GET['vid'])) { $vid = $_GET['vid']; echo "<object width=\"640\" height=\"385\"><param name=\"movie\" value=\"http://www.youtube.com/v/" .$vid. "?fs=1&hl=en_GB\"></param><param name=\"allowFullScreen\" value=\"false\"></param><param name=\"allowscriptaccess\" value=\"always\"></param><embed src=\"http://www.youtube.com/v/" .$vid. "?fs=1&hl=en_GB\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"false\" width=\"640\" height=\"385\"></embed></object>";; } else { $vid = "IzJP6H0QgHI"; echo "<object width=\"640\" height=\"385\"><param name=\"movie\" value=\"http://www.youtube.com/v/" .$vid. "?fs=1&hl=en_GB\"></param><param name=\"allowFullScreen\" value=\"false\"></param><param name=\"allowscriptaccess\" value=\"always\"></param><embed src=\"http://www.youtube.com/v/" .$vid. "?fs=1&hl=en_GB\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"false\" width=\"640\" height=\"385\"></embed></object>";; } ?> </div><!-- END video --> </div><!-- END tv --> </div><!-- END wrapper --> </body> </html>
  12. Savagenoob it suppose to be a \ not a / and please use code tags. Thanks, Colton Wagner
  13. Actually void the last code and replace it with this. You never set your $vid variable. <?php setcookie("movie",$movie); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>What's The Weather Like?</title> <link href="style.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="wrapper"> <div id="remote"><img src="remote-sm.jpg" width="221" height="700" border="0" usemap="#Video1" /> <map name="Video1" id="Video1"> <area shape="circle" coords="109,500,14" href="#" alt="6º" /> <area shape="circle" coords="68,502,15" href="<?php echo $_SERVER['PHP_SELF']; ?>?vid=IzJP6H0QgHI" alt="5º" /> <area shape="circle" coords="151,465,14" href="#" alt="4º" /> <area shape="circle" coords="109,465,14" href="<?php echo $_SERVER['PHP_SELF']; ?>?vid=oT33ewdRJbA" alt="3º" /> <area shape="circle" coords="68,466,14" href="<?php echo $_SERVER['PHP_SELF']; ?>?vid=yJ_QAP7w8oo" alt="2º" /> <area shape="circle" coords="110,238,19" href="#" alt="English Blog" /> <area shape="rect" coords="97,36,123,59" href="#" alt="Homepage" /> </map> </div><!-- END remote --> <div id="header"> <h3>What's the weather like today?</h3> </div><!-- END header --> <div id="tv"> <div id="video"> <?php if(isset($_GET['vid'])) { $vid = $_GET['vid']; echo "<object width=\"640\" height=\"385\"><param name=\"movie\" value=\"http://www.youtube.com/v/" .$vid. "?fs=1&hl=en_GB\"></param><param name=\"allowFullScreen\" value=\"false\"></param><param name=\"allowscriptaccess\" value=\"always\"></param><embed src=\"http://www.youtube.com/v/" .$vid. "?fs=1&hl=en_GB\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"false\" width=\"640\" height=\"385\"></embed></object>";; } else { $vid = "IzJP6H0QgHI"; echo "<object width=\"640\" height=\"385\"><param name=\"movie\" value=\"http://www.youtube.com/v/" .$vid. "?fs=1&hl=en_GB\"></param><param name=\"allowFullScreen\" value=\"false\"></param><param name=\"allowscriptaccess\" value=\"always\"></param><embed src=\"http://www.youtube.com/v/" .$vid. "?fs=1&hl=en_GB\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"false\" width=\"640\" height=\"385\"></embed></object>";; } ?> </div><!-- END video --> </div><!-- END tv --> </div><!-- END wrapper --> </body> </html> Sorry for the invaluable post. Thanks, Colton Wagner
  14. I made a few changes for starters you had <?php to start your php everywhere except for where you set the cookie. Also after checking your source code you have 2 question marks so I changed the later one to an ampersand that is how the get method is formed in headers. Please tell me if this works for you. <?php setcookie("movie",$movie); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>What's The Weather Like?</title> <link href="style.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="wrapper"> <div id="remote"><img src="remote-sm.jpg" width="221" height="700" border="0" usemap="#Video1" /> <map name="Video1" id="Video1"> <area shape="circle" coords="109,500,14" href="#" alt="6º" /> <area shape="circle" coords="68,502,15" href="<?php echo $_SERVER['PHP_SELF']; ?>?vid=IzJP6H0QgHI" alt="5º" /> <area shape="circle" coords="151,465,14" href="#" alt="4º" /> <area shape="circle" coords="109,465,14" href="<?php echo $_SERVER['PHP_SELF']; ?>?vid=oT33ewdRJbA" alt="3º" /> <area shape="circle" coords="68,466,14" href="<?php echo $_SERVER['PHP_SELF']; ?>?vid=yJ_QAP7w8oo" alt="2º" /> <area shape="circle" coords="110,238,19" href="#" alt="English Blog" /> <area shape="rect" coords="97,36,123,59" href="#" alt="Homepage" /> </map> </div><!-- END remote --> <div id="header"> <h3>What's the weather like today?</h3> </div><!-- END header --> <div id="tv"> <div id="video"> <?php $url = "<object width=\"640\" height=\"385\"><param name=\"movie\" value=\"http://www.youtube.com/v/" . $vid . "&fs=1&hl=en_GB\"></param><param name=\"allowFullScreen\" value=\"false\"></param><param name=\"allowscriptaccess\" value=\"always\"></param><embed src=\"http://www.youtube.com/v/" . $vid . "&fs=1&hl=en_GB\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"false\" width=\"640\" height=\"385\"></embed></object>"; if(isset($vid)) { echo $url; } else { $vid = "IzJP6H0QgHI"; echo $url; } ?> </div><!-- END video --> </div><!-- END tv --> </div><!-- END wrapper --> </body> </html> Also may I ask the age group of the students you are having do this? I am 17 and I was just kind of curious. Thanks, Colton Wagner
  15. Add this to they div you are putting those into. { white-space: nowrap; overflow: visible; }
  16. You did not echo the <select> tag or the first <option> or the closing </select> tag. Revised code: <?php include("cxn.php"); $query = "SELECT manufacturer FROM list ORDER BY manufacturer ASC"; $result = mysqli_query($cxn,$query) or die(mysqli_error()); echo "<select name=\"manufacturer\" id=\"manufacturer\">"; echo "<option value=\"\" selected=\"selected\">Select a Manufacturer..</option>"; while($row = mysqli_fetch_row($result)){ echo "<option value=\"".$row[0]."\">".$row[0]."</option>"; // SHOWS ALL MANUFACTURERS CURRENTLY ADVERTISED WITH THE NUMBER OF ADVERTS NEXT TO THE MANUFACTURER } echo "</select>"; ?>
  17. I enjoyed it Pickachu2000 In all relevance though you wouldn't want to name it that for obvious reasons. Thanks, Colton Wagner
  18. Surprisingly when I went back to the site it fixed itself but it appeard that your portfolio picture were not inside a main div so it messed your page up. The same was true for the navigation but now it is back on track and it looks great. P.S. The optimisation is something new I learned an may be helpfull in the future. Thanks, Colton Wagner
  19. The website would look fantastic but what in the heck is up with the navigation bar? It honestly looks terrible and that is the nicest way I can put it. Also search engine optimization is not spelled *Optimisation* you have it misspelled like 10-20 times. Also on your portfolio I don't really like how the divs float over the headers it does not look very good. Just a couple of thoughts hope I could be some help. Thanks, Colton Wagner
  20. Agreed I would combine the two codes so that the function getDate() became REGURGIDATE(). I would use ignace's code it is shorter and more precise. However Pikachu2000's code will work aswell. Thanks, Colton Wagner
  21. However you can use AJAX to submit an email to a php script to check the validity of an email. Seen in a script I just wrote here. http://kno3technology.com/apps/price.php All the javascript does is move the data without reloading the page. The javascript then checks for an xml response from the php page specified. Thanks, Colton Wagner
  22. Also look into the google translate API if your gonna make multiple languages go big or go home! Thanks, Colton Wagner
  23. I don't see what you are talking about but I found these errors: Warning: Error in parsing value for 'background-image'. Declaration dropped. Source File: http://www.scrapingweb.com/quote.html Line: 0 Warning: Error in parsing value for 'background-repeat'. Declaration dropped. Source File: http://www.scrapingweb.com/quote.html Line: 0 Warning: Error in parsing value for 'background-attachment'. Declaration dropped. Source File: http://www.scrapingweb.com/quote.html Line: 0 I can't see what your problem is post a picture of it or something. Thanks, Colton Wagner
  24. That's what I mean like if you have like: home about us contact services portfolio. You could have it in a database like this. home $id = 1 about us $id = 2 contact $id = 3 etc... Then you could have language settings for all of those with a simple $_GET string. Just a thought it would make it a lot easier to use. I would also recommend that you use an apache mod_rewrite for SEO purposes. Again they are all best practices and it is totally up to you. Thanks, Colton Wagner
×
×
  • 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.