0

can i use other method in place of while($row=mysql_fetch _array($run)) to extract data from database

23rd Dec 2016, 8:28 AM
manish
manish - avatar
7 ответов
+ 2
he made another question and said can i use another loop and with method maybe he meant another way, he looks like a beginner.
23rd Dec 2016, 10:00 AM
Uran Kajtazaj
Uran Kajtazaj - avatar
+ 1
why do you want to do that
23rd Dec 2016, 8:31 AM
Uran Kajtazaj
Uran Kajtazaj - avatar
+ 1
he doesn't want to use while loop.
23rd Dec 2016, 9:38 AM
Uran Kajtazaj
Uran Kajtazaj - avatar
+ 1
a while loop is not a method... mysql_fetch_array() is though... pretty sure he said method so what makes you think that @Uran ?
23rd Dec 2016, 9:57 AM
John van den Elzen
John van den Elzen - avatar
0
you can use mysqli instead $quey = "dbquery"; $result = mysqli_query(connectionvar,$query); while($row = mysqli_fetch_assoc($result)) { code to run for $row[column]; }
23rd Dec 2016, 9:36 AM
John van den Elzen
John van den Elzen - avatar
0
Thankyou sir for saying . I was doing mistake.
24th Dec 2016, 3:59 PM
manish
manish - avatar
0
Sir. You are right, I Am beginner.
24th Dec 2016, 4:11 PM
manish
manish - avatar