I have problem login to my system after upgrading php5.2.6 to 5.3.xx. something wrong with my code?
tq - <?php
-
# FileName="Connection_php_mysql.htm"
-
# Type="MYSQL"
-
# HTTP="true"
-
//$hostname_contmjportal = "localhost";
-
//$hostspec_contmjportal = "localhost";
-
//$database_contmjportal = "tmjportal";
-
//$username_contmjportal = "root";
-
//$password_contmjportal = "jjdt17";
-
-
$conf['settings']['database']['type'] = 'mysql';
-
$conf['settings']['database']['user'] = 'root'; // database user with permission to the booked database
-
$conf['settings']['database']['password'] = 'jjdt17';
-
$conf['settings']['database']['hostspec'] = 'localhost'; // ip, dns or named pipe
-
$conf['settings']['database']['name'] = 'tmjportal';
-
-
$hostname_contmjportal = $conf['settings']['database']['hostspec'];
-
//$hostspec_contmjportal = "localhost";
-
$database_contmjportal = $conf['settings']['database']['name'];
-
$username_contmjportal = $conf['settings']['database']['user'];
-
$password_contmjportal = $conf['settings']['database']['password'];
-
-
//resource mysql_pconnect ([ string $server = ini_get("mysql.default_host") [, string $username = ini_get("mysql.default_user") [, string $password = ini_get("mysql.default_password") [, int $client_flags = 0 ]]]] )
-
//resource mysql_pconnect($hostname_contmjportal, $username_contmjportal, $password_contmjportal) or trigger_error(mysql_error(),E_USER_ERROR);
-
-
$contmjportal = mysql_pconnect($hostname_contmjportal, $username_contmjportal, $password_contmjportal) or trigger_error(mysql_error(),E_USER_ERROR);
-
?>
1 1334
something wrong with my code?
enable error reporting and PHP tells you everything that is not correct.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Carl |
last post by:
Can you tell me what is wrong with this syntax ?
string select = "UPDATE .. " +
"(,,,,,,,
,,,,
,,, ,
, , ) " +
" VALUES
(@id,@clientid,@total,@tps,@tvq,@gtotal,@datefac,@datepay,
|
by: PythonistL |
last post by:
I have MySql server version: 5.0.22-community-nt.
When I try to import data with this command
mysql --default-character-set=utf8 mimi < c:\django\mujserver\mimi.sql
I will get the error
...
|
by: roamnet |
last post by:
hi
i created database file with .mdf extention ,sql server as a source
and use grid view to display data
there're no problem in data retrieve and display,but i want to edit it
or insert new...
|
by: bobf |
last post by:
I am using a program 'My Contact Table' which is a code generator program. It allows you to easily create a PHP/MySQL web application without writing any code.
I am trying to create an additional...
|
by: icemaster451 |
last post by:
Hello im making a browser game and have 99% working but iv got one error i cant find / fix and would like to know if anyone can help me where im going wrong heres the error
QUERY ERROR: You have an...
|
by: dougancil |
last post by:
Can someone please review my code and see where I can be missing information. I get the following error:
Line 1: Incorrect syntax near ','. Unclosed quotation mark before the character string '...
|
by: qdoet |
last post by:
I'm newbie and I had a problem on my SQL syntax like this You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near...
|
by: Lerato Mphaka |
last post by:
Hi,
I just migrated a MySQL database from my test server to my production Server with success. This database ia a backend for a .net application Im running. Now the problem is that when I try to...
|
by: mckin |
last post by:
Does anybody know how solve this error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
here...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |