Fatal Error Call To Undefined Function Db_num_rows
that make connections all over the world. Join today Download & Extend Drupal Core Distributions Modules Themes OG Block VisibilityIssues php fatal error: call to undefined function db_num_rows Closed (fixed)Project:OG Block VisibilityVersion:6.x-1.1Component:CodePriority:NormalCategory:Bug reportReporter:nelsonleeCreated:January 11, 2009 - 19:40Updated:February 5, 2009 - 19:20 Log in or register to update this issue Jump to:Most recent comment When delete an empty group, it gives me such an error, in og_block_visibility.module on line 284 (ver 6.x-1.1). I search the forum and found that it should change from db_num_rows(...) to db_result(...). Done. Comments Comment #1 Anonymous (not verified) CreditAttribution: Anonymous commented January 22, 2009 at 1:14pm Assigned: Unassigned » Log in or register to post comments Comment #2 Anonymous (not verified) CreditAttribution: Anonymous commented January 22, 2009 at 1:50pm Status: Active » Fixed Thanks, ill get that correction committed to the development branch later today Best, Paul Log in or register to post comments Comment #3 February 5, 2009 at 7:20pm Status: Fixed » Closed (fixed) Automatically closed -- issue fixed for 2 weeks with no activity. Log in or register to post comments Add child issue, clone issue News itemsDrupal news Planet Drupal Association news Social media directory Security announcements Jobs Our communityCommunity Getting involved Services, Training & Hosting Groups & Meetups DrupalCon Code of conduct DocumentationDocumentation Drupal 8 docs Drupal 7 docs Developer docs api.drupal.org Drupal code baseDownload & Extend Drupal core Modules Themes Distributions Governance of communityAbout Web accessibility The Drupal Association About Drupal.org Terms of service Privacy policy Drupal is a registered trademark of Dries Buytaert.
that make connections all over the world. Join today Download & Extend Drupal Core Distributions Modules Themes Top SearchesIssues Fatal error: Call to undefined function db_num_rows... on line 131 Closed (fixed)Project:Top SearchesVersion:6.x-1.0-rc3Component:MiscellaneousPriority:NormalCategory:Bug reportAssigned:UnassignedReporter:attila10Created:December 27, 2008 - 16:50Updated:January 12, 2009 - 20:00 Log in or register to update this issue Hi, any Idea what this mean: Fatal error: Call to undefined function db_num_rows() in .... sites\all\modules\top_searches\top_searches.module on line 131 Drupal 6.6 on Windows XP Thanks Comments Comment #1 ShaunPatrick CreditAttribution: ShaunPatrick commented December 29, https://www.drupal.org/node/357354 2008 at 4:02am Ya i have the same prob...... any ideas??? Log in or register to post comments Comment #2 z.stolar CreditAttribution: z.stolar commented December 29, 2008 at 7:40am Title: Fatal Error... » Fatal error: Call to undefined function db_num_rows... on line 131 Category: support » bug Status: Active » Fixed Apparently I made a complete mess with the https://www.drupal.org/node/351579 CVS versions, and both RC1 and RC2, actually used some D5 code. I released a RC3 version, and I'd appreciate a lot your testing. Log in or register to post comments Comment #3 ShaunPatrick CreditAttribution: ShaunPatrick commented December 29, 2008 at 2:09pm Version: 6.x-1.0-rc1 » 6.x-1.0-rc3 Status: Fixed » Postponed (maintainer needs more info) Ok so the error is gone but now nothing is showing up. I have the block on my main page but nothing is showing now evn the heading..... hmmmmmm ..... o and thanks for the quick response! Log in or register to post comments Comment #4 ShaunPatrick CreditAttribution: ShaunPatrick commented December 29, 2008 at 2:14pm Status: Postponed (maintainer needs more info) » Fixed Nevermind its working now Log in or register to post comments Comment #5 z.stolar CreditAttribution: z.stolar commented December 29, 2008 at 5:23pm @ShaunPatrick: Did you have to do anything to get the block to show properly (visiting the admin/build/block page, refreshing cache...)? This might be useful information for others. Thanks for testing & reporting! Log in or registe
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn http://stackoverflow.com/questions/23474996/php-fatal-error-call-to-undefined-function-mssql-select-db-in-c-appscrip more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up “PHP Fatal error: Call to undefined function mssql_select_db() in c:\…appscript.php on line 16” up vote 0 down vote favorite Folks, Im trying to run a fatal error basic php script in cmd prompt which connects to sql server 2012 on my local machine, its gives me the following error..."PHP Fatal error: Call to undefined function mssql_select_db() in c:...appscript.php on line 16" Here is my script, im not very familiar with php but have been playing around with it and im unsure if my script is correct.. $User, "PWD" => $Pass, "Database" => $DB); $conn = sqlsrv_connect( $Server, $connectionInfo); //or die("Couldn't connect to SQL Server on $Server"); //select a database to work with $selected = mssql_select_db($DB, $connectionInfo) or die("Couldn't open database $myDB"); //declare the SQL statement that will query the database $query = "SELECT name from test "; //execute the SQL query and return records $result = mssql_query($query); $numRows = mssql_num_rows($result); echo "
" . $numRows . " Row" . ($numRows == 1 ? "" : "s") . " Returned
"; //display the results while($row = mssql_fetch_array($result)) { echo "" . $row["name"]; } //close the connection mssql_close($dbconn); ?> Be great if someone could help or least give me a few pointers. php sql-server iis-7.5 share|improve this question asked May 5 '14 at 14:30 Brumbles 714 add a comment| 2 Answers 2 active oldest votes up vote 1 down vote accepted It seems you are using wrong functions. You should use only functions from http://www.php.net/manual/en/function.sqlsrv-begin-transaction.php It seems there is no need to select db (there is no sqlserv_select_db function). You should change your mssql_query to sqlsrv_query and the same for other functions and you should look at PHP manual because some functions may missing. share|improve this answer answered May 5 '14 at 14:45 Marcin Nabiałek 39.6k2176112 Thanks man, just ch