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
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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.