darphas Posted January 24, 2013 Share Posted January 24, 2013 i want to print a variable if existe in a costum field on mysql database for example, the problem is that a make id query like index.php?id=1, index.php?id=2, etc.. and for example only the id=3 have a content in var. php code: $myvar="somecode or thins here" mysql table: name: Horse description: Black and 4 years old var:$myvar php code: function printvar(&$myvar) { if (isset($myvar)) { echo $myvar; } } i don't know what it happens but doesnt work please help Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.