Jump to content

Roe Name With A SPace


phpretard

Recommended Posts

I knoe I Made A Slight Mistake When I Named A Batabase Table With A Space In The Name.  Isn't there a work around for that.  It's kind of too late for me o go and change the whole thing around.

 

 

$row="No Good";

$result = mysql_query("SELECT * FROM $row ");

 

Thank you for your help.

Link to comment
https://forums.phpfreaks.com/topic/105290-roe-name-with-a-space/
Share on other sites

A little tip for databases: database, table names, and column names should NOT have a space in them..  so in that case the column name should be No_Good...  if its a row you are looking to find that has a space in it, you would then say insert a row where No_Good = No Good or whatever...

 

then your query would theoretically work. as it would get everything inside the table No_Good the information from there would then be shown with no spaces...

 

make sense at all?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.