Alternatives to this function include:. Returns an associative array that corresponds to the fetched row and moves the internal data pointer ahead. It only returns an associative array. Returns an associative array of strings that corresponds to the fetched row, or false if there are no more rows. If two or more columns of the result have the same field names, the last column will take precedence. Note : Field names returned by this function are case-sensitive.
Submit a Pull Request Report a Bug. Warning This extension was deprecated in PHP 5. Parameters result The result resource that is being evaluated. Return Values Returns an associative array of strings that corresponds to the fetched row, or false if there are no more rows. Worth pointing out that the internal row pointer is incremented once the data is collected for the current row.
It appears that you can't have table. If you call it in the if and the where with only one row in the result, one of the two conditions will not get a row. Pablo, for now I am expecting 1 row, and yes the result is : "Miner Protocol is: ". Show 10 more comments. Active Oldest Votes. Improve this answer. Pablo Pablo I've made an update of my answer.
You have to read the documentation, I've never used the C interface of MySQL, but I find the documentation pretty clear and easy to follow. Yes, you should do that, I suspect that your query returns more than one row. Add a comment. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta.
New post summary designs on greatest hits now, everywhere else eventually. Related Hot Network Questions. Question feed.
0コメント