- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 5
- Posts with Upvotes
- 4
- Upvoting Members
- 4
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
56 Posted Topics
Re: First off check your PHP.INI file. Normally found in the folder PHP which is normally created when you download PHP. In here will be this line extension=php_mysqli.dll Make sure that there is not a ; before this line. you should have on your computer a folder named PHP. In this … | |
Re: simple answer is that you do not call your jquery code from anywhere. This just might be you haven't included all your code. More complicated answer to follow in 5 minutes | |
Re: Just a quick thought have you checked what is stored in the database for the filename? | |
Re: $("img").attr("id","xyz"); | |
Re: line 186 name="remaining-package" change to name="remaining_package" | |
Re: Try changing line 5 var R8seats = $(".8r").clone(); to var R8seats = $(".8r:first").clone(); Otherwise you are cloning all images with a class of 8r. | |
Re: as you are doing Jquery you are almost there. Change <input type="submit" text="Submit" /> back to <button id="butpress">Submit</button> Then in your JQuery change $("button").click(function() to $('#butpress').click(function() | |
Re: Personally I would add a little more of your code on here to give a better picture of what you already have and what you are trying to achieve. Therefore I will take a little guess as to what you are doing. lastmonth.php <?php require "connect.php"; $userid = $_GET['userid']; <-- … | |
Re: You have stored all the images in an array so all you need to do is to run the same 2 lines of code and it will pick another random image.it's line 28 and 29. | |
Re: you have missed out the while loop. $comp = mysql_query("SELECT comp or * FROM ping"); <-- I think you want row comp or both fields from table ping while ($row = mysql_fetch_assoc($comp)) { $str = exec("ping -n 1 -w 1 $row['comp']", $input, $result); if ($result == 0) { mysql_query(" INSERT … | |
Re: easiest way is to stop using the submit button that resubmits your form. use a `<button>` and call a phpsave program using JQuery. If you dont want to do it that way then when you submit your form your javascript has to keep track of what your current tab is … | |
Re: here is a webpage which might help you do something. [Click Here](https://github.com/GoogleChrome/webplatform-samples/blob/master/webspeechdemo/webspeechdemo.html) Here you will see that if you have Chrome you can implement this API. As it writes to a html tag you can use what is in there in PHP to do something but I am not sure … | |
Re: this will get you started and you can finish it off <!Doctype html> <html> <head> <h1> H A N G M A N </h1> <img src="HangmanStep1.gif" id="hangman"> </img> <script> var secretword=["horse","frogs","turtle","snail","chicken","turkey","bird","dorphin","lion","bear","cat","dog","spider"]; var whichword = secretword[Math.floor((Math.random()*13)+1)]; var click=0; var WrongGuess=""; var RightGuess=""; var numwrong=0; var numright=0; var guess=""; var n=0; function … | |
Re: try something like this $('#se' + counter).keydown(function(event) { $.each(json.users, function(i, e) { if (e.name.search(new RegExp(/$('#se' + counter).val()/i)) != -1){ $('#price' + counter).val(e.price); $('#author' + counter).val(e.author); } }); }); I would rename your IDs here FROM id: 'textbox' + counter TO id: 'price' + counter | |
Re: JQUERY $.getJSON('chatmessage.php', function(data) { var elm = '<p>From' + data.from + 'Message ' + data.message + ' </p>'; $('#chatmessagebox').append(elm); } and chatmessage.php connect to the database and get the message store message in $content and echo it out. $content = array( 'from'=>'someone', 'message'=>'this is a message' ); echo json_encode($content); this … | |
Re: I would use a small bit of jQuery $( ".classnameofinputs" ).change(function() { $.post('ajax/realtimesave.php', {"field":$(this).id(), "newvalue":$(this).val()}, function(data){ if (data=='error') { alert('there is a problem'); }); }); then realtimesave.php use the field name and newvalue to update only that part of the database. Realtimesave.php will only be called if a value of … | |
Re: 6. this statement will match the letter 'o' in the previous statement and return the length of the resulting array which is 2. 7. function tagcount(element) { var searcharea = document.getElementById(element); var count = searcharea.getElementByTagName('a').length; } | |
Re: look at www.pusher.com This allows you to use websockets and a Flashbridge if needed and a basic 10 user testing sort of package is free. you can easily store all messages in a table and with a little bit of a fiddle you can be up and running in about … | |
Re: try changing $alphasearch.="<span><a href='javascript:ajaxFunction();' name='alphasearch' value='$char'>$char</a></span>\n"; to $alphasearch.="<span><a href='javascript:ajaxFunction();' name='alphasearch' id='alphasearch' value='$char'>$char</a></span>\n"; and var parameters="char=$name" to var parameters= $('#alphasearch'); | |
Re: ok I hope you dont mind but I would split out your Javascript into a separate file. Therefore I would do it this way. First off your HTML <div> <button type="button" name="getdata" id="getdata">Get Data</button> </div> <div id="result_table"> <table id="spells" border="1"> <thead> <tr> <th>ID</th> <th>Spells</th> </tr> </thead> <tbody> </tbody> </table> </div> … | |
Re: what browser are you using? I think that the clipboardData object only works in IE. | |
Re: as I am not sure what you are trying to do here are a couple of suggestions. Either use sockets OR check out pusher.com. This is what I use for alot of things at the moment as it save writing a socket program and because you are using their API … | |
Re: change line 2 to $page. Change the news.txt to hello world! with nothing else around it. | |
Re: what are the problems you are having? is it 1, the date does not write at all to the database. or 2, it writes junk to the database? | |
Re: ok my maths have not been tested in 20 years but I am sure that what you are producing here should follow this p = m/n Pi = (approx) p * 4 <- this is the line you are missing. you only ouput the ratio. | |
At the moment I have a Div in a Div within a container div. now the effect I am looking for is shown here.  What I have at the moment is shown here.  Which bit of the CSS did I get wrong. I will put code … | |
Hi, I have looked at this code and I cannot see the problem. If anyone can spot the error then I will be very grateful. Basically I am returning an array from a .PHP in json format the code is here. echo json_encode($anarray); the array is made up like "vegetable" … | |
Re: as you seem to be using PHP here is a function that is built into PHP array fgetcsv ( resource $handle [, int $length [, string $delimiter [, string $enclosure [, string $escape ]]]] ) [code] <?php $row = 1; $handle = fopen("test.csv", "r"); while (($data = fgetcsv($handle, 1000, ",")) … | |
Re: try taking out the full stop in this message 'Could not connect to MSSQL database.' then see if the same error comes up | |
Re: Hi again, Ok the last time you got the idea so quick that this time you will kick yourself for not thinking of it. so follow these steps. 1. add an extra parameter to the Javascript in country_dropdown.php call it something like dropdown. Change the call to country.php within the … | |
Re: ok this is really simple just follow these rules. 1. you need to set up the selects. 2. you need a trigger. in this case you would use onchange() as this detects when the value of a dropdown has changed. 3. you need to call the javascript/AJAX to run the … | |
Re: you do this by adding an image tag [code] <img src="whatever.jpg or png etc" id="whatever" onclick="dosomething();"/> [/code] This is the easiest way of doing it and I use it in various forms. to pass the array information you can echo it within the () of the function that is called … | |
| |
Re: I would check that the 'type' being returned is an int and not a char. If it is a char change == to === | |
Re: [icode]window.open('http://wwww.christiancouriernewspaper.com/upload.html',Upload','width=400,height=400')[/icode] change to [icode]window.open('http://www.christiancouriernewspaper.com/upload.html','Upload','width=400,height=400')[/icode] | |
Re: This is simple. in your HTML do this [code] <div id="form1"> <input id="participants">Participants <input id="payment">Payment </div> <div id="form2"> </div> <script language="javascript" type="text/javascript"> function getHTTPObject(){ if (window.ActiveXObject) return new ActiveXObject("Microsoft.XMLHTTP"); else if (window.XMLHttpRequest) return new XMLHttpRequest(); else { alert("Your browser does not support AJAX."); return null; } } function doForm2() { … | |
Re: post your code here so that we can have a look at what you are trying to do and we should be able to sort it out quite quickly for you. If you have sorted it out already then great as sometimes it is just a case of trial and … | |
Re: [code] if ($path != '.' || $path != '..' || basename($path) != basename($file_path)) change to if ($path != '.' && $path != '..' && basename($path) != basename($file_path)) [/code] | |
Re: this one works and is being used within the office. [code] $from = "From: <martin.thorburn@tiscali.co.uk>"; $fileatt = "PDF/"; $fileatt .= $filename; $fileatttype = "application/pdf"; $fileattname .= $filename; $headers = "From: $from"; $messageletter = "what ever text you would like in here. It can be huge and use \n to start … | |
Re: Bonjour, here is a PHP script that I use that allows you to attach a file to the email. Therefore is you develop an appointment card or vaccination card then this is perfect for it. [code] $to = "Patient name."<".$emailaddress.">"; $subject = "vaccinations"; $from = "The Doctor <bookings@thedoctors.com>"; $fileatt = … | |
Re: ok here is a work around as I think that I have the idea of what you are trying to achieve though I cannot be sure. 1st off it seems that you need to know the total number of products that you have on the screen as then in the … | |
Re: I use ZEND framework to create the PDF. It is so simple and you can create your own template. Just look up Zend PDF on the net there is loads of help. This will then either write it to a directory if you want or you can render it onto … | |
Re: do you mean you have to pass more information in the function dyl_get_subcategories() ? if so then all you have to do is change the onchange="dyl_get_subcategories();" to onchange="dyl_get_subcategories('<php $var ?>');" Change the Javascript function to function dyl_get_subcategories(myvar) Then you can access it within the function by calling myvar. | |
| |
Re: Assuming that the save of the path to the database has worked then the problem would lie in the display of the path value. If you post the code of the edit form then I or someone else will be able to help spot the error. Thanks Noel. | |
Re: From a quick look I would suggest that your text-indent could be the problem. If you can pass on the code for this then I should be able to tell you what the problem is. Thanks Noel. | |
Re: post your code and then people will sort it out for you quickly. Normall you would have a value element in the 1st dropdown menu which you would pass to a query to fill the second dropdown. Depending on how you are setting up the 1st dropdown will depend on … | |
Re: Yes you can do this with AJAX and Javascript. All you would do is include an event with the HTML. Here is a quick example. HTML [code] <select name="form_option" id="form_option" onchange="check('form_value');"> <div id="thischanges"> </div> [/code] Javascript funtion [code] <script language="javascript" type="text/javascript"> function getHTTPObject(){ if (window.ActiveXObject) return new ActiveXObject("Microsoft.XMLHTTP"); else if … | |
Re: [code] <html> <head> <title>Swapping the boxes!</title> </head> <body> <center> <h2> <font color= "purple" face= "comic sans MS"> Swap the text entered from one to the other! </font> </h2> <br/> <br/> Enter text in each box: <br/> <input type="text" id="txt1" size= "15" value= "" />     <input type="text" id="txt2" size= "15" … | |
Re: can you post or send me the code to html2fpdf.php it might be you are miss calling the object class or there is a small error in it. |
The End.