[PHP] How to parse still images from video clips
Can someone point me in the right direction on how to parse still images from video clips video information. Do the videos have a tag like mp3 where I can get the video information? I can parse mp3 info with mp3 tag using PHP but can this be done with PHP? If not then what language is best for this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Slideshow problem
My problem is the images are displayed all at once instead of one at a time. So I get 10 images all on one page. How do I make it display one image at a time like a slideshow instead of all images on one web page? . The problem seems to be within my loop. I am using latest php4 version. // sloppy programming ahead // Begin Random Function // Anyone know of a better way to randomize? function random($max = 1) { static $startseed = 0; if (!$startseed) { $startseed = hexdec(uniqid(''))%getrandmax(); srand($startseed); } return ((rand()/getrandmax())*$max); } //end function if ($result) { /* Print these results to the screen in a nice format */ $i = 0; $number = 3; IF ($number == 0) : PRINT "There were no records matching your query"; PRINT "$abc"; ELSEIF ($number > 0) : //PRINT "Search Results Returned: $number"; WHILE ($i < $number): // Assign variables within lloop $bar =$numguest[0]; $foo = random($bar); // call random function to get a new random pic $record = mysql_result($result,$foo,"ID"); $cat = mysql_result($result,$foo,"category"); $name = mysql_result($result,$foo,"picture_name"); $rating = mysql_result($result,$foo,"rating"); // $name = mysql_result($result,$i,"name"); ?> Name: Record: Category: Rating: Total Records: Random Number: Record: Height= Width= "; ENDIF; } ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Passing string variable gets cut off
My strings are getting cut off when I pass to destination web page Example: Assign variable from database $subcategory = mysql_result($result,$i,"subcategory"); Variable $subcategory is assigned "Graphic Editors" from database (notice two words) Next I make a link and pass the variables to new page when person clicks link http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Best way to pass SQL TEXT field via a link
I'm trying to update an existing record based on a link that represents the record to update. I have a link and I am passing variables that were assigned from a SQL database to another php form page which will be used to update the record. I'm passing variable like so:http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Add data to three tables at once from one form
I know how to add data to one table but how do I add data to three tables from one form? I want to do this with just one form and on one web page so it doesn't post to another page. How do I set up the insert statement? $query = "INSERT INTO $table VALUES ('$menu_id', '$server', '$menunumber', '$menuname')"; $result = mysql_db_query($dbname, $query); Anyting special I have to do with the form submit? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Multiple select forms on same page
Need an example of multiple select forms on the same page using PHP, Javascript, and MySQL. Can someone point me to a link. I have a Javascript that does this but I need to see the MySQL and PHP part. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Loop in a loop menu system output problem
I am trying to make a simple HTML menu system. I am having problems displaying menu links under the correct submenu from a loop. I have a database with two tables. One table holds menu and sub menu headings and the other table holds the contents of each submenu (the actual menu links and names). I need to display the menu title and then the sub menu title from table 1 and then display the submenu contents or links from table 2 and then display the next set of links under the correct submenu Example output would look like this: Say person clicks on Admin menu which is already displayed then the networking submenu heading will display along with the submenu links: Example: Admin(main menu title from db table 1) Networking(submenu title , from db table 1 ping(Link to ping from db table 2) traceroute (Link to ping from db table 2) nsloopup etc I don't know how to go about outputing the links under the correct submenu. The main menu is no problem. I am thinking I would need a loop within a loop. The query I use: $query = "SELECT * FROM menutable, elementstable WHERE menutable.menutable_id = elementstable.menuid AND menutable.mainmenu = 'Admin' "; $result = mysql_db_query("menus", $query); This loop simply assigns variables and prints out all output under the main menu called Admin. The problem is how do I display while ($r = mysql_fetch_array($result)) { // start menu table (table holds main menu/sub menu headings $menutable_id = $r["menutable_id"]; $menunumber = $r["menunumber"]; $mainmenu = $r["mainmenu"]; $submenu = $r["submenu"]; // start elements table (table that holds the links and names of each link) // element_id references menu table $element_id = $r["element_id"]; $element = $r["element"]; $url = $r["url"]; $menuid = $r["menuid"]; // next display data this is wrong cause it displays 1 submenu and 1 link looping ?> "> Notes: Loop de loop: // outer loop display submenus (when submenu changes display next set of elements or links from inner loop) if submenu changes then display next set of menu links for that submenu // inner loop display elements or links for that submenu until sub menu changes MySQL and PHP4 latest using Linux OS -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Loop issue
I am trying to make a simple HTML menu system. I am having problems displaying menu links under the correct submenu from a loop. I want to be able to change web menus on the fly. I have a database with two tables. One table holds menu and sub menu headings and the other table holds the contents of each submenu (the actual menu links and names). I need to display the menu title and then the sub menu title from table 1 and then display the submenu contents or links from table 2 and then display the next set of links under the correct submenu Example output would look like this: Say person clicks on Admin menu which is already displayed then the networking submenu heading will display along with the submenu links: Example: Admin(main menu title from db table 1) Networking(submenu title , from db table 1 ping(Link to ping from db table 2) traceroute (Link to ping from db table 2) nsloopup etc I don't know how to go about outputing the links under the correct submenu. The main menu is no problem. I am thinking I would need a loop within a loop. The query I use: $query = "SELECT * FROM menutable, elementstable WHERE menutable.menutable_id = elementstable.menuid AND menutable.mainmenu = 'Admin' "; $result = mysql_db_query("menus", $query); This loop simply assigns variables and prints out all output under the main menu called Admin. The problem is how do I display while ($r = mysql_fetch_array($result)) { // start menu table (table holds main menu/sub menu headings $menutable_id = $r["menutable_id"]; $menunumber = $r["menunumber"]; $mainmenu = $r["mainmenu"]; $submenu = $r["submenu"]; // start elements table (table that holds the links and names of each link) // element_id references menu table $element_id = $r["element_id"]; $element = $r["element"]; $url = $r["url"]; $menuid = $r["menuid"]; // next display data this is wrong cause it displays 1 submenu and 1 link looping ?> "> Notes: // outer loop display submenus (when submenu changes display next set of elements or links from inner loop) if submenu changes then display next set of menu links for that submenu // inner loop display elements or links for that submenu until sub menu changes MySQL and PHP4 latest using Linux OS -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Auto submit form, How?
How do I auto load or auto submit a form on the same page? I don't want to have to press the submit button instead just click on a value in the drop down form and it loads (I am lazy). Using php4.something -- This email was sent using w3mail. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]