Fatal Error Call To Undefined Function Mysql_fetch_array In
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss call to undefined function mysql_num_rows() the workings and policies of this site About Us Learn more about
Call To Undefined Function Mysql_query()
Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow mysql_fetch_array() expects parameter 1 to be resource 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 mysql_fetch_array() expects parameter 1 to be resource, boolean given in other. Join them; it only takes a minute: Sign up Changing mysql_fetch_array to PDO equivalent up vote 2 down vote favorite $value) { $sql.=$id.","; } $sql=substr($sql, 0, -1).") ORDER BY name ASC"; $query=mysql_query($sql); $totalprice=0; while ($row=mysql_fetch_array($query)){ $subtotal=$_SESSION['cart'][$row['id_product']]['quantity']*$row['price']; $totalprice+=$subtotal; ?>
Mysqli Fetch Array
name="quantity[]" size="5" value="" />
Unable to connect to the ' . 'database server at this time.
'); } uncaught error: call to undefined function mysql_connect() if (!@mysql_select_db('')) { exit('Unable to locate the dm' . 'database at mysqli_query this time.
'); } $id = $_GET['id']; $article = @mysql_query( "SELECT title, keywords, description, articletext, authorid FROM articles WHERE id='$id'"); if (!$article) { exit('Error fetching article details: ' . mysql_error() . '
'); } $article = mysql_fetch_array($article); $title = $article['title']; $keywords = $article['keywords']; $description = $article['description']; $articletext = $article['articletext']; http://stackoverflow.com/questions/34927545/changing-mysql-fetch-array-to-pdo-equivalent $authid = $article['authorid']; $author = msql_query( "SELECT name FROM author WHERE id=$authid"); if (!$author) { exit('Error fetching author details: ' . mysql_error() . '
'); } $author = mysql_fetch_array($author); $authorname = $author['name']; ?>New? Today's Posts FAQ Rules Guidelines Search Advanced Search Forum :: Server http://www.codingforums.com/php/213821-getting-error-called-call-undefined-function-mysql_fetch_rows.html side development PHP Resolved Getting an error called: Call to undefined function mysql_fetch_rows() If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start call to viewing messages, select the forum that you want to visit from the selection below. Enjoy an ad free experience by logging in. Not a member yet? Register. Results 1 to 12 of 12 Thread: Getting an error called: Call to undefined function mysql_fetch_rows() Thread Tools Show Printable Version Email this call to undefined Page… Subscribe to this Thread… Rate This Thread Current Rating Excellent Good Average Bad Terrible 01-02-2011,04:40 AM #1 bucket View Profile View Forum Posts Regular Coder Join Date Sep 2008 Posts 716 Thanks 8 Thanked 17 Times in 16 Posts Getting an error called: Call to undefined function mysql_fetch_rows() I am having this error on a script im making: PHP Code: Fatalerror:Calltoundefinedfunctionmysql_fetch_rows()in/home/t2n7gauf/public_html/inc/functions2.phponline69
Here is my code PHP Code:
include_once("config.php");
error_reporting(E_ALL);