hi all,
PHP 4.3.10 and MySQL 5.0, trying
_______________ _______________ ______
$link = mysql_connect(D B_HOST.":".DB_P ORT, DB_USER, DB_PW)
or die("Could not connect:" . mysql_error());
mysql_select_db (DB)
or die("Could not connect:" . mysql_error());
$query = "call
sp_contattoWeb( '".$_SESSION['sess_kcliente']."','$kContatto ', '$cognome',
'$nome', '$posizione', '$telefono', '$cellulare', '$email','$note ', @out)";
$result = mysql_query($qu ery)
or die("<br>KO: $query<br>" . mysql_error() . "<br>");
_______________ _______________ ______
I get
_______________ _______________ ______
PROCEDURE dedalo.sp_conta ttoWeb can't return a result set in the given
context
_______________ _______________ ______
do I have to upgrade to PHP5, mysqli or is there another way to do that
without weak up my Linux admin ..:)?
thx
Mario
_______________ __________
WEB: www.mario-online.com
_______________ _______________ __ 3 2767
Try setting client_flags to 65536 in mysql_connect, e.g.:
mysql_connect($ host, $user, $pass, false, 65536) or
trigger_error(m ysql_error(), E_USER_ERROR);
On Jan 25, 10:20 am, "Mario Protto" <mario AT mario-online DOT
c...@usaquellop rimadichiocciol a.invalidwrote:
hi all,
PHP 4.3.10 and MySQL 5.0, trying
_______________ _______________ ______
$link = mysql_connect(D B_HOST.":".DB_P ORT, DB_USER, DB_PW)
or die("Could not connect:" . mysql_error());
mysql_select_db (DB)
or die("Could not connect:" . mysql_error());
$query = "call
sp_contattoWeb( '".$_SESSION['sess_kcliente']."','$kContatto ', '$cognome',
'$nome', '$posizione', '$telefono', '$cellulare', '$email','$note ', @out)";
$result = mysql_query($qu ery)
or die("<br>KO: $query<br>" . mysql_error() . "<br>");
_______________ _______________ ______
I get
_______________ _______________ ______
PROCEDURE dedalo.sp_conta ttoWeb can't return a result set in the given
context
_______________ _______________ ______
do I have to upgrade to PHP5, mysqli or is there another way to do that
without weak up my Linux admin ..:)?
thx
Mario
_______________ __________
WEB:www.mario-online.com
_______________ _______________ __
petersprc wrote:
Try setting client_flags to 65536 in mysql_connect, e.g.:
mysql_connect($ host, $user, $pass, false, 65536) or
trigger_error(m ysql_error(), E_USER_ERROR);
thx Peter, I've already tried it but it seems there is no way, anyone has
experience about that?
Mario
_______________ _______________ __
WEB: www.mario-online.com
_______________ _______________ __
Mario Protto wrote:
petersprc wrote:
>>Try setting client_flags to 65536 in mysql_connect, e.g.:
mysql_connect($ host, $user, $pass, false, 65536) or trigger_error(m ysql_error(), E_USER_ERROR);
thx Peter, I've already tried it but it seems there is no way, anyone has
experience about that?
Mario
_______________ _______________ __
WEB: www.mario-online.com
_______________ _______________ __
I made two changes that solved the problem for me:
* stopped using persistent connections
* used 131074 as client_flags.
--
Bruno Barberi Gnecco <brunobg_at_use rs.sourceforge. net>
The truth you speak has no past and no future.
It is, and that's all it needs to be. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mark |
last post by:
I would love to see a snippet of .NET code that either:
1. Executes a raw SQL statement against MySQL or PostgreSql.
2. Executes a stored procedure on PostgreSql.
Ideally both examples would require a parameter ... for example, a select
statement with a where clause that has a changing parameter value - not hard
coded. in sql server, a...
|
by: IamtheEvster |
last post by:
Hi All,
I am currently using PHP 5 and MySQL 5, both on Fedora Core 5. I am
unable to call a MySQL stored procedure that returns output parameters
using mysql, mysqli, or PDO. I'm having a hell of a time with it...
The following comes from phpinfo():
PHP Version: 5.1.2
mysql Client API version: 5.0.18
mysqli Client API version: 5.0.18
|
by: bshumsky06 |
last post by:
Hi,
I am trying to create stored procedures in MySQL. Does anyone have a
suggestion on a good IDE to use. I have been working with the MySQL
Query Browser but it generates errors very often and is shut down by
Windows. When I make changes to my procedure, it doesn't seem to
always change what is being executed. Furthermore, sometimes the...
|
by: sarma |
last post by:
Hi friends,
I created a stored procedure in MySQL like
create procedure p()
select NOW();
I write a C program, from which i wish to call this stored procedure, i used both mysql_query() and mysql_real_query() functions, but unable to call this stored procedure. Can U please help me out in this......
"CALL p() failed:...
|
by: eholz1 |
last post by:
Hello PHP Group,
Is there any advantages (or disadvantages) in using mysqli instead of
mysql (querys, connections to database, etc).
I am currently using mysql_connect, and things like this:
$result = @mysql_query("SELECT * FROM images3 WHERE id=" . $img . "
AND p=" .$p. "");
to access my database. I see that some people are using the
| |
by: deko |
last post by:
I've just loaded phpMyAdmin on a Debian Linux server with Apache2, MySql5 and
PHP5.
myserver # dpkg -l | grep php
ii libapache-mod-php5 5.2.0-8+etch4
ii libapache2-mod-php4 4.4.4-8+etch2
ii php4-common 4.4.4-8+etch2
ii php5-common 5.2.0-8+etch4
ii php5-gd 5.2.0-8+etch4
ii php5-mcrypt 5.2.0-8+etch4
|
by: doctorhardik |
last post by:
hai all
i am try configure php4.3.9 on my FC-3 machine.
and my mysql database version 5.0.1, in phpinfo file it show mysql but
when i run
php -v command it show error like
|
by: Urmi Biswas |
last post by:
Hi All,
Has anyone tried calling MySQL stored procedure from php scripts?
I use PEAR DB module to access MySQL database.
Not sure if php 4.4.0 (that we use) support calling stored procedures.
Regards,
Urmi
|
by: clintolin |
last post by:
My environment
php 5.3.0
MySQL Server version: 5.1.37
MySQL client version: 5.1.37
xampp for windows 1.7.2
Windows 7
The Error message I get is this:
Array ( => HY000 => 1414 => OUT or INOUT argument 3 for routine cmcs.spLogin is not a variable or NEW pseudo-variable in BEFORE trigger )
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |