609 Posted Topics
Re: Try: <?php while($query->fetch()): $lastspace = strrpos($body, ' '); ?> <article> <h2><?php echo $title ?></h2> <p><?php echo substr($body, 0, $lastspace)."<a href='post.php?id=$post_id'>..</a>"?></p> <p>category: <?php echo $category?></p> </article> <?php endwhile; ?> | |
Re: I play WoW and Diablo3 occasionally. I don't game as much as I used to though. I tend to get too wrapped up when I do and start ignoring other parts of my life. | |
Re: Being able to view your PHP code will most likely be relevant to help with this. | |
Re: This might work for you http://phpexcelreader.sourceforge.net/ I've heard from someone else it works pretty good. You can also try this library http://phpexcel.codeplex.com/ to read and output to a CSV file and then parse that file. | |
Re: To go along with hericles description http://php.net/manual/en/language.oop5.static.php | |
Re: There are a number of calendar plugins for wordpress, and yes you can attach media if you create an event on a date. https://wordpress.org/plugins/the-events-calendar/ https://wordpress.org/plugins/all-in-one-event-calendar/ And some ones that cost $$ http://codecanyon.net/category/wordpress/calendars | |
Re: That is a very lengthy subject. http://arstechnica.com/security/2013/02/securing-your-website-a-tough-job-but-someones-got-to-do-it/ http://www.creativebloq.com/web-design/website-security-tips-protect-your-site-7122853 http://web.appstorm.net/roundups/self-publishing/15-great-ways-to-secure-your-website/ I would recommend you start reading the various topics on website security, because we would just be regurgitating the information that already exists. | |
Re: Yeah, pretty cool what they used to build it. Also the browser grabbing colors off of the page and using them on the tabs etc. I have an addon on Chrome for that, but it doesn't do screenshots and doesn't work as nice. I will have to keep an eye … ![]() | |
Re: Also, echoing out `$final_image` will not display the image, this is the object. You'll need to save the image after resizing `$final_image->save('path/image.jpg');` and then echo out that image to display it. | |
Re: I almost had to do this once, but talked them out of it because I found a better solution. If it can be avoided, I would try it. That being said, here is a class that claims to do it, and I tested it really quickly and it appears to … | |
Re: Do you mean random numbers? Explain a little/lot more. | |
Re: I don't know, but I would probably reference something like this http://www.loc.gov/catdir/cpso/lcco/ | |
Re: Is this what you're trying to do? http://jsfiddle.net/pixelsoul/o35nycrp/ | |
Re: Do you mean `padding:5px;`? You can apply padding to the table, table rows, table cells, etc. You might need to explain a little more, or perhaps provide some example. | |
Re: It's probably just an adblocker or another browser extension that is changing the markup. | |
Re: You won't be able to do it with just PHP. jQueryUI would be the best plug and play solution for an autocomplete. http://jqueryui.com/autocomplete/ | |
Re: Missing hash on the front of your form's ID function doSubmit(){ var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/; var name = $('#newsletter-form [name="name"]').val(); var email_address = $('#newsletter-form [name="email"]').val(); if(name == ""){ alert("Please enter your name."); return false; } if(email_address == ""){ alert("Your email is required."); return false; } } Also, if I can … | |
Re: Also, really should be using mysqli or PDO instead, as mysql is being deprecated. http://php.net/manual/en/book.mysqli.php | |
![]() | Re: You need to look at SQL joins.I'm in my mobile phone atm, or I would give an example. |
Re: I think it really also depends on where you want your hosting server to reside, as some hosts don't have servers everywhere. That being said, I have used Site5 for over 6 years and I really like them. Uptime is great, and their support is always great as well. They … | |
Re: Try this rather $(document).ready(function() { $('.panel').hcaptions({ effect: "slide", direction: "left", width:1200, height:500 }); }); | |
Re: Probably means shoulder surfing. Only thing I can think of with the world shoulder in it on the computer crime subject. | |
Re: https://developers.facebook.com/docs/plugins/checklist#images | |
![]() | Re: This worked for me http://jsfiddle.net/pixelsoul/Ljor0f64/ I've never tried to do that before, so not sure if that is the best way to go about it. ![]() |
Re: Are you talking about something like these? http://simontabor.com/labs/toggles/ | |
Re: This is the first error you need to fix `Notice: Undefined index: receiver_id in C:\xampp\htdocs\Training\core.php on line 46` You're getting this error because you're not setting `$_SESSION['receiver_id']` anywhere, just like **broj1** pointed out to you. If this isn't being set properly, then there is no point in worrying about any … | |
Re: You'll want to set `DISTINCT` on your query select COUNT(DISTINCT a.stuAcadCredID, 0) AS 'Student Cohort 2012', YEAR( STR_TO_DATE( a.addDate, "%Y" ) ) AS 'Year' from stu_acad_cred a LEFT JOIN application b ON a.termCode = b.startTerm where a.addDate >= DATE_SUB(CURDATE(),INTERVAL 4 YEAR) AND a.termCode = '12/FA' GROUP BY YEAR( STR_TO_DATE( a.addDate, … | |
Re: That's a pretty vague question. What type of file? What is the data source? You'll need to provide more details to get a good answer. | |
Re: Get rid of `global $wpdb` and then add this at the top of your php/file require_once( $_SERVER['DOCUMENT_ROOT'] . '/wp-config.php' ); require_once( $_SERVER['DOCUMENT_ROOT'] . '/wp-includes/wp-db.php' ); Like so <?php require_once( $_SERVER['DOCUMENT_ROOT'] . '/wp-config.php' ); require_once( $_SERVER['DOCUMENT_ROOT'] . '/wp-includes/wp-db.php' ); $sql = ""; $sql = "SELECT * FROM emgAdmin"; $sql = "$sql … | |
Re: Are you talking about a slide show type behavior for your images? | |
Re: http://www.tripwiremagazine.com/2013/07/jquery-image-zoom.html | |
| |
Re: I'm assuming you're working with MySQL and not MSSQL, have a look at this blog post about using a mutex table to do this with MySQL. If you just happen to actually be using MSSQL, you can do `if not exists` with a subquery to see if a value exists … | |
Re: You could do it programattically with PHP by changing some of your code around. It wouldn't be very hard to hide the table though with jQuery if it were empty, or contained a specific string. | |
Re: Your file name ends with '.pdf' correct? Everything looks okay to me after that. You might want to add this as well. header('Content-Length: ' . filesize($file)); See if that makes any difference. Make sure you're testing in more than one browser/machine, it might just be your machine that is doing … | |
Re: Well, you're asking for it to return pages `WHERE post_type = 'page'`. | |
Re: With something like this, I would probably consider using html data attributes. Example. Input radio button has `data-group="hsb"` and then you use the same data attribute and value on the table sells to tie in the relationship. The data attribute also supports multiple values, so your table cell could have … | |
Re: Double check your path to the image you're using for the background. | |
Re: I'm not familiar with this jQuery plugin, but I am 100% positive it won't be able to check if a username exists while you're testing on jsFiddle. | |
Re: Try this. function picChange(evt) { var fileInput = evt.target.files; if(fileInput.length>0) { var windowURL = window.URL || window.webkitURL; var picURL = windowURL.createObjectURL(fileInput[0]); var photoCanvas = document.getElementById("canvas"); var ctx = photoCanvas.getContext("2d"); var photo = new Image(); photo.onload = function() { ctx.drawImage(photo, 0, 0, 160, 120); windowURL.revokeObjectURL(picURL); // moved this }; photo.src = … | |
Re: I'm not really familiar with Bitnami or their offerings, but I am going to bet that you would probably get better assistance with this over on their support page https://bitnami.com/support | |
Re: http://www.smashingmagazine.com/2013/08/09/absolute-horizontal-vertical-centering-css/ | |
Re: I would probably just unserialize the value, regardless of whether it is serialized or not, since I expect it to always be unserialized. public function get($key = NULL) { if ($key != NULL) { $value = $this->get_where(@unserialize($key)); return $value; } else { return FALSE; } } Also, I've used this … | |
Re: No? http://www.sqlines.com/sql-server-to-mysql | |
|
The End.