Posts
 
Reputation
Joined
Last Seen
Ranked #472
Strength to Increase Rep
+7
Strength to Decrease Rep
-1
91% Quality Score
Upvotes Received
23
Posts with Upvotes
20
Upvoting Members
17
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
9 Commented Posts
~58.1K People Reached
Favorite Tags

82 Posted Topics

Member Avatar for riotburn

In line 91 you're trying to construct the member Patient which is a type not a member. You did it right everywhere else though. This, however, is not the only thing wrong with the 'Patient' construction in Billing. You're constructing a Patient from a Person but you haven't specified a …

Member Avatar for Odumenya12
0
657
Member Avatar for MavrickIT

This suggests there is an error in your SQL-query on line 5. Replace line 5 with: [code] $mark = mysql_query("select * from product order by product_id DESC") or die(mysql_error());[/code] and see what you get.

Member Avatar for Sanjeda shekh
0
854
Member Avatar for jrotunda85

[b]mysql_query[/b] returns a boolean false when the query fails so if you fix the query (to which the second error applies) the first will disappear also. As for the second error: it's probably something to do with [b]$UserID[/b] as the rest looks alright. Maybe you could show us what the …

Member Avatar for Gears.of.Codes
0
371
Member Avatar for carebear23
Member Avatar for writerervin

This is just a suggestion but maybe it'll be the key to you figuring it out. Keep an 'items' table containing all the items in your game with a structure like: id, type, upgrades, owner Then you could just fetch all items with a certain type and a certain owner …

Member Avatar for 8g2h8bt9
0
222
Member Avatar for cliffcc

You forgot a " on line 10 [code]$id1 = implode("-", $id);[/code] and $id isn't an array but a single value so you can't implode that (implode takes an array).

Member Avatar for cliffcc
0
399
Member Avatar for 100110010110100

Your [b]openWithCURL[/b] function doesn't return anything. I suppose you want [code]function openWithCURL($url){ $curl_handle=curl_init(); curl_setopt($curl_handle,CURLOPT_URL, $url); $result = curl_exec($curl_handle); curl_close($curl_handle); return $result; }[/code]

Member Avatar for 100110010110100
0
910
Member Avatar for Graycode

Well this functions.php file prints a new line at lines 7 to 9 [code]?> <?php[/code] And you probably know that printing requires the headers to be sent so you can't change them anymore after printing. Try removing these 3 lines.

Member Avatar for Insensus
0
289
Member Avatar for Deepali_Jain

Are you sure it failed? When you're using [b]exec[/b] like in your post, it won't output anything but only return the last line of the result of the given command. If you want all the output supply an array as second argument to [b]exec[/b]. This array will then be filled …

Member Avatar for Insensus
0
138
Member Avatar for Cap'nKirk

How about this [code]$text = preg_replace('/(https{0,1}:\/\/([\w\-\.\/#?&=]*))/', '<span class="tweet_links_intext"><a href="$1" target="_blank">$2</a></span>', $text);[/code]

Member Avatar for Cap'nKirk
0
302
Member Avatar for abdelhakeem

In comes the bragging. You reached 499 points, so you achieved position 324 of 111445 on the ranking list You type 622 characters per minute You have 121 correct words and you have 0 wrong words

Member Avatar for nick.crane
0
451
Member Avatar for riseguim
Member Avatar for riseguim
0
151
Member Avatar for megachip04

At line 7 you specify the variable [b]$path1[/b] but in the copy function on line 11 you use [b]$path[/b] which is undefined. This produces the error.

Member Avatar for Insensus
0
580
Member Avatar for felix001

Use [b]exec[/b] instead of [b]system[/b] and specify an empty array as the 2nd variable. This will then be filled with all the lines output by the command. [url]http://www.php.net/manual/en/function.exec.php[/url] [code]$result = array(); exec('/usr/bin/whois 4.2.2.2', $result);[/code] Now you have an array filled with all the lines, excluding trailing whitespace, of the output. …

Member Avatar for diafol
0
2K
Member Avatar for toneranger

Maybe you would also like to post your operator>> because I'm not able to solve it like this. Perhaps someone with actual coding skills might be able to, though, but to me it seems unlikely.

Member Avatar for danb737
0
592
Member Avatar for Hummdis

By default PCRE regex patterns in PHP don't match newlines with . and maybe POSIX patterns do, I'm not sure. But since you probably have newlines in your template file, I think changing the pattern to the following should solve your issues: [code]$header = preg_replace("/".$bodytag."(.*)/is", '', $temp); $footer = preg_replace("/(.*)".$bodytag."/is", …

Member Avatar for Hummdis
0
247
Member Avatar for 54uydf

It's definitely possible with the GD library but from reading your question I feel like your expectations of the capabilities of the GD library are too big. The GD library exists only for basic drawing functions, it will not check for you whether two lines are intersecting for instance. I …

Member Avatar for 54uydf
0
135
Member Avatar for bibiki
Member Avatar for Insensus
0
2K
Member Avatar for soapyillusion

It would help if you'd also post the error but a first suggestion would be to use [b]<?php[/b] as starting tag instead of your [b]<?[/b] on line 1.

Member Avatar for soapyillusion
0
128
Member Avatar for mgt

A for loop is set up as follows: [code]for ( inital step; condition to continue; step to execute after every loop )[/code] So your second for loop, the one supposed to decrease, has the first two arguments mixed up. This turns it into an infinite loop because [b]$row2[0] = 15[/b] …

Member Avatar for IIM
0
3K
Member Avatar for anitg

The closing double-quote for your MySQL query on line 39 is actually the wrong character. It should be a [b]"[/b] and you have a [b]”[/b], so the string is never closed and eats the rest of your code.

Member Avatar for Insensus
0
280
Member Avatar for ztdep

[code]vector<string> data; vector<string>::iterator found = find(data.begin(), data.end(), "search"); int pos = found - data.begin();[/code]

Member Avatar for Insensus
0
69
Member Avatar for Sarao

Change [code]$result = mysql_query("SELECT userid FROM user ORDER BY userid DESC LIMIT 0,1");[/code] to [code]$result = mysql_query("SELECT userid FROM user ORDER BY userid DESC LIMIT 0,1") or die(mysql_error());[/code] and you should see an SQL error. If you can't solve the error, just post it back here.

Member Avatar for faroukmuhammad
0
163
Member Avatar for atfOnly

This happens because you can't access an array's members directly inside a double-quoted string. You can either try like this [code]study_period='{$period[$i]}'[/code] that [i]might[/i] work, I'm not sure. Or just do it like this [code]study_period='".$period[$i]."'"[/code] which will work for sure.

Member Avatar for Insensus
0
101
Member Avatar for riotburn

This error occurs because you are including a certain file multiple times and therefore trying to redefine the Figure class. I've always been taught to wrap my class header files in the following format to prevent multiple definitions: [code]#ifndef __IN_HEADERNAME #define __IN_HEADERNAME // // The original header goes here // …

Member Avatar for riotburn
0
281
Member Avatar for thecoolman5

Also, may I ask why you want to do this in the first place? If it's for measuring the time the users takes to produce some input it's much easier to check the time before you ask for input, check it again right after input has been received and simply …

Member Avatar for thecoolman5
0
891
Member Avatar for utthu

[url]http://nl.php.net/manual/en/function.error-reporting.php[/url] [code]error_reporting(E_ALL ^ E_NOTICE);[/code]

Member Avatar for almostbob
0
107
Member Avatar for utthu

In the first file you set two variables with the username and password for MySQL. When connecting however you don't use these variables but two constants. Also, or die(mysql_error()) can be appended to any MySQL function, including mysql_connect. If you would've done that, mysql_connect would throw the first error instead …

Member Avatar for utthu
0
155
Member Avatar for Jhon E

In [b]connection.php[/b] you are connecting with MySQL functions but in [b]Prepared_Statements.php[/b] you are trying to execute queries with the MySQLi functions.

Member Avatar for Stefano Mtangoo
0
145
Member Avatar for sadsdw

Because 150.000 x 150.000 floats equals ~21GB of memory. I don't think you have that much RAM in your computer.

Member Avatar for sadsdw
0
2K
Member Avatar for Xufyan

In short, this is what you do: [i]sign.php[/i] [code]$error = 0; if(!is_numeric($val1)) $error += 1; if(!is_numeric($val2)) $error += 2; if($error != 0) header("Location: form.php?error=$error");[/code] This sends the user back to the form and passes information about which field wasn't a numeral. [i]1 (01):[/i] The first is not a numeral [i]2 …

Member Avatar for Stefano Mtangoo
0
361
Member Avatar for dhruv_arora

Change line 11. from [code]$id = $_GET['id'];[/code] to [code]$id = $_POST['id'];[/code]

Member Avatar for dhruv_arora
0
160
Member Avatar for programmer12

When a PHP script is done executing all non-persistent connections will be closed. Non-persistent connections are made with the [b]_connect[/b] database functions so as long as you stick to that, there's nothing to worry about.

Member Avatar for programmer12
0
118
Member Avatar for bipies
Member Avatar for diafol
0
871
Member Avatar for RazorRamon

Instead of assuming there are people on this forum who can simulate your server in their heads, could you maybe post what it is that is actually going wrong? Any errors?

Member Avatar for IIM
0
634
Member Avatar for David_Omid

If you want someone to look at your source code, why not post it in your topic to begin with? It's why they invented the code-tag.

Member Avatar for David_Omid
0
168
Member Avatar for Stefano Mtangoo
Member Avatar for Stefano Mtangoo
0
163
Member Avatar for heshanm

You're missing a [b].[/b] at line 46. [code]'"$_POST['fd_period']."'[/code] [code]'".$_POST['fd_period']."'[/code]

Member Avatar for heshanm
0
192
Member Avatar for kleinsteve

The | isn't the string concatenation operator in PHP. It's the bitwise OR operator, that's why you get the randomness. Use [code]$emailSubject = 'Work Order: ' . $_POST['company'];[/code]

Member Avatar for Insensus
0
93
Member Avatar for Jsplinter

[code]bool pComp(int* a, int* b) { return *a < *b; } vector<int*> pVec; std::sort(pVec.begin(),pVec.end(), pComp);[/code]

Member Avatar for Jsplinter
0
5K
Member Avatar for panhwer

A quote from the PHP session_destroy manual [icode]session_destroy() destroys all of the data associated with the current session. It does not unset any of the global variables associated with the session, or unset the session cookie. To use the session variables again, session_start() has to be called. In order to …

Member Avatar for panhwer
0
154
Member Avatar for premier213
Member Avatar for Sorcher

What you have now is: [icode]10 => 0 11 => 1[/icode] I suspect you want: [icode]9 => 0 10 => 1[/icode] Which I'd do like: [code]$ASoliderPercent = floor($attackerSoldiers/10);[/code]

Member Avatar for Ezzaral
0
126
Member Avatar for Drau

You can't do that because [b]5.0[/b] is stored as [b]5[/b]. There is nothing stored about how many insignificant zeroes you entered in your code.

Member Avatar for Drau
0
154
Member Avatar for kutuup

I don't think it doesn't find it but your method of checking whether it has is wrong. Instead try [code]if (inFile.is_open())[/code]

Member Avatar for kutuup
0
349
Member Avatar for patraghost

This means your [b]mysql_query[/b] returns a [b]false[/b] because there's an error in your query. Which is the result of line 11 because your query will look like: [b]select * FROM datatable LEFT JOIN datatable2 ON datatable.numid=datatable2.numid WHERE numid='$numid' AND [/b] There is nothing following the [b]AND[/b] which produces an error.

Member Avatar for patraghost
0
144
Member Avatar for dalip_007

[code]$rands = range(300, 10000); shuffle($rands); $random1 = array_pop($rands); $random2 = array_pop($rands); $random3 = array_pop($rands); ...[/code]

Member Avatar for urtrivedi
0
158
Member Avatar for Sandhya212

Quote from cplusplus.com [b]For the function to yield the expected result, the elements in the ranges shall be already ordered according to the same strict weak ordering criterion (operator< or comp).[/b]

Member Avatar for Sandhya212
0
233
Member Avatar for sharathg.satya
Member Avatar for sharathg.satya
0
130
Member Avatar for stereomatching

I don't know what the purpose of this code is but it looks like they want the following set of selection rules: [b]sizeof(T1) > sizeof(T2):[/b] ResultT = T1 [b]sizeof(T1) = sizeof(T2):[/b] ResultT = void [b]sizeof(T1) < sizeof(T2):[/b] ResultT = T2 With the alternative you suggested the selection rules would be: …

Member Avatar for stereomatching
0
166

The End.