Jump to content

YigalB

Members
  • Posts

    56
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

YigalB's Achievements

Member

Member (2/5)

0

Reputation

  1. I wrote a short quiz in which PHP code creates a mathematical question based on random parameters. The intention was to let JS to check the user's answers (via form) and compare it to the required results. How can I pass the required data from PHP to the JS? After all, PHP variables are not recognized by the client side when executing the JS.
  2. Thanks! Looks like a nice start. I will try using it as a base example.
  3. I think that Fusion can display graphs that are only on the positive edges of the X & Y. I didn't find a way to display the negative sides as well, and also to display the scaling.
  4. Thanks, I understand. I was sure there is a "ready to use" graph drawing function, but I guess I was wrong. So if i need to step back and learn, what would you recommend a newbie like me to do in order to reach the graph drawing? BTW - the target is educational.
  5. Thanks. I would appreciate a simple example I can use as a jump start.
  6. I would like to show a function graph embedded with other content on the web page. At first, it should be a linear line, such as y=aX+b. later I would like to extend it to parabola, sinus etc. Can someone recommend how to do it (hopefully with example), with ability to set start point, end point, the resolution of the function (every integer, every tenth of integer etc), and also how to draw the X & Y axis.
  7. Thanks! I am using XAMPP. I followed your guide lines and got: Then I re-entered the original password - and it worked! Thanks ! I am not sure what happen, because I marked "no password" and "go" at phpMyAdmin, but now it seems the need for password is still there.
  8. I am learning mysql using an example. According to the guidelines, I created a table and I was trying to access it with the following code: <?php define("MYSQLUSER", "php24sql"); define("MYSQLPASS", ""); define("HOSTNAME", "localhost"); define("MYSQLDB", "smithside"); $connection = @new mysqli(HOSTNAME, MYSQLUSER, MYSQLPASS, MYSQLDB); if ($connection->connect_error) { die('Connect Error: ' . $connection->connect_error); } else { echo 'Successful connection to MySQL <br />'; if ($result = $connection->query("SHOW TABLES")) { $count =$result->num_rows; echo "Tables: ($count)<br />"; while ($row = $result->fetch_array()) { echo $row[0]. '<br />'; } } } I got the following error: At first, I was sure it's the password, so I changed to "no password" using phpMyAdmin, but I still get the above error. Here is what I see at phMyAdmin:
  9. I am trying to ramp up Geany on Win7. Geany & XAMPP already installed. I can write code and compile it, but when I try to execute I get: The executable command in build->set build commands is: Any idea?
  10. Running this JS code: <script type="text/javascript" language="javascript"> document.write("Using: " + navigator.appName + "</p>"); document.write("Version: " + navigator.appVersion + "</p>"); The result was: Using: Netscape Version: 5.0 (X11; Linux i686) AppleWebKit/535.2 (KHTML, like Gecko) Ubuntu/11.10 Chromium/15.0.874.106 Chrome/15.0.874.106 Safari/535.2 Why did I get Netscape when I am actually using Chrom? And the version response includes Apple?
  11. problem solved. Wrong quotation marks were used.
  12. While trying to run very simple code of javascript from within PHP, it runs when the code is: <h2>My header</h2> <script language = 'javascript'>; alert('here I am'); </script> <?php echo "starting Now <BR>"; But when the code is: <h2>My header</h2> <script language = 'javascript'>; document.write(“xxxx”); alert('here I am'); </script> <?php echo "starting Now <BR>"; It fails to run the js code, and also the alert is not executed. The only thing I added was document.write(“xxxx”); What did I miss?
  13. Good idea, but why to do in on word basis? why not sentence?
  14. Thanks. I like the idea, and I will try it. What about the text itself? For example, on a certain page I will need to display a content/ For example, write a "Hello" in case of L2R, or the same word in a different language R2L. Should I have many "if" statements in the code, so the server will send the right word according to the $direction variable? O
×
×
  • 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.