Chapman Posted January 8, 2010 Report Share Posted January 8, 2010 (edited) mssql 2000 no mssql 2005 querriji atskiras? uz msssql 2000, manuprat šim ir jadarbojas: $error_count = mssql_query ( "UPDATE S_Users SET Error = Error+1 WHERE Nick = $nick " ); mssql_execute($error_count); Bet uz mssql man nedarbojas :( Warning: mssql_query() [function.mssql-query]: message: Invalid column name 'whooper'. (severity 16) in C:\xampp\htdocs\index.php on line 77 Warning: mssql_query() [function.mssql-query]: Query failed in C:\xampp\htdocs\index.php on line 77 Warning: mssql_execute() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\index.php on line 78 eh.... ka labak, man tabulas "S_Users" laukā "error" ierakstiit +1? Edited January 8, 2010 by Chapman Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted January 8, 2010 Report Share Posted January 8, 2010 Man izskatās, ka kļūda ir kur citur nevis tevis ieliktajā kodā. Reku error mesidžs: Invalid column name 'whooper'. Skaties kur tu lieto tādu un skaties vai esi pareizi viņu uzrakstījis. Quote Link to comment Share on other sites More sharing options...
Chapman Posted January 8, 2010 Author Report Share Posted January 8, 2010 (edited) Man izskatās, ka kļūda ir kur citur nevis tevis ieliktajā kodā. Reku error mesidžs: Invalid column name 'whooper'. Skaties kur tu lieto tādu un skaties vai esi pareizi viņu uzrakstījis. tas "whooper" bija mainīgā $nick vērtība uz to brīdi! uz mssql 2000 šāds kverijs man gāja! tagad piespiedkārtā nākas lietot mssql 2005, un nedarbojas šis :( laikam mssql 2000 no 2005 atskiras sintakse! Labi, to sintakses problēmu atrisināšu pats ganjau, bet par ko leicina šis error: Warning: mssql_execute() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\index.php on line 79 Edited January 8, 2010 by Chapman Quote Link to comment Share on other sites More sharing options...
2easy Posted January 8, 2010 Report Share Posted January 8, 2010 chapman, mācīties var arī patstāvīgi. manuālī ir rakstīts, ka mssql_execute() izpilda stored procedure. tu vispār dokumentāciju lasi? un tas whooper ir jāliek pēdiņās 'whooper' Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted January 8, 2010 Report Share Posted January 8, 2010 Jup - 2easy ir taisnība. http://uk3.php.net/manual/en/function.mssql-query.php un izmanto fakin http://php.net Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.