Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Lv 2463 points

Hallucinogenizer

Favorite Answers27%
Answers86
  • Confused about electric field lines and electric flux (college physics). Help?

    We say that "electric flux" through an area is the number of electric field lines passing through it. Right?

    But there is no specific rule, that I know of, that tells you how many lines you are to draw. I mean, for a charge of 10 microCoulomb, I could either draw 4 lines around it, or 400 lines around the charge. And the 400 lines would all be correct too, because if you place a test charge at those 400 positions (which is how you find electric field lines), then it WILL experience a force, wouldn t it?

    So how can we use number of electric field lines as a criterion for measuring electric flux, when number of lines seem to be arbitrary?

    -RH

    Physics5 years ago
  • Update page data without refreshing using jquery and ajax?

    Alright this question has been answered at many questions and communities and blogs... But all they do is paste 3 lines of jquery load() code and with the link to a mysterious php file in it. Now my question is that what on earth is in that php file? I want to make a simple chat ... so only the data that is not already on the page shud be updated not that the conversation from the beginning of time starts to get updated. So either explain it thoroughly with the php code, or give the link of a more elaborate tutorial. thanks...

    1 AnswerProgramming & Design7 years ago
  • Recognizing and remembering devices?

    You see Facebook remembers your device when you log in. If some unknown device logs in to your account, it warns you. So How does facebook recognize a device? I mean it can't be a cookie...

    Is there a javascript method for it? IF yes. what is it?

    -RH

    2 AnswersProgramming & Design7 years ago
  • Attachment image

    What is wrong with this PHP Code?

    I did as shown in the image.

    The cookie exists. I checked in my browser and it is also shown here:

    http://tinypic.com/r/11mcoy1/8

    .

    Still the code within the if statement is never executed. The else {} code gets executed even when the cookie exists. I checked the value of $index, it was the same as the value of the present cookie. Everything fits but the code doesn't work. Why?

    1 AnswerProgramming & Design7 years ago
  • What is -> in php?

    You read the title...

    -RH

    1 AnswerProgramming & Design7 years ago
  • How to veifry html form data and check if it is incomplete?

    I have a form with html text fiekdband radio buttons. Form data is sent to another php page using post mehod...

    If i do this: on the php page:

    If ($_POST[‘radio’]!=null) {add data to sql database code}

    It first adds the data by running the sql query and after incomplete data is stored in database, it gives error that

    Undefined radii on line____ in____.php... How do i first verify form data to be complete and then move to database?

    -RH

    4 AnswersProgramming & Design7 years ago
  • PHP - How do I chop() this string?

    I used $_SERVER['PHP_SELF'] to find the address of my current page.

    it gave

    $stringone = "/9/pages/Home.php";

    ...

    I want to get just the "Home" part.

    I did:

    $stringtwo = chop($stringone,".php");

    this removed the dot php successfully.

    But then I did this:

    $truestring = chop($stringtwo,"/9/pages/");

    But this time it didn't work. it gave me just

    /9/pages/Hom as the result... How can I chop this string?

    -RH

    1 AnswerProgramming & Design7 years ago
  • Designing Web-Layout in Photoshop...?

    Alright, I looked it up on GOogle. Tuts etc. etc. It seems that when you design the layout in Ps, what it gives u is just an image of what you're making right? So How do you practically put that image into code?

    -RH

    3 AnswersProgramming & Design7 years ago
  • Facebook page problem?

    I have 2 pages...

    let's say page A and page B both created from the same fb profile.

    When I share something (by clicking the share button below someone's post) to page A, it automatically gets posted on the page as Admin's post. But when I do so with page B, that post gets shared on the page in the column where a common user posts stuff for the page... Like it doesn't recognize me as the admin... Both pages, same profile, what do I do?

    -RH

    1 AnswerFacebook7 years ago
  • How do I do this? Help?

    I made this form.

    You submit a long essay-type of thing in a textarea. This text is stored in a database.

    And it is viewed on another page using the same database.

    using:

    echo "<div class='pages'><h2>" . $row['Title'] . ":</h2><span style='float:right;color:grey;font-size:16px;text-decoration:underline;'>" . $row['Menu'] . "</span><br><span>" . $row['Content'] . "</span></div>";

    Here the Title is the title of essay and Menu is the menu in which the essay was put. And Content is the text in the textarea.

    The problem is.

    If you type some lines in a text area. And there are different paragraphs, when I echo them into simply a <div><span>,,, the spaces between paragraphs are removed. How do I maintain them?

    -RH

    2 AnswersProgramming & Design7 years ago
  • How can this most simple of PHP Scripts be hacked?

    What if I have a form and I have only one valid username and password.

    say a person fills the form

    <form action="verify.php" method="post">

    ...

    in verify.php

    if ($_POST['username']=="valid_username") {

    if ($_POST['password']=="valid_password") {

    setCookie("user","ok");

    }

    else {

    echo "Wrong username/password";

    }

    }

    else {

    echo "Wrong username/password";

    }

    ...

    As the php code on a page cannot be viewed from a browser, can it be hacked? And if yes

    1- How can it be hacked?

    2- How can I improve it?

    -RH

    2 AnswersProgramming & Design7 years ago
  • Reload MySQL Data using AJAX?

    How do I do that?

    Say, I have displayed an SQL Table. Now

    Say, I have a form. I submitted the form data using AJAX. That data was inserted into the same SQL Table that is visible on my form page. Now I want the data to refresh after regular intervals. SO the new table entries may also be visible there.

    -RH

    1 AnswerProgramming & Design7 years ago
  • Javascript slider code? help?

    Where can I get an easy to apply, good looking javascript slider? or perhaps give me an idea of how to use it (without jquery, pure javascript).

    -RH

    1 AnswerProgramming & Design7 years ago
  • 000webhost subdomain suspended for no reason?

    I started to work on making a login and sign up page for my website... Two days I worked. Third day:

    Domain Suspended (Terms of service violation: Phishing, scam, warez, hacking)...

    All my directory files lost. What the hell is this? Can I retrieve the data? If not, what precautions can I take in the future?

    I'd prefer if I get the data back :'(

    -RH

    2 AnswersProgramming & Design7 years ago
  • Can't seem to find the syntax error in that php/sql code?

    Spent almost an hour but can't seem to find the problem there.

    http://tinypic.com/r/k9gok3/8

    The error is:

    http://tinypic.com/r/34ovqmb/8

    means the file uploaded successfully. I see it in the directory upload/ .. But it fails to create an entry in SQL Table named 'Comments'.

    If you want to know what I am doing that for.

    hallucinogenizer.comoj.com

    -RH

    2 AnswersProgramming & Design7 years ago