Skip to main content
  • 804 Accesses

Abstract

We have some unfinished business left over from the last chapter. Figure 13-2 shows content from the journal table with just the first two sentences of each article displayed and a link to the rest of the article. However, I didn’t show you how it was done. The full list of articles in journal_list.php also displays the MySQL timestamp in its raw state, which isn’t very elegant, particularly if you’re using MySQL 3.23 or 4.0. In addition to tidying up those two things, this chapter addresses some of the most common questions about working with PHP and MySQL, such as inserting dates into a database, formatting text retrieved from a database, and working with multiple-table databases. I hope that, by this stage, you have built up sufficient confidence to start adapting scripts without the need for detailed instructions every step of the way, so I’ll concentrate on the main new features.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 24.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 34.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints and permissions

Copyright information

© 2006 David Powers

About this chapter

Cite this chapter

(2006). Solutions to Common PHP/Mysql Problems. In: PHP Solutions: Dynamic Web Design Made Easy. Apress. https://doi.org/10.1007/978-1-4302-0275-2_14

Download citation

Publish with us

Policies and ethics