But why this foreach loop doesnt work?

|
Mayank_theDevloper 2019-05-09 15:05:40
Add line 15 in while loop
2019-05-09 15:05:47
On print r it shows only 1 record
2019-05-09 15:06:03
Of mysqli fetch array
singhmohan 2019-05-09 15:06:14
2019-05-09 15:05:47
On print r it shows only 1 record

Listen carefully what we are saying

2019-05-09 15:07:27
But why this foreach loop doesnt work?
2019-05-09 15:07:35
Used to work fine
Mayank_theDevloper 2019-05-09 15:07:41
2019-05-09 15:06:03
Of mysqli fetch array

Please vist this link and lern how to do this
https://www.w3schools.com/php/php_mysql_select.asp

PHP MySQL Select DataW3Schools
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.
2019-05-09 15:07:48
I can output data using while
Mayank_theDevloper 2019-05-09 15:08:48
2019-05-09 15:07:27
But why this foreach loop doesnt work?

For this you need to lern difference between while and foreach loop

2019-05-09 15:09:25
And whats wrong with print_r
singhmohan 2019-05-09 15:09:52
2019-05-09 15:09:25
And whats wrong with print_r

It is print only arrays

2019-05-09 15:24:51
Ok
2019-05-09 15:24:53
I got it
2019-05-09 17:48:33
Mayank_theDevloper 2019-05-09 14:14:35
Set usertype when user create and then get when user login

CREATE TABLE users(
id INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
username VARCHAR(50) NOT NULL UNIQUE,
PASSWORD VARCHAR(255) NOT NULL,
usertype VARCHAR(25) NOT NULL
);

then ? @Mayank_theDevloper

Mayank_theDevloper 2019-05-09 17:49:15
Add usertype Varchar (25)
2019-05-09 19:11:51
Hello everyone
We have a urgent requirement for senior PHP developer anyone is interested please let me know .
Job location Indore
Reference should be highly appreciated
Thank you
Ajwebdev 2019-05-09 22:06:40
How to connect angluar with code igniter pls help
Sruthy 2019-05-10 05:33:54
How to create a modal when a image is clicked and then to save it when images are taken from db in php
Sruthy 2019-05-10 05:34:05
Pls me it’s urgent
2019-05-10 05:51:24
2019-05-09 17:48:33
CREATE TABLE users(
id INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
username VARCHAR(50) NOT NULL UNIQUE,
PASSWORD VARCHAR(255) NOT NULL,
usertype VARCHAR(25) NOT NULL
);

then ? @Mayank_theDevloper

If you find trouble writing this then simple create in phpmyadmin web view and export table

kailash_singh 2019-05-10 06:56:51
Hello friends…mujhe help chahiye.. Uske liye mai pay b karunga 2000 rs. Ek chota sa module banwana hai mujhe…msg me agar koi interested hai tou
2019-05-10 06:57:41
kailash_singh 2019-05-10 06:56:51
Hello friends…mujhe help chahiye.. Uske liye mai pay b karunga 2000 rs. Ek chota sa module banwana hai mujhe…msg me agar koi interested hai tou

In which language ?

kailash_singh 2019-05-10 06:57:51
Codeigniter
kailash_singh 2019-05-10 06:58:20
Wordfile ke help se db mai data import karna h
kailash_singh 2019-05-10 06:58:32
Php m b chahela
kailash_singh 2019-05-10 06:58:38
No issue
Amit Gupta 2019-05-10 06:58:50
I can do it
kailash_singh 2019-05-10 06:59:09
Msg me personally
2019-05-10 09:03:19
kailash_singh 2019-05-10 06:59:09
Msg me personally

Means you want to read data from word fine and save you your database

arevu2021 2019-05-10 15:04:38
We’re in need of Php developers in Chennai 10 nos. Please contact 044 42107111 (11am to 5pm) or mail ur CV to hrd@dawninfosystem.com, salary at par with industries…
i_am_r00t 2019-05-10 17:05:28
arevu2021 2019-05-10 15:04:38
We’re in need of Php developers in Chennai 10 nos. Please contact 044 42107111 (11am to 5pm) or mail ur CV to hrd@dawninfosystem.com, salary at par with industries…

Experienced or fresher??

Sruthy 2019-05-10 17:14:28
Video is not uploaded in server how to solve this
Sruthy 2019-05-10 17:14:37
luv_php-2684.jpg

Sruthy 2019-05-10 17:14:52
This is error coming
Sruthy 2019-05-10 17:15:01
But in local it is working
Sruthy 2019-05-10 17:15:10
How to solve this
Sruthy 2019-05-10 17:15:12
Pls me
2019-05-10 18:41:49
Can anyone tell me where to put this codeπŸ‘‡πŸ‘‡
2019-05-10 18:44:00
luv_php-2693.jpg

2019-05-10 18:44:20
In my PHP website www.hiddensmm.com
2019-05-10 18:45:05
Sruthy 2019-05-10 17:14:37

Did u set upload path?

2019-05-10 18:45:19
2019-05-10 18:45:05
Did u set upload path?

No

2019-05-10 18:47:17
2019-05-10 18:45:05
Did u set upload path?

Can you help I selected automatically smarter ads

2019-05-10 18:47:44
I thought it was normal upload
2019-05-10 18:48:20
luv_php-2699.jpg

2019-05-10 18:48:27
2019-05-10 18:47:44
I thought it was normal upload

But in which file

rohit267 2019-05-10 18:52:30
2019-05-10 18:48:20

This is for where u want to show the add

2019-05-10 18:52:53
rohit267 2019-05-10 18:52:30
This is for where u want to show the add

I want to show ads in whole website

rohit267 2019-05-10 18:53:38
2019-05-10 18:52:53
I want to show ads in whole website

I mean which part of the website, which block, left, right , navbar footer etc.

2019-05-10 18:54:42
rohit267 2019-05-10 18:53:38
I mean which part of the website, which block, left, right , navbar footer etc.

Come inbox

|