Reply to Re: Connecting to mysql with php

Your name:

Reply:


Posted by Skeets on 02/15/06 06:57

howard, this is where debug skills come in. try something like

echo 'here';
die;

and place it within your script. if you see it, move it forward. if
you don't move it backwards until you see it. you can find the
location of the error.

i *highly* recommend the adodb db abstraction layer. i use it with
postgresql, but i would use it exactly the same with the mysql, too.
that's the point. ;-)

http://phplens.com/lens/adodb/docs-adodb.htm

you should also test to make sure you are connecting to the db. is a
recordset being produced? you need to know how to check for these
kinds of things.

adodb has db debug capability, too.

set

$db->debug = true;

it tells you if and where the deb chokes.

i never was able to get phpp error reporting when displaying php
(winxp, php-cgi), but i use and ide that is able to debug my php. this
*really* helps.

i also use a forms generation and validation class by manuel lemos - it
is great. it can be found on phpclasses.org.

this is no easy project, but if you go head first and keep moving your
feet, you will get somewhere. i know i did.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация