CodeLobster - Free portable PHP IDE with support Drupal, Smarty, Twig, WordPress, Joomla, JQuery, CodeIgniter, HTML, CSS, JavaScript, AngularJS, CakePHP, Facebook. CodeLobster - Free portable PHP IDE with support Drupal, Smarty, Twig, WordPress, Joomla, JQuery, CodeIgniter, HTML, CSS, JavaScript, AngularJS, CakePHP, Facebook.
Offer Details: Get 30% OFF with 18 active Lobster Sports coupon & coupon code from HotDeals. Check fresh Lobster Sports coupon codes & deals – updated daily at HotDeals. lobster online coupon code
› Verified 2 days ago
› Url: https://www.hotdeals.com/coupons/lobster-sports-coupon Go Deal Now
› Get more: Lobster online coupon codeShow All Coupons
Offer Details: 30% OFF Lobster Sports Coupon & Coupon Code Verified 02 . 30% off Offer Details: Verified 2 days ago 5% Off Red Lobster 15 Off Coupon & Promo Codes, May 2018. 5% Off Red Lobster Coupon & Promo Codes August 2017, May 2018 60% Off Nbc Sports Gold Coupon Code & Promo Codes, May 2018. 60% Off Nbc Sports Gold Promo & Coupons, May 2018 Enjoy savings at redlobster.com for today only when you apply ... $10 lobsterfest coupon
› Verified 2 days ago
› Url: https://couponsbuy.net/lobster-sports/ Go Deal Now
› Get more: $10 lobsterfest couponShow All Coupons
Offer Details: Lobster Sports tennis ball machines and accessories are known among the tennis community for their high quality and programmability. Shop our collection now. lobster 207 coupon code
› Verified 8 days ago
› Url: https://www.lobstersports.com/ Go Deal Now
› Get more: Lobster 207 coupon codeShow All Coupons
Offer Details: Discounts average $14 off with a Lobsters-Online promo code or coupon. 19 Lobsters-Online coupons now on RetailMeNot. lobster ball machine coupon
› Verified 8 days ago
› Url: https://www.retailmenot.com/view/lobsters-online.com Go Deal Now
› Get more: Lobster ball machine couponShow All Coupons
Offer Details: Offer Details: $10 off Offer Details: Lobster Sports Coupon - All Special Coupons. $10 off (5 days ago) lobster fest 10.00 off coupon - Find Coupon Codes. $10 off Offer Details: Red Lobster $10 Off Coupon Through March 24 - Coupons 2020 (4 days ago) Red Lobster has a new coupon for their Lobster Fest! This deal is for $10 off your purchase of ... lobster coupon code
› Verified 5 days ago
› Url: https://couponsbuy.net/$10-lobsterfest-coupon/ Go Deal Now
› Get more: Lobster coupon codeShow All Coupons
Offer Details: Trending Now: Get 25% Off + More At Red Lobster With 9 Coupons, Promo Codes, & Deals from Giving Assistant. Save Money With 100% Top Verified Coupons & Support Good Causes Automatically. lobster net coupon code
› Verified 2 days ago
› Url: https://givingassistant.org/coupon-codes/redlobster.com Go Deal Now
› Get more: Lobster net coupon codeShow All Coupons
Offer Details: Red Lobster Coupons $4 Off is where you want to get the best savings from some of the most popular online merchants. You can easily use your computer, tablet or mobile device to get coupons for today's deals. Red Lobster Coupons $4 Off offers coupons that offer existing users a discount on a variety of items. lobsters online coupon
› Verified 3 days ago
› Url: https://www.hotdeals.com/promo-codes/red-lobster-coupons-4-off/ Go Deal Now
› Get more: Lobsters online couponShow All Coupons
Offer Details: Save 65 or more with GetMaineLobster.com coupons, promo codes and deals for Dec 2020. Limited time GetMaineLobster.com deal: $10 off any order. Get 65 off with 39 deals GetMaineLobster.com offers Dec 2020
› Verified 6 days ago
› Url: https://urbizdeals.com/getmainelobster-com-coupons/ Go Deal Now
› Get more: Getmainelobster.comShow All Coupons
Offer Details: 20% Off Extra 20% off any order --- Free Shipping Free Shipping on any order --- $100 Off $100 off any order + Free Shipping --- Sale Gift Cards starting at $10 --- Sale Maine Lobster Rolls starting at $144.99 ---
› Verified 3 days ago
› Url: https://www.offers.com/getmainelobster-com/ Go Deal Now
› Get more: Free shippingShow All Coupons
Offer Details: Save money on things you want with a Fine Lobster promo code or coupon. 7 Fine Lobster coupons now on RetailMeNot. Categories Log in Join for free. Fine Lobster Coupon Codes. Submit a Coupon. Save with 7 Fine Lobster Offers. ... Up to 10% Off Best Lobster Deals; $12 Off Orders of $120+ Total Offers: 7: Coupon Codes: 3: Free Shipping Deals: 1 ...
› Verified 8 days ago
› Url: https://www.retailmenot.com/view/finelobster.com Go Deal Now
› Get more: Fine lobsterShow All Coupons
Offer Details: Get 35% Off Lobster Sports Elite 2 Coupon Code for Orders Above $75. SHOW DEAL. 35% OFF. SHOW DEAL. Verified and Tested. Verified and Tested. 15% OFF. Deal. Get 15% Off For Your Orders with Lobster Sports Elite Liberty Discount Code. SHOW DEAL. 15% OFF. SHOW DEAL. Verified and Tested. Verified and Tested.
› Verified 8 days ago
› Url: https://getrefe.com/elite-sports-coupons Go Deal Now
› Get more: coupon codesShow All Coupons
Offer Details: There are 1 lobstersports.com coupon code, free lobstersports.com promo code and other discount voucher for you to consider including 1 lobstersports.com promo codes and 0 deals in November 2020.
› Verified 1 months ago
› Url: https://www.greenpromocode.com/coupons/lobstersports-com/ Go Deal Now
› Get more: Promo codesShow All Coupons
Offer Details: Furthermore, Sports & Outdoors clearance sale also contains clearance sale like Lobster Guy have. How about 15 off coupons in Lobster Guy? ... Our latest Lobster Guy 20 off coupons information can be obtained through the newsletter for which you can sign up.
› Verified 2 days ago
› Url: https://promotion.hotdeals.com/free-shipping-codes/lobster-guy Go Deal Now
› Get more: coupon codesShow All Coupons
Offer Details: $15 Off $15 off any order --- Up to 20% Off Up to 20% off orders over $100 --- Sale Free Lobster Bisque with any order --- Sale Free Chowda with orders over $75 for New Customers --- Sale Buy 3 Get 1 Free Lobster ---
› Verified 4 days ago
› Url: https://www.offers.com/lobsteranywhere/ Go Deal Now
› Get more: LobsteranywhereShow All Coupons
Offer Details: Save 70 or more with Maine Lobster Now coupons, promo codes and deals for Nov 2020. Limited time Maine Lobster Now deal: Free Next Day Shipping on orders over $100. Get 70 off with 18 deals Maine Lobster Now offers Nov 2020
› Verified 1 months ago
› Url: https://urbizdeals.com/maine-lobster-now-coupons/ Go Deal Now
› Get more: Promo codesShow All Coupons
Offer Details: We provide 28 coupon codes, 10 promotion sales and also numerous in-store deals and shopping tips for Thelobsterguy.com coupon. Among the available 38 coupons, 15 coupon codes have been used in the last week. Lots of customers like these deals and we have helped them saved big. You can save as much as off your purchase with Thelobsterguy.com ...
› Verified 4 days ago
› Url: https://new.everafterguide.net/thelobsterguy.com Go Deal Now
› Get more: Thelobsterguy.comShow All Coupons
Offer Details: Verified 2 days ago 5% Off Red Lobster 15 Off Coupon & Promo Codes, May 2018. 5% Off Red Lobster Coupon & Promo Codes August 2017, May 2018 60% Off Nbc Sports Gold Coupon Code & Promo Codes, May 2018. 60% Off Nbc Sports Gold Promo & Coupons, May 2018 Enjoy savings at redlobster.com for today only when you apply red lobster 15 off coupon. Stack ...
› Verified 2 months ago
› Url: https://dealcounts.com/lobster-sports-coupon-code/ Go Deal Now
› Get more: Lobster sportsShow All Coupons
Offer Details: NEW. Save more money with the biggest store about printable coupons, promo codes, discount & deals. Provided by Coupons 4 All
› Verified 1 months ago
› Url: https://www.couponcodes4all.net/30-percent-off-lobster-sports-coupon-&-coupon-code-%7C-verified-06 Go Deal Now
› Get more: Lobster sportsShow All Coupons
Offer Details: Red Lobster 4095 Century Blvd., Pittsburg, CA 94565 925-754-6655
› Verified 2 days ago
› Url: https://www.thepress.net/classifieds/service/coupon/10-off-dine-in-15-off-take-out-at-red-lobster/image_7b0fee1c-46d8-11ea-99c2-6f7922bc54e8.html Go Deal Now
› Get more: coupon codesShow All Coupons
Probably, every PHP programmer had to create his own framework or library, and it was necessary to work quickly and do everything practically from scratch.
Often we need to test some of our ideas or algorithms and we write code for interacting with databases directly, without using ORM frameworks.
In addition, SQL that is used in various libraries and CMS might not work quite efficiently and slow down the site.
In such cases, you need to open the SQL editor and start optimizing the queries.
We bring to your attention an article in which the SQL-manager built-in in CodeLobster PHP IDE will be considered.
On a simple example, we will learn how to effectively use the SQL editor and how to create and configure database connections.
Creating and configuring a connection to MySQL
Go to the main menu 'Tools'
-> 'MySQL'
-> 'SQL Manager'
. In the opened tab on the right information panel we have the opportunity to add a host and database, for this click the 'Register Host'
button.
Fill in all the required fields in the dialog box that appears, and straight away let’s give the connection an informative name and enter it in the 'Connection Alias'
field.
Then we must specify the host and port of our MySQL server and the name of the database with which we are planning to work.
It remains to enter the correct username and password and click 'OK'
.
It is done, the host and database are registered and we can begin to examine the functionality of the SQL manager.
Working with tables and data using SQL manager
The main advantage of the built-in CodeLobster SQL manager is the ability to perform the full range of operations necessary for quality work with database.
A classic set of such functions is called CRUD (Create, Read, Update, Delete). You can create and modify tables in the visual mode, add and delete records, as well as read and edit any information.
This, of course, will save a lot of time for the developer at the stage of designing a database for his application.
For our example, we need to create a table in which information about useful books will be stored, and then display this data in a conveniently readable form using a PHP script.
In the program window, right-click on the name of database to which we just connected and select 'Create Table'
from the context menu. Enter the name of the table – 'books'
and click 'OK'
.
Now the CodeLobster opens the table editor, in this tab click the 'New Field'
button.
In the dialog that appears, enter the name of the field "id", it will be our primary key with the INTEGER data type, so check 'Not Null'
and 'Autoincrement'
checkboxes. The 'Primary Key'
field will be selected automatically – this is what we need, click 'OK'
.
The next column of the table will contain the name of the book, for this you can use the variable length string – VARCHAR.
The field is called 'title'
, we set the maximum length for it of 100 characters. Also, adding a book without a name does not make sense, so we set the 'Not Null'
restriction by enabling the corresponding checkbox.
In addition, check the option 'Primary Key'
, and as a result, MySQL will create an index for this column. Thanks to this, for example, queries with the WHERE title = “…” expression will be executed much faster when you will be working with a table containing a large number of records.
Another thing worth paying attention to is the 'Collation'
field. Since we have to work with strings in utf8 encoding, we specify the utf8_general_ci collation, since in MySQL this value is used by default for the utf8 character set.
Click 'OK'
to save the changes.
In the same way, we create three more columns: 'author'
and 'image'
of type VARCHAR(100) to store the name of the author of the book and the name of the file with the cover photo, and the 'description'
column of TEXT type for a brief description of the book.
After the structure is created, we need to press the 'Compile'
button to execute the commands for creating and saving the table in the database.
In the program the window in which we are working now has one more tab – 'Data'
, here you can view and edit the contents of the current table.
At the moment, it is still empty, so we will continue to work, press 'Insert Record'
– this is a button with a '+'
sign.
To start, you need to double-click on the desired field in the column and enter the data. In this case, the values of strings and numeric fields are entered directly in place, and for text fields a special dialog box is used, that facilitates and simplifies the input of text in the form of several lines.
You do not need to enter the 'id'
column, since its value will be generated automatically by MySQL engine.
Also, do not forget that the real data insertion will occur only after clicking the 'Post Edit'
button. So, let’s review the values of fields and, if everything is correct, click the button with 'check'
sign.
So, pretty quickly, you can pre-populate the database and add as many rows as you need for your application.
Working with SQL editor in CodeLobster
Our IDE uses two-panel windows to edit SQL queries. At the top of the window we can enter a query, and at the bottom we can immediately see its result.
Right-click on the table name and select 'New SQL File'
.
In the opened window of the editor, we begin to enter the query, now you can use intelligent prompts not only on the SQL syntax, but also on the names of the tables.
By pressing Ctrl + Space in the process of composing the query, we also get an auto-complete window on the names of the columns in the current table. Of course, in order to these functions work correctly, a connection to the database must be established.
After we have entered the query, we press the 'Execute'
button and examine the results at the bottom of the window.
It is possible to save the created file in your project with the extension .sql, as well as the regular file with the source code and use it then at any time.
All the benefits of the SQL editor are also useful if you have to insert queries directly into PHP code.
For our example, we need to run a query to retrieve all the entries from the 'books'
table. In the image below, you can make sure that CodeLobster does an excellent job with the mixed code.
It is known that in the development process, the programmer is not limited to creating a database and populating tables.
After the database is designed and filled with data, you can transfer it to another host or save it for later use in other projects.
To start the process of exporting or moving the database, you need to right-click on the name of the database or table and select the 'Export'
item.
The Export Wizard starts, it has many options and therefore is flexible configured. With its help in several steps you can export to one SQL-file the structure or data contained in tables or them all together.
In the case of working with individual tables, their contents can be saved not only in the form of SQL, but also in CSV or TSV format, that is very convenient.
Now any other application can work with the exported records, for example, they can be easily analyzed and edited in Microsoft Word or OpenOffice.
So, let’s sum up
We have discussed in detail the use of the SQL manager in CodeLobster IDE.
By studying the article, you learned how to connect to the MySQL server, how to create tables, add entries and execute queries in the editor window or from PHP scripts.
And, finally, you can not be afraid of losing data, because you will be able to quickly backup any database or table with the help of the Wizard.
So, now you have got all the necessary tools for the full range of works on designing databases for your projects.
Please help us by showing your reaction