Jump to content

cdoggg94

Members
  • Posts

    158
  • Joined

  • Last visited

Everything posted by cdoggg94

  1. $fake is defined like this: <?php mysql_select_db($database_HalNor, $HalNor); $query_Fake = "SELECT* FROM fake_tbl"; $Fake = mysql_query($query_Fake, $HalNor) or die(mysql_error()); $row_Fake = mysql_fetch_assoc($Fake); $totalRows_Fake = mysql_num_rows($Fake); ?> Thank you both for the help
  2. I have a script where you add an entry into a DB. I want to take everyone from another table in this DB and send the newly added content to them. My problem is displaying all of the contacts into the $to= location. This is what I currently have: <?php error_reporting(-1); //-------------email section----------------// $title = $_POST['title']; $story = $_POST['story']; $date = $_POST['date']; //do { //$to = $row_Fake['fake_email']; //} //while($row_Fake = mysql_fetch_assoc($Fake)); while ($row_Fake = mysql_fetch_assoc($Fake)) { $to = $row_Fake['fake_email']; } //$to = "colinrblambert@gmail.com"; $subject = "New Halnor Update!"; $message = " <html> <head> <title>New Update!</title> </head> <body> <div align='center'>"; //do{ echo $row_Fake['fake_email'].", "; } while($row_Fake = mysql_fetch_assoc($Fake)); //$row['fake_email']; "We have a new update from ".$date." to share with you !<br /><br /> <table border='0'> <tr> <td valign='top' width='200'><b>".$title."</b></td> <td>".nl2br($story)."</td> </tr> </table> </div> </body> </html> "; $x = 1; $str = "test"; do{ $str .= $x; $x++; }while($x<10); // Always set content-type when sending HTML email $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n"; // More headers $headers .= 'From: <admin@website.com>'. "\r\n"; //$headers .= 'Cc: myboss@example.com' . "\r\n"; mail($to,$subject,$message,$headers); } header(sprintf("Location: %s", $insertGoTo)); } ?> Kind of lost right now. Can someone help?
  3. And say the user wanted this reminder on "june 10, 2013, 9:30am". Is this what I would put? 30 9 6 10 or would I check on the hour until the specified date/time happened ?
  4. I am still not 100% sure where to put the Cron Job. If say the "To Do" list is on the index page, would I be adding the script to that page ? I am looking at this right now : http://www.thesitewizard.com/general/set-cron-job.shtml and it it showing me basic format, but I am still a little confused as how to use it. Does anyone know of a better example link?
  5. I would like to set up a reminder system where on a certain day of the users choice, they are sent an email to remind them of a specific thing. What I have now is a "To Do" list. here: <?php $today = date("m.d.y"); ?> <table border="0"> <tr> <td align="center"> <span style="font-size:14px;"><?php echo $today2; ?></span><br /><br /> </td> </tr> <tr> <td> <span style="font-size:14px; font-weight:bold;">To Do List:</span> <ul> <?php do{ ?> <li> <?php echo $row_toDO['toDo_info'] ;?> <br /><a href="index.php?toDo_id=<?php echo $row_toDO['toDo_id']; ?>">Delete</a><br /><br /> </li> <?php } while ($row_toDO = mysql_fetch_assoc($toDO)); ?> </ul> </td> </tr> </table> You add things to this list with this form: <table border="0" align="center"> <tr> <td align="center" style=" font-size:14px;">Add to To Do List</td> </tr> <form action="<?php echo $editFormAction; ?>" method="POST" id="toDo" name="toDo"> <tr> <td align="center"><textarea name="info" cols="26" rows="5"></textarea> </td> </tr> <tr> <td align="center"> <input name="id" type="hidden" value="" /> <input name="user" type="hidden" value="Dave" /> <input type="submit" value="" class="imgClass3" /> </td> <input type="hidden" name="MM_insert" value="toDo" /> </tr> </form> </table> My idea is to add a date section to the form, so that if they would like to be reminded on say "June 10, 2013" They select June, 13, 2013...etc.. Now...my issue now is: Where would I make a script to ensure they get this reminder even if you are not using a specific page? My thought process is telling me that the script structure should be something like, if (toDoDate == todaysDate) { email reminder } Am I even close here ?
  6. Alright...I'm pretty confused but I'm gonna try and research what you have suggested and then test a few things...Thanks
  7. Sorry I apparently did not attach this in the last post..
  8. I am trying to use JS and jQuery to style my select form elements. I got the template from this site: http://www.jankoatwarpspeed.com/reinventing-a-drop-down-with-css-and-jquery/ My problems are: 1) When I run the page, it shows the styled select box, but also the original. 2) I can't seem to have more than 1 select box working with its independent values. Here is the code on the page: <!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> <title>My Select Menu</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script> <style type="text/css"> body { font-family:Arial, Helvetica, Sans-Serif; font-size:0.75em; color:#000;} .desc { color:#6b6b6b;} .desc a {color:#0092dd;} .dropdown dd, .dropdown dt, .dropdown ul { margin:0px; padding:0px; } .dropdown dd { position:relative; } .dropdown a, .dropdown a:visited { color:#816c5b; text-decoration:none; outline:none;} .dropdown a:hover { color:#5d4617;} .dropdown dt a:hover { color:#5d4617; border: 1px solid #d0c9af;} .dropdown dt a {background:#e4dfcb url(arrow.png) no-repeat scroll right center; display:block; padding-right:20px; border:1px solid #d4ca9a; width:160px; padding:5px;} .dropdown dt a span {cursor:pointer; display:block;} .dropdown dd ul { background:#e4dfcb none repeat scroll 0 0; border:1px solid #d4ca9a; color:#C5C0B0; display:none; left:0px; padding:5px 0px; position:absolute; top:2px; width:auto; min-width:170px; list-style:none;} .dropdown span.value { display:none;} .dropdown dd ul li a { padding:5px; display:block;} .dropdown dd ul li a:hover { background-color:#d0c9af;} .dropdown img.flag { border:none; vertical-align:middle; margin-left:10px; } .flagvisibility { display:none;} </style> <script type="text/javascript"> $(document).ready(function() { createDropDown(); $(".dropdown dt a").click(function() { $(".dropdown dd ul").toggle(); }); $(document).bind('click', function(e) { var $clicked = $(e.target); if (! $clicked.parents().hasClass("dropdown")) $(".dropdown dd ul").hide(); }); $(".dropdown dd ul li a").click(function() { var text = $(this).html(); $(".dropdown dt a").html(text); $(".dropdown dd ul").hide(); var source = $("#source"); source.val($(this).find("span.value").html()) }); }); function createDropDown(){ var source = $("#source"); var selected = source.find("option[selected]"); var options = $("option", source); $("body").append('<dl id="target" class="dropdown"></dl>') $("#target").append('<dt><a href="#">' + selected.text() + '<span class="value">' + selected.val() + '</span></a></dt>') $("#target").append('<dd><ul></ul></dd>') options.each(function(){ $("#target dd ul").append('<li><a href="#">' + $(this).text() + '<span class="value">' + $(this).val() + '</span></a></li>'); }); } </script> </head> <body> <h1> </h1> <p> <form id="input"> <select id="source"> <option selected="selected" value="BR">Brasil</option> <option value="FR">France</option> <option value="DE">Germany</option> <option value="IN">India</option> <option value="JP">Japan</option> <option value="RS">Serbia</option> <option value="UK">United Kingdom</option> <option value="US">United States</option> </select> <br /> <select id="source2"> <option selected="selected" value="BR2">Brasil2</option> <option value="FR2">France2</option> <option value="DE2">Germany2</option> <option value="IN22">India2</option> <option value="JP2">Japan2</option> <option value="RS2">Serbia2</option> <option value="UK2">United Kingdom2</option> <option value="US2">United States2</option> </select> </form> </p> <p> </p> </body> </html> I was wondering if I just needed to duplicate the script with a different select id for each ? Or if there is a general id for ALL select menu elements ? Attached is the browsers output.
  9. I am using a font and in chrome and works fine but is really small. So I make it something around 18px; and works fine in chrome. Firefox/iOS display the second font in the font-family making the 18px; sized text huge. Do I have to create a new style sheet for every browser or can I avoid it somehow?
  10. We got it to upload correctly. This is how he said he got it to work: "anything like crop or enhance. then you save it and it's all is good. anything you do to the image saves it and the orientation is set." Not that its a perfect solution by any means, but it's something in the right direction. I will be dealing with this more in the next week or so I'm sure... Thank you lemmin, requinix, and Jessica Your help is much appreciated.
  11. Are you talking about when you take a picture with a phone or iPad in say portrait, then view it in portrait and its sideways ?
  12. Ok... So I think it's the iPad... I just tried with my iPhone (a landscape image) and it worked fine... My boss just left for a little bit, but when he comes back I am going to see about him putting the images on his computer and seeing if they are right.
  13. We just took images from every position and it always comes out wrong. So, I tried this: <?php echo "resized_image.jpg:<br />\n"; $exif = exif_read_data('images/resized_image.jpg', 'IFD0'); echo $exif===false ? "No header data found.<br />\n" : "Image contains headers<br />\n"; $exif = exif_read_data('images/resized_image.jpg', 0, true); echo "resized_image.jpg:<br />\n"; foreach ($exif as $key => $section) { foreach ($section as $name => $val) { echo "$key.$name: $val<br />\n"; } } ?> ...and it spit this out : resized_image.jpg: No header data found. resized_image.jpg: FILE.FileName: resized_image.jpg FILE.FileDateTime: 1366072804 FILE.FileSize: 11831 FILE.FileType: 2 FILE.MimeType: image/jpeg FILE.SectionsFound: COMMENT COMPUTED.html: width="272" height="350" COMPUTED.Height: 350 COMPUTED.Width: 272 COMPUTED.IsColor: 1 COMMENT.0: CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), quality = 80 I am either missing the orientation metadata or don't know where it is, OR don't know how to display it. In the template I got the code from it printed this about the image they used: test1.jpg: No header data found. test2.jpg: FILE.FileName: test2.jpg FILE.FileDateTime: 1017666176 FILE.FileSize: 1240 FILE.FileType: 2 FILE.SectionsFound: ANY_TAG, IFD0, THUMBNAIL, COMMENT COMPUTED.html: width="1" height="1" COMPUTED.Height: 1 COMPUTED.Width: 1 COMPUTED.IsColor: 1 COMPUTED.ByteOrderMotorola: 1 COMPUTED.UserComment: Exif test image. COMPUTED.UserCommentEncoding: ASCII COMPUTED.Copyright: Photo © M.Boerger, Edited by M.Boerger. COMPUTED.Copyright.Photographer: Photo © M.Boerger COMPUTED.Copyright.Editor: Edited by M.Boerger. IFD0.Copyright: Photo © M.Boerger IFD0.UserComment: ASCII THUMBNAIL.JPEGInterchangeFormat: 134 THUMBNAIL.JPEGInterchangeFormatLength: 523 COMMENT.0: Comment #1. COMMENT.1: Comment #2. COMMENT.2: Comment #3end THUMBNAIL.JPEGInterchangeFormat: 134 THUMBNAIL.Thumbnail.Height: 1 THUMBNAIL.Thumbnail.Height: 1 I don't see an orientation type thing there either though.
  14. Jessica, you are usually a lot more help than this haha The images we tried were taken in landscape. We joked that maybe they were taken upside down, but its obviously hard to tell on an iPad. requinix, I am going to try that out and see what happens. Thanks everyone.
  15. My question is pretty much what the title says. If an image is uploaded from a computer it works fine. When an image is uploaded from an iPad, it displays it upside down. Has anyone ever heard of this ? Or dealt with it before ? If so, any suggestions on what I should do about it ?
  16. this is the rest of the css on the page. <style type="text/css"> body { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; line-height: normal; font-weight: normal; font-variant: normal; text-transform: none; color: #000000; text-decoration: none; margin: 0px; padding: 0px; } #wrapper{ position:relative; height:100%; width:800px; margin:0px auto; } #header{ position:absolute; height:148px; width:309px; left:2px; top:14px; } #printPage2{ position:absolute; height:65px; width:50px; top:26px; left:645px; } #fertilizerCSS{ position:absolute; height:379px; width:397px; left:391px; top:134px; } #services{ position:absolute; height:632px; width:760px; left:0px; top:526px; } #clientInfo{ position:absolute; height:286px; width:384px; left:3px; top:170px; } </style>
  17. My first thought was that the Div had the same name as one of the form elements, so I changed the name of the Div to #fertilizerCSS but it was not the issue.
  18. Attached I have an image of a page that looks the way I want (jodyNormal.jpg). When I go to the print preview of the page, and when it prints, the div in the top right moves to the left. (jodyPrint.jpg) this is the CSS for that Div: #fertilizerCSS{ position:absolute; height:379px; width:397px; left:391px; top:134px; } Does anyone have an idea why this could be happening on this page ?
  19. Basically we have a lot of people that want to view our site that use work computers and don't have the option to upgrade their browser. Most likely its an old version of IE. All I want to do is detect if they are using something older then say IE 7. (we have tested with IE 7 and everything works fine on it) If it IS older then that I want to send them to a dumbed down version of the pages. I have looked up things like this: http://www.quirksmode.org/js/detect.html http://api.jquery.com/jQuery.browser/ Which is fine, but I dont know how to simply send them to the right page. I have done this sort of thing if they were using a mobile device like this: <script type="text/javascript"> // <![CDATA[ if ((navigator.userAgent.indexOf('iPhone') != -1) || (navigator.userAgent.indexOf('iPod') != -1)) { document.location = "http://www.Website.com/Mobile/"; } // ]]> if ((navigator.userAgent.indexOf('iPad') != -1)) { document.location = "http://www.Website.com/Mobile2/"; } // ]]> </script> Would it be the same type of thing but with the information in the detection script replacing the "iPhone", "iPad" ? Any help would be great. Thanks.
  20. I have a video embedded into a page like this : <video id="example_video_1" class="video-js vjs-default-skin" poster="images/myPoster.jpg" controls width="350" height="260" autoplay preload="auto" data-setup="{}"> <source type="video/mp4" src="Movie/BusConsulting350X260.mp4"> </video> I want it to stop at around 27 seconds, and just stay on that frame.. I have seen a few things that are sort of like this but I could not get them to work. one was this: ----------------------------------------------------------------------------------------------------------------------- You can use the Media API to listen for the ended event, once this has been fired, then set the video'scurrentTime to whatever value you want (e.g. 1 second). EDIT Try this: video.addEventListener('ended', function() { this.currentTime = 1; }, false); Where video is a handle to your video element. ----------------------------------------------------------------------------------------------------------------------- my issue with that is how to use it... any help or explanation would be greatly appreciated!
  21. Actually, I got it...I had to change the height of the <td> Why would that be ? By default, shouldn't it be the height of the content ?
  22. i thought maybe its because i didn't close the <tr> so i did (don't know how i missed that..) but it didn't really do anything.
  23. I have this table: <!--the css for the div its in is here--> <style type="text/css"> #conServices{ position: absolute; height: 160px; width: 433px; top: 562px; left: 36px; } </style> <!-- end of style --> <div id="conServices" align="center"> <table width="421" height="207" border="0"> <!--<tr> <td align="center"><span style="font-weight:bold; font-size:20px;">OUR SERVICES</span></td> <tr>--> <tr> <td align="center"><span style="font-weight:normal; font-size:17px;">GENERAL BUSINESS CONSULTATION</span></td> <tr> <tr> <td align="center"><span style="font-weight:normal; font-size:17px;">STRATEGIC PLANNING</span></td> <tr> <tr> <td align="center"><span style="font-weight:normal; font-size:17px;">BUSINESS START UP PLANS</span></td> <tr> <tr> <td align="center"><span style="font-weight:normal; font-size:17px;">BUSINESS DOCUMENTATION FLOW</span></td> <tr> <tr> <td align="center"><span style="font-weight:normal; font-size:17px;">INTERNET BASED PROJECTS</span></td> <tr> </table> </div> for some reason there is a ton of space on top and below the actual content...(see attached image) Can anyone think of why ?
×
×
  • 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.