[HELP]Getting mysql array from database + onclick function
Hello guys, firstly im so sorry if i post in the wrong forum/section, im not sure how i gonna tell you about this problem but at least i'll try..im trying to get content from database..yes its was perfectly when i push the "Next >>" button, but the problem is i don't even get the content i want from database which is $row[app_id] and $row[canvas], btw to let ya know, i didn't get any error even warning by running this code. is it something wrong with the code? here's the code i'll use for my project.
is it because the curly bracket was close earlier? did you guys have any other alternative? btw it can be done if i just echo the content
PHP Code:
<?php $info = mysql_query("SELECT * FROM yu_user where name='".$yuser."'");
while($row = mysql_fetch_array($info)){
echo "app id is $row[app_id]";
echo "canvas is $row[canvas_url]";
}
?>
$connect = mysql_connect($hostname, $username, $password) or trigger_error(mysql_error(),E_USER_ERROR);
mysql_select_db($database, $connect);
$query = "SELECT * FROM yu_user where name='$yuser'";
$info = mysql_query($query, $connect) or die (mysql_error()."Error while selecting user details");
thanks for your help guys but i already got it fix. i said echo is ok. but i dont know why i dont use it either..so here the working code if anyone need it
Bookmarks