Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Technical Support » Other » need help with php
need help with php [message #445238] Thu, 24 March 2011 06:40 Go to previous message
renalpha is currently offline  renalpha
Messages: 1000
Registered: January 2007
Location: Holland - Zuid-Holland - ...
Karma:
General (1 Star)
Well im not really an expert.
But i was wondering if it is possible to put a var into a var while quering a result into a database.
An example is the following.

			$usermenures = mysql_query("SELECT * FROM usermenu ORDER BY id");
			while($usermenuget = mysql_fetch_array($usermenures)){
			echo '<li class="usermenulist"><a href="'.$usermenuget['link'].'" class="usermenulinks">'.$usermenuget['langnl'].'</a> /&nbsp;</li>';
			}



Now you see
$usermenuget['langnl']


I was wondering if i could change langnl into a var, for example.

$usermenuget['$languagevariabele']


$languagevariabele could be langnl for a dutch label and langen for a english lable.

This didn't work, but does anyone know how to get this done?


Aircraftkiller wrote on Fri, 18 February 2011 23:50

I figured some people will still go LOLOLOL STARVING CATS LOOOOLZ UR A FAG or some dumb shit like that. Thanks for not disappointing! Smile

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: svchost.exe has a trojan
Next Topic: Need help with my C++ code
Goto Forum:
  


Current Time: Sat May 11 09:56:16 MST 2024

Total time taken to generate the page: 0.00668 seconds