byenary
-
Posts
4 -
Joined
-
Last visited
Posts posted by byenary
-
-
Hi
Got a db with 80K records, need to show a table with the content and providing 2 filters on this table.
Now I could just program this the easy way but I assume something exists to this out of the box ?
Thx
-
Hello,
Im experimenting with debian repository's.
It al goes fine but when a want to download deb files which contain a % i get a 404, while the file is definatly in place, so i assume apache does not like the % can i alter this ?
Thx
-
Hello,
How can I call a page2.php from page1.php as in calling a function, so call page2 and stay in page1?
Is this possible (reason is, got two local servers, server1 and server2), server1 is connected trough a tunnel with an internet database.
I have got things happening on server2 where i need to access the internetsever so I like this to do trought server1 by calling a page on that server.
How should one do such thing ?
thanks !
Prevent database connection as a parameter to all function
in PHP Coding Help
Posted
HI, i'm using a class to create a database connection etc..
So I have something like this in a common.inc.php file which is include in each page
$db_numbers_args = array();
$db_numbers_args['host'] = "localhost";
$db_numbers_args['user'] = "puser";
$db_numbers_args['pass'] = "nuser";
$db_numbers_args['db'] = "nu_name";
$db_numbers = new db($db_numbers_args,TRUE);
From there I can end up making query's like $res = $db_numbers->query($uqs);
So that said i'm including another file that contains all functions, when the functions need to do database transactions I always need to put $db_numbers as a paramter to the function and each function I make..
How should I make this better ?