user id for connection to MySql
Posted: June 21st, 2010, 10:43 pm
Hello,
First off what a great plug-in. I have forms on my membership site that when members save data to MySql need to be only accessible by these members.
I need to be able to link to the user id in the wordpress tables,
to know the php variable that wordpress uses for the user Id so
I can make it the same type as the user ID in your table.
when I enter a value into php, I have to name it so php knows what to do with it.
Like $test_id
I have to be able to tell who is logged in, so I can put that id into the MySql database
when they enter the info in the form.
Also so I can sort the database to show only their data when they are browsing the
data they stored there.
I'm not sure how to access that information from the s2Member plugin.
Any help is greatly appreciated as this is one of my final hurdles to going live.
Thank You Very Much,
Mike Ocampo
First off what a great plug-in. I have forms on my membership site that when members save data to MySql need to be only accessible by these members.
I need to be able to link to the user id in the wordpress tables,
to know the php variable that wordpress uses for the user Id so
I can make it the same type as the user ID in your table.
when I enter a value into php, I have to name it so php knows what to do with it.
Like $test_id
I have to be able to tell who is logged in, so I can put that id into the MySql database
when they enter the info in the form.
Also so I can sort the database to show only their data when they are browsing the
data they stored there.
I'm not sure how to access that information from the s2Member plugin.
Any help is greatly appreciated as this is one of my final hurdles to going live.
Thank You Very Much,
Mike Ocampo