|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-06-24 02:10 UTC] stas at cvs dot php dot net
[2000-07-18 10:04 UTC] stas at cvs dot php dot net
[2000-07-18 10:05 UTC] stas at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 08 23:00:02 2026 UTC |
I installed linux in my machine, and php was there so I installed it, then later on I installed mysql, but now I can connect to my mysql database through php, what could I have done wrong the error am getting is : Fatal errror: call to unsupported or undefined function session_start() /home/httpd/ff.php3 on line 7 this the code of my php program <html> <body> <?php $db = mysql_connect("localhost", "root"); if (!$db) { echo "An error occured.\n"; exit; } mysql_select_db("mymarket",$db); $result = mysql_query("SELECT * FROM employees",$db); printf("First Name: %s<br>\n", mysql_result($result,0,"first")); printf("Last Name: %s<br>\n", mysql_result($result,0,"last")); printf("Address: %s<br>\n", mysql_result($result,0,"address")); printf("Position: %s<br>\n", mysql_result($result,0,"position")); ?> </body> </html> Please assist Thanks Martin