Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #4K
~1K People Reached
Favorite Tags

6 Posted Topics

Member Avatar for OriginalCopy

Hi. The following calculator will return wrong values for operations which are more complicated than <INTEGER><OPERATION><INTEGER>. I suppose I'm making a mistake in parser.y, but I can't figure out what. I know there are mistakes, memory leaks and other technical issues I'm doing wrong, but please concentrate on my biggest …

Member Avatar for ahamed101
0
908
Member Avatar for anny**

You could try to do it my way, like in a programming language: [URL="http://www.daniweb.com/forums/thread150222.html"]simple calculator using a scanner (re2c) and a parser generator (lemon)[/URL] Too bad noone can help me there.

Member Avatar for ahamed101
0
185
Member Avatar for rickya100

you could write a function: [code=php]function q($conn,$query) { $r = @mysql_query(mysql_real_escape_string($query,$conn)); if(!$r) { throw new Exception(mysql_error($conn)); } return $r; }[/code] and catch the exception in the caller

Member Avatar for rickya100
0
122
Member Avatar for cali_dotcom

[code]$mysql .= mysql_select_db("addressbook", $mysql) or die (mysql_error());[/code] strip out "$mysql .=". The dot operator is used for concatenating strings, not ressources.

Member Avatar for OriginalCopy
0
90
Member Avatar for pip86

try to begin your code with [CODE]<?php[/CODE] This is the universal, right way of doing it

Member Avatar for OriginalCopy
0
90
Member Avatar for chronoel

a) Site-wide (ie "X-Axis") or b) Site and session-wide (ie "X/Y-Axis") ? a) [URL="http://www.php.net/manual/en/features.php"]Sessions[/URL] b) [URL="http://php.net/manual/en/ref.shmop.php"]shared memory[/URL] (do not abuse this)

Member Avatar for OriginalCopy
0
89

The End.