Press enter to see results or esc to cancel.

How to Get YouTube Video Image Thumbnails
Abraham Garcia Abraham Garcia in PHP Scripts   Thursday, April 23 2015

How to Get YouTube Video Image Thumbnails

How to get your youtube video image thumbs. Use this in your project when you need the image thumb generated by Youtube in your projects.

In order to get the video thumbnails that YouTube generates we can use the following links.  http://img.youtube.com/vi/<insert-youtube-video-id-here>/0.jpg http://img.youtube.com/vi/<insert-youtube-video-id-here>/1.jpg

Continue reading
Abraham Garcia Abraham Garcia in PHP Scripts   Tuesday, April 21 2015

Limit String Characters Without Cutting Them in PHP

This function is an alternative to substr. The function substr can cut your words in half so this function works great in order to prevent cutting words in half.

I have always user substr, but it become annoying when it cuts strings or words in the middle. I used to use substr for small blog description before getting to the full blog post. This function has saved me. This does not cut your string in

Continue reading
Abraham Garcia Abraham Garcia in PHP Scripts   Sunday, April 19 2015

Joins for you MySQL Queries in your Projects

Mysql Joins for your projects. I always forget the syntax of mysql joins so i go to this bookmark page to remind me. Hopefully this helps other people.

This is a collection of joins that you can use in your database projects. Bookmark this page and you can save some time in join syntax or just memorize it. Also i have left a link for a MySQL cheat sheet that i use all the time. I have this in my

Continue reading
Abraham Garcia Abraham Garcia in PHP Scripts   Friday, November 21 2014

PHP Function to Create Nice URLs

This function will allow you to create nice friendly SEO URLs with PHP using prep_replace function. A useful function for blog post titles.

I have always liked nice urls in website it makes it cleaner and gives you better result for SEO. This is why i like to share this function on making nice URLs. You can store the title of your page/blog/etc in this format and then call it in your

Continue reading
Abraham Garcia Abraham Garcia in PHP Scripts   Wednesday, November 19 2014

A US State Dropdown from PHP Array

A US state dropdown from a PHP array. We have also included an SQL state to insert into your database.

A PHP array for US states is a better cleaner option than adding all the option values into your HTML form. This is a working example of a dropdown for the US States from a PHP array. We also included the SQL statement if you would like to add it

Continue reading