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
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]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.