[PHP] But where in a php-page shall i load classes

2005-05-13 Thread Oscar Andersson
But where in a php-page shall i load classes. I know about the missing $. But that isent the problem. Here i have a simple, basic, webbpage. Shall i load my classes at the top like this or ??? My class is in class.inc -- PHP General Mailing List (http://www.php.net/) To unsubscrib

[PHP] PHP 5.0. Save classes in a session. Need help now

2005-05-11 Thread Oscar Andersson
Is it possibele to save a class in a session ex. $cl = new Class(); $SESSION['this_class'] = cl; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] html hyperlink and PHP

2005-05-05 Thread Oscar Andersson
If i do like this. How does the webbrowser send this? With post or get or ..? Shall i get the action with $_POST or $_GET? ex. @$action = $_POST['action']; if(!$action) @$action = $_GET['action']; processRequest($action); If i do like this How do i get the action in my php pag

[PHP] PHP 5, mySQL and Win XP. I NEED HELP

2005-05-05 Thread Oscar Andersson
-file $con = mysql_connect("localhost:3306", "buddy", "bestbuddy"); I cant connect to mySQL. I dont know what is wrong. mySQL listen to port 3306. I have tried with my IP to. I get this warning Warning: mysql_connect() [function.mysql-connect]: Too many open links (0) in