The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> mysqli_fetch_array() ?
tudsy
post Jul 2 2021, 07:01 AM
Post #1


Advanced Member
****

Group: Members
Posts: 246
Joined: 30-September 14
Member No.: 21,611



Hi

I am having problems fetching the data from a query result. Any help will be greatly appreciated.



$qry = mysqli_query($conn,"SELECT * FROM CustomersArt WHERE CustomersArtitemid ='$id'"); // select query

$data_e = mysqli_fetch_array($qry,MYSQLI_BOTH); // fetch data




$conn is the database connection


This post has been edited by tudsy: Jul 2 2021, 07:09 AM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Brian Chandler
post Jul 2 2021, 01:15 PM
Post #2


Jocular coder
********

Group: Members
Posts: 2,460
Joined: 31-August 06
Member No.: 43



Looks all right - what is the problem? What do you get? Have you tried using print_r() to check what is returned in $data_e?

Do you understand what "debugging" means? It means that the way to change a non-working program to a working program is not just asking people what they think is wrong with it, but finding out yourself. Check what the intermediate results are. This is the fourth(?) time I have responded to one of your questions... and you don't appear to be listening.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th April 2024 - 08:27 PM