MS-SQL problem after upgrade to 4.3.10

This is a discussion on MS-SQL problem after upgrade to 4.3.10 within the PHP Language forums, part of the PHP Programming Forums category; My hosting company upgraded yesterday to pHp 4.3.10. Since then, all my INSERT/UPDATE/DELET query on our ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-16-2004
Kulnor
 
Posts: n/a
Default MS-SQL problem after upgrade to 4.3.10

My hosting company upgraded yesterday to pHp 4.3.10. Since then, all my
INSERT/UPDATE/DELET query on our MS-SQL database seem to fail. No
specific error message is returned by mssql_get_last_message(). The
SELECT statements work fine.
If I test on my local server running 4.3.9 the application behaves
properly. Any suggestion/idea?
thanks

Reply With Quote
  #2 (permalink)  
Old 12-16-2004
EnglishMan
 
Posts: n/a
Default Re: MS-SQL problem after upgrade to 4.3.10

post the code and let's have a look

Reply With Quote
  #3 (permalink)  
Old 12-17-2004
Chung Leong
 
Posts: n/a
Default Re: MS-SQL problem after upgrade to 4.3.10


"Kulnor" <pascal@mail.com> wrote in message
news:1103217242.842274.324520@c13g2000cwb.googlegr oups.com...
> My hosting company upgraded yesterday to pHp 4.3.10. Since then, all my
> INSERT/UPDATE/DELET query on our MS-SQL database seem to fail. No
> specific error message is returned by mssql_get_last_message(). The
> SELECT statements work fine.
> If I test on my local server running 4.3.9 the application behaves
> properly. Any suggestion/idea?
> thanks
>


Windows or *nix?


Reply With Quote
  #4 (permalink)  
Old 12-20-2004
Kulnor
 
Posts: n/a
Default Re: MS-SQL problem after upgrade to 4.3.10

after further looking at the problem, the query executes properly but
the mssql_query() function always returns FALSE, even on success.
This is with IIS4 and pHp 4.3.10
Sample dummy code below always indicates failure but the user record is
properly updated:

// SELECT A SPECIFIC USER IN THE TABLE
echo '<br>USER NAME BEFORE UPDATE<br>';
$query="SELECT * FROM tb_User WHERE ID='jdoe'";
echo "Executing query: $query<br>";
$rs = mssql_query($query) ;
while($row=mssql_fetch_array($rs)) echo "Name=".$row['Name']."<br>";

// UPDATE THE USER NAME
echo '<br>SET USER NAME TO CURRENT DATE AND TIME<br>';
$name=date("r");
$query="UPDATE tb_user SET name='$name' WHERE ID='jdoe'";
echo "Executing query: $query<br>";
if(mssql_query($query)) echo "Success<br>";
else echo "Failure<br>";

// SELECT SPECIFIC USER AFTER UPDATE
echo '<br>USER NAME AFTER UPDATE<br>';
$query="SELECT * FROM tb_User WHERE ID='jdoe'";
echo "Executing query: $query<br>";
$rs = mssql_query($query) ;
while($row=mssql_fetch_array($rs)) echo "Name=".$row['Name']."<br>";

echo 'The query executes properly but mssql_query does not return
true....<BR>';

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:24 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0