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 Link to comment https://forums.phpfreaks.com/topic/273586-print-variable-if-exist-a-costum-field-php-mysql/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.