problems with ‘show tables’ function

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
xunling
New php-forum User
New php-forum User
Posts: 6
Joined: Thu Feb 08, 2018 1:05 am

Thu Feb 08, 2018 1:10 am

I have problems with the ‘show tables’ > mysql_assoc functions

I don’t know which value I have to use by the echo $row; function

Here is the link


https://pastebin.com/uQpEy5Qh

chorn
php-forum Fan User
php-forum Fan User
Posts: 559
Joined: Fri Apr 01, 2016 2:18 am

Thu Feb 08, 2018 2:54 am

always look at what you got with var_dump()

xunling
New php-forum User
New php-forum User
Posts: 6
Joined: Thu Feb 08, 2018 1:05 am

Thu Feb 08, 2018 5:11 am

can you tell me what I have to write instead of $row

chorn
php-forum Fan User
php-forum Fan User
Posts: 559
Joined: Fri Apr 01, 2016 2:18 am

Thu Feb 08, 2018 5:39 am

use var_dump and you will see the keys.

xunling
New php-forum User
New php-forum User
Posts: 6
Joined: Thu Feb 08, 2018 1:05 am

Fri Feb 09, 2018 12:11 am

Can you help me in an other way, I have php7 and it doesn’t support echo var_dump();

chorn
php-forum Fan User
php-forum Fan User
Posts: 559
Joined: Fri Apr 01, 2016 2:18 am

Fri Feb 09, 2018 12:46 am

var_dump does the echo by itself, just provide a variable you want to see the contents for.

http://php.net/manual/en/function.var-dump.php

Post Reply