No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
6 Posted Topics
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 …
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.
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
[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.
try to begin your code with [CODE]<?php[/CODE] This is the universal, right way of doing it
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)
The End.
OriginalCopy