I have a auction website i downloaded and when i log in as the admin, i get the following error
whats wrong. the username and password are correct for the log in. Its trying to run another script called admin_catorgies_class.php . thats what i can see in the php script anyway. here the... (5 Replies)
I want to design a database, using mysql as a backend, and PHP as the frontend, I wanna be able to easily build forms in PHP to communicate with MySQL, is there any programs that will allow this, I really dont want to program all the forms by hand..
thankyou (2 Replies)
Okay, I'm new to this PHP and MySQL stuff, so help would be VERY much appreciated. :)
On my iMac runnning Panther, it has MySQL and PHP installed.
Yet when I view a PHP file from the iMac or another computer at my house, I get the source code.
What's wrong? (11 Replies)
Hello every one
i have question i want to build DATAbase using PHP as interface
i use shell to access to linux . i have in linux psql and SQLplus
i'll call all html files that has db tabels from shell directory.
what should to do before design php pages. can build the database sql design... (3 Replies)
Hi,
The php is not able to connect into my mysql database. But i can able to connect by manually.
I think that I have missed some points.
Please guild for the same.
Thanks,
Mani (1 Reply)
Hi
I have a website name www.gentrepid.org
I have all the setting scripts for this website in php
now as a research part, I am new to this as I havent done that before.
I have to make certain changes in the website Include some icons on the left like
"Drugs" when user click on it... (0 Replies)
Hello,
While I was interpretation the PHP manual on database security the recent past, it said that you should by no means connect to the database as the super user but rather as one more user with more limited options.
My question is:
How do you generate new users and set access... (2 Replies)
I want to know, is there a way to track how long anyone has been logged into website and then insert it up for each time they have logged on.
In case, user a logs in for 30 minutes, then later comes back and logs in for an hour, then later comes back and logs in for 50 minutes,
Add... (1 Reply)
Discussion started by: AimyThomas
1 Replies
LEARN ABOUT PHP
pg_last_error
PG_LAST_ERROR(3)PG_LAST_ERROR(3)pg_last_error - Get the last error message string of a connectionSYNOPSIS
string pg_last_error ([resource $connection])
DESCRIPTION pg_last_error(3) returns the last error message for a given $connection.
Error messages may be overwritten by internal PostgreSQL (libpq) function calls. It may not return an appropriate error message if multi-
ple errors occur inside a PostgreSQL module function.
Use pg_result_error(3), pg_result_error_field(3), pg_result_status(3) and pg_connection_status(3) for better error handling.
Note
This function used to be called pg_errormessage(3).
PARAMETERS
o $connection
- PostgreSQL database connection resource. When $connection is not present, the default connection is used. The default connection
is the last connection made by pg_connect(3) or pg_pconnect(3).
RETURN VALUES
A string containing the last error message on the given $connection, or FALSE on error.
EXAMPLES
Example #1
pg_last_error(3) example
<?php
$dbconn = pg_connect("dbname=publisher") or die("Could not connect");
// Query that fails
$res = pg_query($dbconn, "select * from doesnotexist");
echo pg_last_error($dbconn);
?>
SEE ALSO pg_result_error(3), pg_result_error_field(3).
PHP Documentation Group PG_LAST_ERROR(3)