php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5201 Fatal error: call to unsupported or undefined function session_start() in /hom/
Submitted: 2000-06-23 10:47 UTC Modified: 2000-07-18 10:05 UTC
From: martinkuria at hotmail dot com Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0 Beta 3 OS: linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: martinkuria at hotmail dot com
New email:
PHP Version: OS:

 

 [2000-06-23 10:47 UTC] martinkuria at hotmail dot com
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-24 02:10 UTC] stas at cvs dot php dot net
I do not see session_start over there. Are you sure you are running *that* script?
 [2000-07-18 10:04 UTC] stas at cvs dot php dot net
no user feedback.
 [2000-07-18 10:05 UTC] stas at cvs dot php dot net
close it.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Fri Oct 09 00:00:01 2026 UTC