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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights 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
DOI: https://doi.org/10.1007/978-1-4302-0275-2_14
Publisher Name: Apress
Print ISBN: 978-1-59059-731-6
Online ISBN: 978-1-4302-0275-2
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books