Jump to content

cdoggg94

Members
  • Posts

    158
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

cdoggg94's Achievements

Member

Member (2/5)

1

Reputation

  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.
×
×
  • 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.