Skip to content
Advertisement

echo MySql column names and values

What I need is to have a list name => value to be able to make MySql queries. My problem is, I can access MySql records, but I also need to access table’s column names, what should I change in my code?

Thanks

JavaScript

ok, so now why can’t I join the values to then make my sql queries?

JavaScript

I just get empty colunas and valores

Thanks, sorry if it seems to easy, but I’m lost

Advertisement

Answer

You needs while loop and a call to mysql_fetch_assoc

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement