609 Posted Topics

Member Avatar for janicemurby

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; ?>

Member Avatar for janicemurby
0
864
Member Avatar for LucianoLL

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.

Member Avatar for pixelsoul
0
145
Member Avatar for pritaeas
Member Avatar for pixelsoul
0
236
Member Avatar for oelgazzar
Member Avatar for WaleedaaN

Being able to view your PHP code will most likely be relevant to help with this.

Member Avatar for WaleedaaN
0
132
Member Avatar for AntonyRayan

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.

Member Avatar for pixelsoul
0
258
Member Avatar for Kewne

To go along with hericles description http://php.net/manual/en/language.oop5.static.php

Member Avatar for Kewne
0
197
Member Avatar for Siberian
Member Avatar for wrathyimp

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

Member Avatar for wrathyimp
0
148
Member Avatar for harishprakash

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.

Member Avatar for harishprakash
0
94
Member Avatar for pritaeas

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 …

Member Avatar for iamthwee
2
261
Member Avatar for SimonIoa

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.

Member Avatar for SimonIoa
0
487
Member Avatar for shaqib

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 …

Member Avatar for pixelsoul
0
213
Member Avatar for harishprakash
Member Avatar for edbr
0
136
Member Avatar for AntonyRayan

I don't know, but I would probably reference something like this http://www.loc.gov/catdir/cpso/lcco/

Member Avatar for AntonyRayan
0
75
Member Avatar for Phaelax
Member Avatar for davy_yg

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.

Member Avatar for raykevinnn
0
111
Member Avatar for OsaMasw

It's probably just an adblocker or another browser extension that is changing the markup.

Member Avatar for Zvz
0
219
Member Avatar for Stefce

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/

Member Avatar for Stefce
0
216
Member Avatar for PinoyDev

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 …

Member Avatar for PinoyDev
0
243
Member Avatar for AntonyRayan

Also, really should be using mysqli or PDO instead, as mysql is being deprecated. http://php.net/manual/en/book.mysqli.php

Member Avatar for pixelsoul
0
191
Member Avatar for JayGeePee
Member Avatar for Reverend Jim
0
297
Member Avatar for fakesoul

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 …

Member Avatar for pixelsoul
0
167
Member Avatar for newbi11

Try this rather $(document).ready(function() { $('.panel').hcaptions({ effect: "slide", direction: "left", width:1200, height:500 }); });

Member Avatar for newbi11
0
166
Member Avatar for joy agnes

Probably means shoulder surfing. Only thing I can think of with the world shoulder in it on the computer crime subject.

Member Avatar for HiHe
0
189
Member Avatar for cristian.stilpeanu.1_1
Member Avatar for DaniWebUser_1

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.

Member Avatar for diafol
0
331
Member Avatar for krunal_2
Member Avatar for krunal_2
0
67
Member Avatar for Stefce

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 …

Member Avatar for broj1
0
460
Member Avatar for joshmac

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, …

Member Avatar for joshmac
0
208
Member Avatar for harishprakash

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.

Member Avatar for harishprakash
0
145
Member Avatar for wplanders
Member Avatar for Kewne

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 …

Member Avatar for Kewne
0
2K
Member Avatar for AntonyRayan
Member Avatar for AntonyRayan
0
113
Member Avatar for harishprakash
Member Avatar for harishprakash
0
78
Member Avatar for Simon_4
Member Avatar for nadiam

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 …

Member Avatar for pixelsoul
0
220
Member Avatar for wawahida

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.

Member Avatar for almostbob
0
2K
Member Avatar for kazkuzzer007

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 …

Member Avatar for pixelsoul
0
331
Member Avatar for Kewne
Member Avatar for Kewne
0
96
Member Avatar for jonsan32

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 …

Member Avatar for jonsan32
0
218
Member Avatar for samson.oba.77
Member Avatar for jimmyruan1

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.

Member Avatar for pixelsoul
0
64
Member Avatar for chukka32

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 = …

Member Avatar for chukka32
0
304
Member Avatar for primero

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

Member Avatar for pixelsoul
0
118
Member Avatar for janicemurby

http://www.smashingmagazine.com/2013/08/09/absolute-horizontal-vertical-centering-css/

Member Avatar for pixelsoul
0
118
Member Avatar for riwakawd

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 …

Member Avatar for pixelsoul
0
188
Member Avatar for ramnik.bhat1988
Member Avatar for widy.guilias
Member Avatar for Alicera Nz
0
162
Member Avatar for pravinkumar1
Member Avatar for almostbob
0
366

The End.