- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 10
- Posts with Upvotes
- 9
- Upvoting Members
- 9
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
44 Posted Topics
Re: Instead of using: if(!$username) or if(!$_POST['submit']) use: if(empty($username)) and if(!isset($_POST['submit'])) You will have to change all of the if(!$password) to what i said above for it to all work properly. | |
Re: If I understand what this function does, correctly, then surely I could just do the follwing instead? This causes no errors. if(typeof someobject.someproperty !== "undefined") { // do something... } else { // do something else... } | |
Hi, The sqrt function does not accept integers of type `unsigned long long int`. Is there a pre-exisiting C++/C standard function that can compute square roots of integers of that size? Thanks in advance, Caelan. | |
Hi, I wrote this implementation of Sieve of Eratosthenes, is there any way I could eek some more performance out of it. As in opitmising data types, calculations etc. #include <iostream> // cout #include <math.h> // sqrt #include <time.h> // clock/CLOCKS_PER_SEC #include <stdlib.h> // malloc/free using namespace std; int main(int … | |
# EDIT # Fixed - skipped ever having to use an array. Although, I'd still like to know if I was right about the stack size, and what the best way might be to keep that many elements in an array. ## Prerequisites ## Operating System: OS X 10.10 Yosemite … | |
Re: OK, the way I would do this is: Pull the page source from that page using cURL, and parse it server side. Simply storing it in an array until the parsing is complete. One completed you would convert the array to JSON (with PHP's json_encode function), then store it in … | |
This is a function that generates a string of random characters to the length that you specify. | |
Re: It's not about how many friends you have. But I have ~140 if your wondering. | |
OK, I've taken advice from some members here, and members from another forum. And I've come up with this, thouht I'd just share it with you. | |
OK, I have an idea of what I might do: I'm planning on making a Event handling system, and this is how I will connect events to functions and be able to send any type of data. This is the basic idea: #include <iostream> template <class T> T *from(void *data) … | |
![]() | Re: Sounds like something out of a question paper. Maybe try doing it yourself first. |
So, When I assemble this code, I get no errors. It flies through the build. However, when I go to execute this code, it does not display the window. I am unsure of why. I have tried invoking messageboxes at the start or WinMain, but it seems it's not getting … | |
A little find and replace function for PHP, not tested, but theoretically should work. | |
Re: Try this: $(".parent").hover(function() { $(this).append("<div class=\"delete\" style=\"display:inline;width:20px;height:20px;background-color:blue;\">X</div>"); }, function() { $(this).children(":last").remove(); }); $(".delete").click(function() { alert("hello"); }); | |
Hello, I have been learning how to use the MS WinAPI, but their documentations is extremely vague in a lot of places, without information on the proper use of functions (PHP.NET manages this just fine!). But anyhoo. When I handle the WM_DRAWITEM message, it SHOULD display an image on the … | |
Re: We would need to see your whole code, so we can better help you debug the script. If you do this, we can then look at other possible variables that may be affecting the outcome of your code. | |
Re: You would need some JS (jQuery) for this: look into (jQuery).css(); on their documentation. <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript"> $(document).ready(function() { if(case1) { $("#container").css("height", "300"); } else if(case2) { $("#container").css("height", "300"); } else { $("#container").css("height", "400"); } }); </script> | |
Re: I'm pretty sure a header function has to be before the HTML, so you could use a meta refresh, or a javascript redirect instead: JS: window.location.href = 'http://www.example.com/'; HTML: <meta http-equiv="refresh" content="0;http://www.example.com/" /> | |
Re: People can overide the JS, you must do it on the PHP side of things. But you can add in a bit of JS too just for looks: // Your form: <form blah blah onsubmit="checkfields()"></form> // Your JS var contact_name_value = document.getElementById('#contact_name').value if(contact_name_value == '') { alert("Please enter a contact … | |
I just donated because i think this is a great place, full of great members, not that I've met many. But it is from what I can see from older threads and posts. Hope I enjoy my time here. And I hope to learn from other members of the community. … | |
There appears to be a small bug. Where if I edit a post, save it, and then edit it again without reloading the page, it won't show the edits when the edit box shows up, it will show the original post. If you didn't get that, follow these steps to … | |
Re: You could do this with a low level library SDL and SDL_draw or SDL_gfx. | |
Re: Well, what are the errors you receive in the compiler output? | |
Re: I am unable to help you there, but you posted this in the wrong category, it should go into Software Development->Assembly, not Web Development. | |
When I hover over the little ad at the top of each thread, it's usually the ebook one. It shows up normally. However, if you hover the cursor over that ad text multiple times very quickly. The small dialog continues to appear and then disappear the ammount of times that … | |
Here is a fully working PHP page viewer, set the variables $pages[] = "ANY URL HERE"; to suit your needs, and change the variable $max = 10; to however many views you want for each $page. -Echo | |
Nevermind, fixed it, I was being stupid. | |
I know I could parse the files name for the extension, but that can be faked. I know I can get the mime type, but they can also be faked. I know I could use Magic Numbers, but on some files, they are not at the top of the file. … | |
Well, I have just written all of this code, and then made lots of edits, compiled and when I run it, I get STATUS_ACCESS_VIOLATION. And I can't work out where the error lies. It is a very basic Database program BTW. Here is the code: http://pastebin.com/jLktEL3C And here is the … | |
Re: Take a look at this article on Bootloaders: http://www.codeproject.com/Articles/36907/How-to-develop-your-own-Boot-Loader | |
Well, I have just made this funtion that will split an array using a delimiter. I'm new to C++ so I will take any suggestions you have. Anyhow, good luck! Enjoy! | |
Re: You could just put this: while(true) { // Do something } Instead of: while(1 != 2) { // Do something } | |
Re: You could achieve this with the user agent maybe? | |
Re: I'm no good with JS, but you might be better off with simple redirecting to a confirmation page where is says do you really want to delete this account, yes or no. ![]() | |
Re: For a start, what is actually happening? What is wrong? Any errors? Do you have php installed on your server? Secondly about the website, it looks very unprofessional, like it's from 1998 or something. I would improve it. Add a more professional menu. Have a look at my website: http://www.imghst.org/ … | |
Re: It won't work like that glob(); only works on the servers local filesystem, however. | |
Re: You could use something like this: On http: setcookie($prefix.'session_variable1', $_SESSION['session_variable1']); On https: $_SESSION['session_variable1'] = $_COOKIE[$prefix.'session_variable1']; Or you could use the database (more secure): On http: mysql_query("INSERT INTO temp( session_variable1 ) VALUES ( '".$_SESSION['session_variable1']."' )"); $query = mysql_query("SELECT * FROM temp WHERE session_variable1 = '".$_SESSION['session_Variable1']."'"); $array = mysql_fetch_array($query); setcookie($prefix.'id', $array['id']); On … | |
Re: For one you have no system in place to make sure the image is actually an image and not a server virus. So the first thing i would do is make that. ANd then work on the image resizing or optimizing. Also even if you have the image resizing tool, … | |
Re: Do do this you will need to add and extra column in the table for the tracks entitiles "album". And then you would need the following PHP/MySQL query or something like it: $query = mysql_query("SELECT song_id FROM song WHERE album = '".$_POST['album']."'") $_SESSION['cart_items'] = array(); while($album = mysql_fetch_array($query) { $_SESSION['cart_items'][] … | |
Re: I'm not sure whether this will work, but on line 19 you have this: <FORM method="post" name="form"> try changing the Submit and Back buttons so they do not POST the data. Change line 19 to this: <FORM method="post" name="form" action="shipmentchecker.php"> Also you could try sqeezing all of the files into … | |
Hello, I'm Echo (Caelan Stewart) I am currently devloping EchoBB, which is going to be a fully feature packed software, All for free. I am also on a few fellow forums such as The Admin Zone. I hope i enjoy it here. |
The End.