Jump to content

gristoi

Members
  • Posts

    840
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by gristoi

  1. example: <div class="wibble"></div> <div class="wibble"></div> <div class="wibble"></div> <div class="wibble"></div> $(".wibble").each(function(){ $(this).toggle(); });
  2. have a look at jquery's .each() function. this will do what you need
  3. without seeing any code it is going to be extremely hard to tell you what the problem is. but the fact that you are generating this via a loop i would say that you are assigning the click event to the same id every time.
  4. When you are using dreamweaver have you set up a testing server. if not goto sites > manage sites in the menu and add a testing server. point it to your localhost. i hope that is what you are asking
  5. thanks for the correction neil. Schoolboy error on my behalf. kamal213, if you need to convert uk into a week number then one option is: <?php list($day,$month,$year) = explode('/','15/11/2011'); $weekNumber = date('W',mktime(0,0,0,$month,$day,$year)); echo $weekNumber; ?> cheers
  6. <?php $a = '23/10/2011'; $dateStamp = strtotime($a); $week = date('W', $dateStamp); ?>
  7. ManiacDan, have you actually looked at the images that he has posted ? . now tell me if i'm wrong, but does this look like a correctly compiled piece of php to you? (see attachment) [attachment deleted by admin]
  8. it dosent matter that you have put your file in the var/www file. if you do not have php installed on the server then you have nothing to compile the php. your image shows that you are seeing a raw text page with php tags in it. if it was compiled properly you would not see: <?php echo 'test'; ?> you would see: test
  9. ManiacDan is right, the default doc isnt set, but from the screenshot you php isnt being interpreted
  10. im going to hazard a guess that you dont have php installed on your server
  11. I havent had a chance to look through your code lilne by line, but one thing that stands out as a possibility is your comparison operator: <?php ($image->validate_code($_POST['validate']) ? "true" : "false") == "false") try: <?php ($image->validate_code($_POST['validate']) ? true : false) === false)
  12. Your internet speed is completely dependant on a multitude of different factors: How far you are from your phone exchange The physical quality of your phone line the SNR ( signal to noise ratio ) and attenuation on your line. The amount of incoming and outgoing connection on your pc ( the more crap / spyware / torrents / active p2p on your pc = the more badwidth is taken up The quality of your router Please remeber, even though these will more than likely apply to you, I am basing these on a U.K ADSL connection. And as ManiacDan stated you should call your provider, but using the quoted speed complaint will get you nowhere, as most ISP's state the speed quoted is UPTO and not a given. Dependant on which country u are in there are tools that can tell you all you need to know about your local phone exchange
  13. two choices: <?php $resizeObj = new resize('C:\xampp\htdocs\images_test\'. $file .''); or use double quotes: <?php $resizeObj = new resize("C:\xampp\htdocs\images_test\$file");
  14. your problem was with: mysql_connection("localhost","root","admin") or die(mysql_error()); should have been mysql_connect("localhost","root","admin") or die(mysql_error()); if you werent getting any warnings or errors showing then you will need to turn on your error checking. to do this you can put this at the very top of your page: <?php ini_set("display_errors","1"); ERROR_REPORTING(E_ALL); this will help you a lot, by showing you all of the errors and warnings that your code makes. good luck
  15. ok, couple of things, why do you need a database connection for this? and is this posting back to index.php, or is index.php another file?. try this: <html> <body> <form action="index.php" method="POST" enctype="multipart/form-data"> Image: <input type="file" name="myImage"> <input type="submit" value="Upload"> </form> <?php if($_FILES){ echo "Name: " . $_FILES["myImage"]["name"] . "<br />"; echo "Size: " . ( $_FILES["myImage"]["size"] /1024) . "Kb<br />"; echo "Type: " . $_FILES["myImage"]["type"] . " <br />"; echo "temp Directory: " . $_FILES["myImage"]["tmp_name"]; } ?> </body> </html>
  16. READ THE MANUAL!!!! http://dev.mysql.com/doc/refman/5.0/en/update.html. syntax is <?php UPDATE tablename SET field1='value1', field2='value2', field3='value3' WHERE something = somevalue; //so for example UPDATE users SET username='$username', age='$age', description='$descr' WHERE user_id= '$id';
  17. Personally, I use mysql workbench. Its developed by the mysql team and has a very handy mysql server administrator section that monitors your mysql traffic in realtime.
  18. when you say complex and require huge file uploads, what exactly do you mean? and what language are you talking about? javascript / php/ sql ......? what exactly do the scripts do, and have you tried uploading the files using something other than dreamweaver?
  19. make your code cross server compatible, try using DIRECTORY_SEPARATOR or even just a forward slash '/'. this works on both linux and windows machines
  20. Have a look at serialize
  21. <?php $query = "INSERT INTO videos (`src`) VALUES ('$id')";
  22. Hope this points you in the right direction: <?php $query = "SELECT `ID`,`Product_Name`, `Product_Descriptions` FROM table_1 "; $result = mysql_query($query); $form = '<form action="...php" method="post" name="search_form" onsubmit="return Checkckeckboxes(this);">'; while($row = mysql_fetch_assoc($result)){ $form .='<input type="checkbox" name="'.$row['Product_Name'].'" value="'.$row['Product_Description'].'" id="'.$row['ID'].'"/> "'.$row['Product_Description'].'"<br/>'; } $form.='<input type="submit" value="search"/>'; $form.='</form>'; echo $form;
  23. yes, http://www.gsmarena.com/lg_gw620-2936.php was the first link on google....amazing
  24. echo out $mail_status to see if it is returning true or not. do you have a mail server set up to test this on? if you are just trying it from your pc as a localhost then it will always fail
  25. make sure you havent got another program that has hold of the apache process. ie. xammp. sounds like a software conflict. personally i switched to zend server community edition. never had a problem with 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.