Junaid R
-
Posts
6 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by Junaid R
-
-
man just suggest me what to read to learn some advanced php.. all the tutorials are too old and simple. and bro you were saying that echo and quotes are missing. you can also see that the statement which is without echo and qoutes does conatain a lot of quotes itself.. so they conflict with eachother
-
any other way of doing this??
-
thanx (Y) let me try
-
well.. yes. i have gaminig website. and i've made just one page for playing online for all games. i have used this php syntax in my page to get variable from the url and compare it with the if statements and execute the true code block. this code works fine when i replace the
<div id="miniclip-game-embed" data-game-name="8-ball-pool-multiplayer" data-theme="0" data-width="750" data-height="520" data-language="en"></div>;thing withecho "Whatever";it works fine then.. -
<?php$game = $_GET["id"];if ($game == ballpool){<div id="miniclip-game-embed" data-game-name="8-ball-pool-multiplayer" data-theme="0" data-width="750" data-height="520" data-language="en"></div>;}elseif ($game == minisoccer){<div id="miniclip-game-embed" data-game-name="soccer-stars" data-theme="0" data-width="750" data-height="450" data-language="en"></div>}else{echo "Invalid Request";}?>
anybody please Solve the error
in PHP
Posted
echo '<a href="game.php?id=$row->gameTitle" style="display:block; text-decoration:none;">';