Jump to content

Little help for variable declaration


Sorrow

Recommended Posts

The thing i wanna do is to put the value returned by my query tothe variable $Photo

[code]
$SelPic = "SELECT NomPhoto FROM Imgprofil WHERE Id_Inscription = '".$_SESSION['Id_Inscription']."' " ;
$Photo = mysql_query($SelPic);
<?echo $Photo; ?>[/code]

what am i doing wrong cause it is not working
Link to comment
https://forums.phpfreaks.com/topic/28814-little-help-for-variable-declaration/
Share on other sites

ok but it is giving me an error when i am trying to do this: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in

Here is my code: [code]$SelPic = "SELECT NomPhoto FROM Imgprofil WHERE Id_Inscription = '".$_SESSION['Id_Inscription']."' " ;
$Photo = mysql_fetch_array($SelPic);[/code]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.