This category contains a FAQ about PHP and databases.

Explore the FAQs

PHP

Create PDF with PHP

Question:

How to generate PDF file from MySQL table with PHP?

Read More
PHP

PHP - Getting notice Undefined index

Question:
I am getting the following message: Notice: Undefined index: action in /home/fhlinux170/c/cybernet-designs.co.uk/user/htdocs/formtest.php on line 17.

Line 17 contains this line of code if($_POST['action'] == "send"){

Read More
PHP

SESSION variables cheat-sheet (PHP)

Need to know, or get a handle on SESSION variables in your dynamic sites for your PHP?

This is a refrence "cheat sheet," not a tutorial , so I provide tutorial links at the end.

Read More
PHP

Record count with PHP Phakt

How to add a record count beside data rows using PHP or phAKT. Read More
Databases

Windows XP Home Edition and PHP?

Question:



I have Windows XP Home Edition installed on my computer and I cannot use PWS or IIS to test my PHP/MySQL websites locally. What can I do? Read More
PHP

Username Session variable KT_Username(MM_Username)

Using the stock phakt code I couldn't request the session variable KT_Username on subsequent pages, this shows you the easy fix. Read More
Databases

Connecting OSX Classic to OSX with MySQL and PHAkT

This FAQ will attempt to explain how to make a connection from Ultradev running on a Mac's Classic environment back to a MySQL database hosted locally from Mac OSX. Read More
PHP

Session under Win32

Question :

How can I get rid of the errors generated by PHP when creating a session :

Warning: open(/tmp\sess_1243d01f1b06d133deb6b9894ed040ed, O_RDWR) failed: m (2) in C:\apache\htdocs\path\to_document\login.php on line 12

 

Read More
PHP

PHAkT v1.0: org/gjt/mysql/Driver - Class Not Found

With PHAkT v1.0 some users are getting the following error when trying to create database connections :-

org/gjt/mysql/Driver - Class Not Found 

This is happening because of the new JDBC connection type that PHAkT can utilize. In the Readme.txt within the original PHAkT archive it states that JDBC connections can be used, but a specific JDBC driver needs to be installed.

Read More
PHP

Upload Problems - Permissons could hold the key

When uploading a file to your webserver most people are already aware that the folder where the file resides must have the correct permissions to accept the uploaded file.

In most cases this will be 755 or 777 (try 755 first, always leave 777 as a last resort), however, what do you do if the permissions are correct and the upload still fails ?

Read More
Databases

PHAkt and Access database, is it possible?

Is it possible to use an Access database with Interakts Phakt PHP Server Model?

Read More