mt WHERE
id={$_SESSION['thisid']}";
or even better:
$updateSQL ="UPDATE `mytable` SET thetotal=".mysql_real_escape_string($amt).
" WHERE id=".mysql_real_escape_string($_SESSION['thisid']);
substituting mysql_real_escape_string with the escape func
7;ve finished iterating over the sub-directory the current iterator is
pushed onto a stack. Then once the iteration of the sub-directory is finished
the iterator for the parent directory is popped off the stack and the
iteration over that directory continues from where it was interrupted.
Doe
Here's a RecursiveDirectoryIterator class I've written and find quite useful:
mailto:phi...@lightbox.org";>Philip Graham
*/
class Util_RecursiveFileIterator implements Iterator {
CONST SHOW_DOT_FILES = true;
private $_basePath;
private $_curDirIter;
above:
$db = DB::getInstance();
$value = 'value';
$db->prepare('SELECT * FROM wherever WHERE field=:val, 'getData');
$db->execute('getData', array(':val' => $value));
foreach($db->getResults('getData') AS $row) {
// Do stuff
}
Resulting in a reduction of 5 lines of code. I may not sound that impressive
for a small example but over the number of times you generally access a
database it will really add up.
--
Philip Graham
Lightbox Technologies
www.lightbox.org
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
n actually has an id in the
TownInformation class before trying to add it to the pool.
--
Philip Graham
Lightbox Technologies
www.lightbox.ca
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
die(mysql_error()); $row_rsSearch = mysql_fetch_assoc($rsSearch);
> > $totalRows_rsSearch = mysql_num_rows($rsSearch);
> > ?>
> >
> > - Gary
It doesn't look like your code is the problem, how is the file being executed.
Through the command line or IIS? In either case it sounds like either you
have don't have permissions on the file, you're pointing at the wrong file or
you've got a bad config setting somewhere. You can always try searching 'php
no input file specified' and see if others before you have had the same
problem for a quick fix. Other than that I'm sorry I can't be of more help
but unfortunately I'm not at all familiar with PHP on windows/IIS.
--
Philip Graham
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
he error?
>
> PHP5 with MySQL adn IIS7
>
> Thanks
>
> - Gary
--
Philip Graham
Lightbox Technologies
Suite 312 240 Catherine St.
Ottawa, ON, K2P 2G8
613-686-1661 ext. 102
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ine 13?
> PHP Fatal error: require(): Failed opening required '1'
> (include_path='/var/php/inc/') in /webs/www.zootboy.com/sl/testing.php on
> line 13
>
> I have no idea what's going on. All the files have 777 perms.
What happens if you remove the die() statement?
r
8 matches
Mail list logo