WordPress.org

Ready to get started?Download WordPress

Forums

help with syntax (3 posts)

  1. andrewbillits
    Member
    Posted 9 years ago #

    This is related to a plugin i'm working on

    UPDATE {$table_prefix}t_stop SET t_stop_data = '$t_stop' WHERE t_stop_col = 'data'

    all i get is errors out of that and i can't figure out how to fix it.

    thanks

  2. Tahongawaka
    Member
    Posted 9 years ago #

    Which errors are you getting?

    what does echo "UPDATE {$table_prefix}t_stop SET t_stop_data = '$t_stop' WHERE t_stop_col = 'data'"; give? Is it what you expect?

  3. andrewbillits
    Member
    Posted 9 years ago #

    omg. i am so stupid. this is what i did wrong:

    t_stop_col = 'data'
    should have been
    t_stop_col ='data'

    that one space screwed me up. ;)

    Thanks for the help.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.