Jump to content

suma237

Members
  • Posts

    282
  • Joined

  • Last visited

    Never

Everything posted by suma237

  1. we have to open a recording panel.We already have a DLL written in VC++.Just let me know how I can call this dll on click of a button.
  2. how to call a dll file by clicking an icon/image in a webpage using php
  3. echo this statment $sql1="select name from login where username='".$_SESSION['username']."' "; check whether the select statment is working or not.
  4. try this <?php ob_start(); session_start(); $adminame = 'admin@technologies.com'; $adminpass= 'mypassword'; $link=mysql_connect("localhost","root",""); if(!$link) die("can not connect to mysql"); mysql_select_db("timesheet",$link); if($_POST["submit"]!="") { $a=$_POST['username']; $p=$_POST['password']; if($adminame==$a && $adminpass==$p) { header("location:admin.php"); } }//end of submit if($_POST["submit"]!="") { $username1=$HTTP_POST_VARS['username']; $password1=$HTTP_POST_VARS['password']; $sql="select username,password from login where username='".$_POST['username']."' and password='".$_POST['password']."' "; $result=mysql_query($sql,$link); $row = mysql_fetch_array( $result ); $username = $row['username']; $password = $row['password']; header("location:bookentry.php"); //$tot=mysql_num_rows($result); if($username!=$username1 && $password!=$password1) { $msg="invalid username or password "; //z//include "notmember.php"; header("Location:memberlogin.php"); } if($username==$username1 && $password==$password1) { $_SESSION['username'] = mysql_result($result, 0, 'username'); echo $_SESSION['username']; //include "untitled-4.php"; header("location:bookentry.php"); } }//end of http submit ?>
  5. Try this <input type='checkbox' name="check1[]" value=<?=$row1['V_ProspectID'];?>></td> <!---CODE FOR STORING VALUE INTO DATABASE----> if (is_array($_POST["check1"])) { while (list($key,$value) = each($_POST["check1"])) { //echo "$key - $value<BR>"; $sql_update1="update ..... where V_ProspectID='$value'"; mysql_query($sql_update1)or die("Could not update table"); } }
  6. Try this <html> <head> <title>Multimedia Library - New Item Entry</title> </head> <body> <h1>Multimedia Library - New Item Entry</h1> <form action="insert_item.php" method="post"> <? $itemtype = $HTTP_POST_VARS['itemtype']; switch($itemtype): case '1': ?> <table boder="0"> <tr> <td>UPC</td> <td><input type="text" name="UPC" maxlength="13" size="13"> <br /></td> </tr> <tr> <td>Title</td> <td><input type="text" name="Title" maxlength="100" size="25"><br /></td> </tr> <tr> <td>Author</td> <td><input type="text" name="MajorAttribute" maxlength="100" size="25"><br /></td> </tr> <tr> <td>Publisher</td> <td><input type="text" name="SecondaryAttribute" maxlength="100" size="25"><br /></td> </tr> <tr> <td colspan="2"><input type="submit" value="Register"></td> </tr> </table> </form> <? break; case '2': ?> <table boder="0"> <tr> <td>UPC</td> <td><input type="text" name="UPC" maxlength="13" size="13"> <br /></td> </tr> <tr> <td>Title</td> <td><input type="text" name="Title" maxlength="100" size="25"><br /></td> </tr> <tr> <td>Main Star</td> <td><input type="text" name="MajorAttribute" maxlength="100" size="25"><br /></td> </tr> <tr> <td>Director</td> <td><input type="text" name="SecondaryAttribute" maxlength="100" size="25"><br /></td> </tr> <tr> <td colspan="2"><input type="submit" value="Register"></td> </tr> </table> </form> <? break; case '3': ?> <table boder="0"> <tr> <td>UPC</td> <td><input type="text" name="UPC" maxlength="13" size="13"> <br /></td> </tr> <tr> <td>Title</td> <td><input type="text" name="Title" maxlength="100" size="25"><br /></td> </tr> <tr> <td>Band</td> <td><input type="text" name="MajorAttribute" maxlength="100" size="25"><br /></td> </tr> <tr> <td>Label</td> <td><input type="text" name="SecondaryAttribute" maxlength="100" size="25"><br /></td> </tr> <tr> <td colspan="2"><input type="submit" value="Register"></td> </tr> </table> </form> <? break; endswitch; //end of switch ?> </body> </html>
  7. you have any idea to run an exe file on the click of an ? Thanks
  8. i have soundrec.exe with me .how can i embed the exec in a web page.?
  9. The format of the time is (10:42:00 +00:25:15) Thanks
  10. is it possible with PHP ?
  11. I want to click on an image (.jpg) that launches a sound recorder (sndrec32.exe) .
  12. hi friends, Looking for some help to configure a voice recorder in a web site using PHP Thanks
  13. $s=$_SESSION["usename"]; $sql="INSERT INTO person (Username) VALUES ('$s');
  14. Can you please check this code <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <SCRIPT TYPE="text/javascript"> <!-- function soundplay() { alert("fff"); if (navigator.appName == "Netscape") { document.MySound.play(false) return false; } else return true; } //--> </SCRIPT> </head> <body> <? $music=$_GET['music']; $dir ="song"; $dh = opendir($dir); while ( !(($file = readdir($dh)) === false) ) { if ($file == "." || $file == "..") continue; if (eregi(".wav",$file)) { echo' <a href="?music=true&file='. $dir . '/' . $file . '" onClick="return soundplay()">'.$file.'</A>'; } } if($music == 'true') { $file = $_GET['file']; echo '<EMBED src="'. $dir . '/' . $file . '" NAME="MySound" HEIGHT=144 WIDTH=166 MASTERSOUND HIDDEN >'; } ?> </body> </html> Inside the loop it is not working.Why?
  15. On click of a link i need to play the desired file
  16. on selection of close option,can i open a new window ? <select> <option value="1" >Open</option> <option value="0" onClick="JavaScript:window.open('ajax2.php','view','height=350, width=550,scrollbars=1')">close</option> </select> Thanks in advance..Thanks
  17. you just start doing coding .If you got stuck any where in the coding part then we will look into it.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.