home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
General Forums
OffTopic
php/SQL-Help for Geofence-Project?
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="FreakyJ" data-source="post: 1139141" data-attributes="member: 106003"><p>Ahh, I just read the first page and it only describes teh communication with the Nas, but not how to track these things <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p><a href="http://www.php-einfach.de/einf_mysql.php" target="_blank">http://www.php-einfach.de/einf_mysql.php</a></p><p>Here you can learn how to make a mysql connection with php.</p><p></p><p>Basically you just need a user table:</p><p>id, name, pw, available, time</p><p></p><p>from you phone, you call a simple URL: something.php?id=[user_id]&pw=[pw]&available[true/false]</p><p>The pw is not really secure, it is just a not known secret to make hacking a bit harder...</p><p></p><p>You use the first two vars to get the right user and the last one to set the status in the db.</p><p>After that you check if both users are not available and if this is true switch the cam on <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>If you like you can send me your php script via pn or post it here and I will take a look on it <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p>Id did a lot with php as I was younger, so I should be able to help you^^</p></blockquote><p></p>
[QUOTE="FreakyJ, post: 1139141, member: 106003"] Ahh, I just read the first page and it only describes teh communication with the Nas, but not how to track these things :) [URL]http://www.php-einfach.de/einf_mysql.php[/URL] Here you can learn how to make a mysql connection with php. Basically you just need a user table: id, name, pw, available, time from you phone, you call a simple URL: something.php?id=[user_id]&pw=[pw]&available[true/false] The pw is not really secure, it is just a not known secret to make hacking a bit harder... You use the first two vars to get the right user and the last one to set the status in the db. After that you check if both users are not available and if this is true switch the cam on :) If you like you can send me your php script via pn or post it here and I will take a look on it :) Id did a lot with php as I was younger, so I should be able to help you^^ [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
General Forums
OffTopic
php/SQL-Help for Geofence-Project?
Contact us
RSS
Top
Bottom