Jump to content

detestableguy

Members
  • Posts

    13
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

detestableguy's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. My question is, what do I need to learn about wordpress to call myself a wordpress expert?
  2. I wrote the following for handling DB errors...the problem is, with incorrect DB connection details, other than getting "Error: Could not connect!", I am also getting mysql_connect() error "Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in D:\xampplite\htdocs\web\testpages\oop\test.php on line 6 Error: Could not connect! " Can you anybody please tell me why am I getting mysql_connect() error?...to best of my knowledge, I should be getting only first one if I use incorrect infornation <?php class ServerException extends Exception{} try { if(!mysql_connect("localhost","root","")) { throw new ServerException("Could not connect!"); } } catch (ServerException $e) { echo "Error: ".$e->getMessage(); } ?>
  3. I have marked the part in bold.....please some body help me!!! <script type="text/javascript"> function get() { $.post( 'data.php', { value: form1.name.value }, function (out) { $('#age').html(out).show("slow"); }); }; <script> <body> <form name="form1"> <p> <select name="select" onChange="sel();"> <option value="1">1</option> <option value="2">2</option> </select> </p> </body>
  4. I am having problem running the --show("slow")-- part of the code...any ideas why this is not working? <script type="text/javascript"> function get() { $.post( 'data.php', { value: form1.name.value }, function (out) { $('#age').html(out).show("slow"); }); }; <script> <body> <form name="form1"> <p> <select name="select" onChange="sel();"> <option value="1">1</option> <option value="2">2</option> </select> </p> </body> I have tried searching the solution, but can't find any..
  5. Problems Solved. Thanks guys. But I wasn't getting this error in previous version?
  6. I have a database in which i store articles that contain all type of special characters including slashes, single quotes, double quote etc. Previously it was working fine, but now after the updating the xampp, things are not going as usual. I insert are articles using following code $query = "INSERT INTO `articles` (`source`, `heading`, `description`, `catagory`, `detail`, `date`, `timestamp`) values ('$source', '$heading', '$desc', '$catagory', '$detail', '$date', '$timestamp')"; Error I am getting is Error Running query 1You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's economy and emphasized that international community should provide its complet' at line 2 Can anybody tell me whats wrong with my script?
  7. I found this video on Youtube, a tutorial of Jquery for absolute beginners. This seems to work in that video, but its not working on my system. Can anybody tell me whats wrong I am doing? Here is copy of that script <html> <head> <title>Untitled Document </title> <script type="text/javascript" src="jquery-1.4.2.js" ></script> <script type="text/javascript"> $(document).ready(function() { $("p#paragraph1").hide(); $("a#paragraphAnchor").click(funtion() { $("p#paragraph1").show(); }); }); </script> </head> <body> <a href="#" id="paragraphAnchor" >Click to Read Paragraph</a> <p id="paragraph1" > Paragraph 1 </p> <p id="paragraph2" > Paragraph 2 </p> </body> </html>
  8. thanks guys, you have resolved my problem
  9. I need a Like/ThumbsUp script for my website. Can anybody provide me? I can't find any free script on internet. The one I found cannot be easily customized. I posted question regarding that script, but no body here resolved my problem. I hope some "Price Charming" will come up and won't let me down this time
  10. The problem is I am calling multiple javascript files in a .php page. Thats why the script is not working. If I do not import other javascripts, then it works fine. Please help me, tell me how can I call that particular function to run "rating" script? Attached file is that javascript file which is called by the following html code <a href='javascript:;' class='vote_up' id='27'>Vote Up!</a> [attachment deleted by admin]
  11. I have got a code about rating. My problem is that a link calls javascript in a following way <a href='javascript:;' class='vote_up' id='27'>Vote Up!</a> where the javascript begins in following way $(function(){ $("a.vote_up").click(function(){ //get the id the_id = $(this).attr('id'); ............................ ........... goes on........... } My problem is I want to convert this link in something like "<a href="javascript(rating (id))" /> How can I do this? And please also tell me what does it mean when a function starts with "$" sign?
×
×
  • 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.