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: 1139175" data-attributes="member: 106003"><p>Du hast die kleine if übersehen <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 ($surveillance) {</p><p>//Kamera aktivieren:</p><p></p><p>Und schau noch hier:</p><p>while($row = mysql_fetch_object($result)) {</p><p> if ($row->available == true)</p><p> $surveillance = false;</p><p>}</p><p></p><p>Sobald ein user in der Gegend des Hauses ist, ist der Wert "available" in der DB true. Folglich wird die Variable $surveillance auf false gesetzt und die überwachung in der if deaktiviert <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /></p><p>Das ist die eine Zeile, die du noch einfügen musst</p></blockquote><p></p>
[QUOTE="FreakyJ, post: 1139175, member: 106003"] Du hast die kleine if übersehen :) if ($surveillance) { //Kamera aktivieren: Und schau noch hier: while($row = mysql_fetch_object($result)) { if ($row->available == true) $surveillance = false; } Sobald ein user in der Gegend des Hauses ist, ist der Wert "available" in der DB true. Folglich wird die Variable $surveillance auf false gesetzt und die überwachung in der if deaktiviert ;) Das ist die eine Zeile, die du noch einfügen musst [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
General Forums
OffTopic
php/SQL-Help for Geofence-Project?
Contact us
RSS
Top
Bottom