Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
90% Quality Score
Upvotes Received
10
Posts with Upvotes
9
Upvoting Members
9
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
3 Commented Posts
~24.0K People Reached
Favorite Tags

44 Posted Topics

Member Avatar for gacha23

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.

Member Avatar for zebnoon1
0
407
Member Avatar for Troy III

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... }

Member Avatar for Troy III
0
309
Member Avatar for Echo89

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.

Member Avatar for rubberman
0
2K
Member Avatar for Echo89

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 …

Member Avatar for Moschops
0
176
Member Avatar for Echo89

# 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 …

0
88
Member Avatar for punith_1

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 …

Member Avatar for punith_1
0
438
Member Avatar for Echo89

This is a function that generates a string of random characters to the length that you specify.

Member Avatar for 5n0wn1nja
0
7K
Member Avatar for asifalizaman
Member Avatar for enbeeone3
1
224
Member Avatar for Echo89

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.

Member Avatar for dexblack_1
0
226
Member Avatar for Echo89

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) …

Member Avatar for Echo89
0
242
Member Avatar for cudawella

Sounds like something out of a question paper. Maybe try doing it yourself first.

Member Avatar for Echo89
0
125
Member Avatar for andrewtarant
Member Avatar for cproger
0
67
Member Avatar for Echo89

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 …

Member Avatar for GunnerInc
0
247
Member Avatar for Echo89

A little find and replace function for PHP, not tested, but theoretically should work.

Member Avatar for Echo89
-1
2K
Member Avatar for HelloJarvis

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"); });

Member Avatar for HelloJarvis
0
211
Member Avatar for Echo89

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 …

Member Avatar for Echo89
0
1K
Member Avatar for johndohmen1963

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.

Member Avatar for radhakrishna.p
0
449
Member Avatar for davy_yg

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>

Member Avatar for davy_yg
0
141
Member Avatar for Shodow

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/" />

Member Avatar for Shodow
0
579
Member Avatar for ChrisJ

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 …

Member Avatar for Echo89
0
148
Member Avatar for Shodow
Member Avatar for Echo89

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. …

Member Avatar for Echo89
2
101
Member Avatar for Echo89

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 …

Member Avatar for pritaeas
0
237
Member Avatar for sai.aleenus

You could do this with a low level library SDL and SDL_draw or SDL_gfx.

Member Avatar for Echo89
0
241
Member Avatar for filxy
Member Avatar for mohdshafiqanas

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.

Member Avatar for Echo89
0
118
Member Avatar for Echo89

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 …

Member Avatar for Echo89
1
348
Member Avatar for Echo89

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

Member Avatar for Echo89
1
452
Member Avatar for Echo89
Member Avatar for Echo89

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. …

Member Avatar for phorce
0
308
Member Avatar for Echo89

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 …

Member Avatar for Echo89
0
860
Member Avatar for Shft

Take a look at this article on Bootloaders: http://www.codeproject.com/Articles/36907/How-to-develop-your-own-Boot-Loader

Member Avatar for Echo89
0
159
Member Avatar for Echo89

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!

Member Avatar for Echo89
0
991
Member Avatar for aramil daern

You could just put this: while(true) { // Do something } Instead of: while(1 != 2) { // Do something }

Member Avatar for Echo89
1
485
Member Avatar for Echo89
Member Avatar for louie540
Member Avatar for PF2G

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.

Member Avatar for jmichae3
0
177
Member Avatar for seblake

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/ …

Member Avatar for sasankasekhar
0
139
Member Avatar for divyakrishnan
Member Avatar for divyakrishnan
0
143
Member Avatar for sam230

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 …

Member Avatar for Echo89
0
90
Member Avatar for arihantphp

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, …

Member Avatar for pritaeas
0
306
Member Avatar for laura301019

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'][] …

Member Avatar for laura301019
0
172
Member Avatar for gopi17

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 …

Member Avatar for Echo89
0
208
Member Avatar for Echo89

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.

Member Avatar for Echo89
0
26

The End.