-
Posts
840 -
Joined
-
Last visited
-
Days Won
1
Everything posted by gristoi
-
example: <div class="wibble"></div> <div class="wibble"></div> <div class="wibble"></div> <div class="wibble"></div> $(".wibble").each(function(){ $(this).toggle(); });
-
have a look at jquery's .each() function. this will do what you need
-
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.
-
PHP, Mysql and html (dreamweaver) linking help!!!
gristoi replied to am09arz's topic in PHP Coding Help
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 -
Php Calculating the week number for a given date
gristoi replied to kamal213's topic in PHP Coding Help
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 -
Php Calculating the week number for a given date
gristoi replied to kamal213's topic in PHP Coding Help
<?php $a = '23/10/2011'; $dateStamp = strtotime($a); $week = date('W', $dateStamp); ?> -
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]
-
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
-
ManiacDan is right, the default doc isnt set, but from the screenshot you php isnt being interpreted
-
im going to hazard a guess that you dont have php installed on your server
-
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)
-
My internet is constantly at 15kb/s. How do i speed it up?
gristoi replied to webdesignmad's topic in Miscellaneous
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 -
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");
-
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
-
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>
-
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';
-
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.
-
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?
-
make your code cross server compatible, try using DIRECTORY_SEPARATOR or even just a forward slash '/'. this works on both linux and windows machines
-
Have a look at serialize
-
JQuery post to my PHP file to read its variable
gristoi replied to vonKristoff's topic in Other Libraries
<?php $query = "INSERT INTO videos (`src`) VALUES ('$id')"; -
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;
-
yes, http://www.gsmarena.com/lg_gw620-2936.php was the first link on google....amazing
-
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
-
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