Jump to content

pulpfiction

Members
  • Posts

    1,210
  • Joined

  • Last visited

Posts posted by pulpfiction

  1. Javascript is a client side scripting language, so inorder to connect to database you will need a server scripting language [ASP, PHP....]. so one way to handle this is to get the data from DB and store it in javascript array and then populate dropdownlist using that array....

  2. As you have mentioned about database, you must be using some server scripting to create the checkboxes, in that assign "ID" [from database] to "value" attribute of checkbox. then you can use javascript to get that value. assuming ID as identity you can get any information from database....<input type="checkbox" value="ID from database"........ />Code to get checkbox value using javascript http://www.webdevelopersnotes.com/tips/htm...a_checkbox.php3

  3. <input type="text" name="Using" value="windows" projectId="-214748631" folderId="-2147483608">This will not work as "projectid" and folderid are not valid attributes.... one way to pass values from the page is by using hidden textbox.<input type="hidden" name="projectid" value="-214748631" id="projectid" /><input type="hidden" name="folderid" value="-2147483608" id="flderidid" />These dont show up in the page and can values can be passed to another using POST or GET method

  4. Yes, almost every function has seperate explanation page,If you are looking at aspnet guys posted link, [for example] find "LXXVII. Mail Functions" and click it. redirects to another page.in there, it contains function "mail()" which is clickable and that redirects to [ http://www.php.net/manual/en/function.mail.php ] detailed explanation page of mail() and scroll down the page for examples....Same thing for every function...

  5. If you click on the function name then it will redirect to specific page with details about that function and examples... if you cant find there just google for "php function name" you can find a lot of examples.

  6. If you read the server,mappath in w3schools, then there is an explanation about using a "/" and not using it in Server.MapPath("\andersmoen\db\anders.mdb") When I tested it in localhost, If you start with a "/" then path is c:\inetpub\wwwroot and concatenates the path we mention insideabove.Incase if your page is in folder in wwwroot and if given without "/" it gives path path including that folder i.e the path of the page.c:\inetpub\wwwroot\subfolder\If without "/" it returns a path relative to the directory of the .asp file being processedso make sure you print the path and see if its correct.

  7. Guess its the blank space in ' hello ', so it must be 'hello'Try this,$sqlstr = "SELECT Information FROM Person WHERE Name='" . $result . "'";

  8. Code looks correct..... just echo the sql query and see if its correct.$sqlstr = "SELECT Information FROM Person WHERE Name='" .$result1. "'";echo $sqlstr;

  9. If its giving any error, post it ORCheck if query is returning some value.... If you are using the below query, it must not contain unnecessary blank spaces, I put that in the previous post to show single and double quotes.....$sqlstr = "SELECT Information FROM Person WHERE Name='" . $result . "'";

  10. $result = $_POST['Some_Name_Here'];$sqlstr = "SELECT Information FROM Person WHERE Name=' " . $result . " ' ";$result1 = mysql_query($sqlstr);

×
×
  • Create New...