Skip to content
DevChunks

DevChunks

Web development tips, tricks and advice

  • PHP
  • MySQL
  • JavaScript
  • Tools
  • Store
  • About
  • Contact
DevChunks
DevChunks
Web development tips, tricks and advice
  • MySQL

    How to Insert Data Into a MySQL Table

    ByCarey January 26, 2011May 16, 2026

    How to use an INSERT query to add data to a MySQL table, including the optional column list.

    Read More How to Insert Data Into a MySQL TableContinue

  • MySQL

    How to Select a MySQL Database

    ByCarey January 20, 2011May 16, 2026

    How to select a MySQL database so your queries know which one to run against.

    Read More How to Select a MySQL DatabaseContinue

  • MySQL

    How to Create a MySQL Database

    ByCarey January 11, 2011May 18, 2026

    Two ways to create a MySQL database: with phpMyAdmin or by running a CREATE DATABASE query yourself.

    Read More How to Create a MySQL DatabaseContinue

  • PHP

    Use PHP to Capitalise Your Text

    ByCarey December 14, 2010May 16, 2026

    Use PHP’s strtoupper, strtolower, ucfirst and ucwords functions to tidy up the case of your text.

    Read More Use PHP to Capitalise Your TextContinue

  • Other

    Keep Your Website Hidden While Testing

    ByCarey December 12, 2010May 16, 2026

    A quick .htaccess trick to restrict a website to your own IP address while you build the front end.

    Read More Keep Your Website Hidden While TestingContinue

  • MySQL

    subquery workaround in MySQL 4

    ByCarey December 10, 2010May 16, 2026

    A PHP workaround for running subqueries on MySQL 4, which lacks subquery support: fetch IDs into an array and implode them into an IN clause.

    Read More subquery workaround in MySQL 4Continue

  • PHP

    explode() and implode() php arrays

    ByCarey December 8, 2010May 16, 2026

    How to use the PHP explode() and implode() functions to convert between strings and arrays, with examples and a tip for remembering each one.

    Read More explode() and implode() php arraysContinue

  • PHP

    Dump your PHP Variables with var_dump()

    ByCarey December 6, 2010May 16, 2026

    How to use the PHP var_dump() function to inspect a variable’s type, value and structure recursively while debugging your code.

    Read More Dump your PHP Variables with var_dump()Continue

  • MySQL

    MySQL Random Row

    ByCarey December 4, 2010May 16, 2026

    How to select a random row from a MySQL table using ORDER BY RAND() LIMIT 1, a more efficient approach than fetching all rows in your code.

    Read More MySQL Random RowContinue

  • PHP

    Struggling to debug PHP? Enable all errors

    ByCarey December 2, 2010November 18, 2026

    How to enable all PHP error reporting with error_reporting and display_errors so you can see every error while debugging your code.

    Read More Struggling to debug PHP? Enable all errorsContinue

  • MySQL

    Reseed MySQL Primary Key – AUTO_INCREMENT

    ByCarey November 26, 2010May 16, 2026

    How to reseed a MySQL primary key with ALTER TABLE AUTO_INCREMENT so new user IDs and order numbers do not reveal that your site just launched.

    Read More Reseed MySQL Primary Key – AUTO_INCREMENTContinue

  • PHP

    The PHP “heredoc” Syntax

    ByCarey November 24, 2010May 16, 2026

    How the PHP heredoc syntax lets you assign long strings of text without escaping quotes, while still parsing variables inside the block.

    Read More The PHP “heredoc” SyntaxContinue

Page navigation

Previous PagePrevious 1 … 3 4 5 6 7 Next PageNext

Get notified of new posts:

Facebook X Instagram
  • About
  • by ameN
  • Contact
  • Privacy Policy

© 2026 DevChunks

  • PHP
  • MySQL
  • JavaScript
  • Tools
  • Store
  • About
  • Contact