[PHP] webcam redirection/tunnel question

2004-04-08 Thread Jeremy Davis
I have a webcam that travels through various wireless links.  It runs a
webserver and can be viewed from anywhere.  A lot of people watch this
webcam, its out in a woods monitoring wildlife.  The problem is that eats up
a lot of our available bandwidth on the wireless network.  Is there a way
you could use php to display the video stream from the NOC so only one feed
to the webcam is necessary?

Thanks in advance

Jeremy

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Is this code right?

2004-01-19 Thread Jeremy Davis
snip
$query = SELECT Serial, Password from accounts where
UserName='$UserName';
$result = mysql_query($query) or die(Query errort:  . mysql_error());
$row = mysql_fetch_row($result) or die(User Not found:  . mysql_error());

mysql_fetch_row only pulls data one cell at a time so you would need to call
$row[0] twice to get the two cells before calling the next row.


$Serial = htmlspecialchars($row[0]);


mysql_select_db is for selecting the database and NOT the table, the
SELECT statement must be something like this: select SOMETHING from
TABLE where WHERE_CLAUSE

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php