Jump to content

Osorene

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Osorene's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thank for your help, specially to frost110. I don't receive the notice anymore but still I can't see the information, is something wrong in the way I'm trying to display it using the echo function? Is there another way? I have some text here... then I place this to retrieve the information from the table <?php echo $article->b ?> more text comes after and so on... Thanks again.
  2. I´m connecting to a table in my database and receiving a notice instead of the expected information I use this code to make the connection to the database (kindly corrected in this forum) <?php $db = mysql_connect("localhost"," * "," * "); mysql_select_db("campover_dbcv",$db); if (isset($_GET['id'])) { $id = mysql_real_escape_string($_GET['id']); $requete = "SELECT * FROM cont_hist_05 WHERE ID=".$id; if ($result = mysql_query ($requete,$db)) { if (mysql_num_rows($result)) { $article = mysql_fetch_object($result); mysql_free_result($result); } } } ?> Then I try to call the information this way <?php echo $article->b ?> And this is what I get Notice: Undefined variable: article in c:\archivos de programa\easyphp1-8\www\public_html\prepa\conf_cont_hist33.php on line 69 Thanks for all your help.
  3. In trying to get an id from a link to make a connection to my data base, for example if I have a link like this .../students/grades.php?ID=51 I need a connection to these record. The code I'm using is <?php $db = mysql_connect("localhost","campover","osorene"); mysql_select_db("campover_dbcv",$db); $requete = "SELECT * FROM cont_hist_05 WHERE ID=".$id; $result = mysql_query ($requete,$db); $article =mysql_fetch_object($result); mysql_free_result($result); ?> and I get this Notice: Undefined variable: id in c:\archivos de programa\easyphp1-8\www\public_html\prepa\conf_cont_hist3.php on line 16 Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in c:\archivos de programa\easyphp1-8\www\public_html\prepa\conf_cont_hist3.php on line 18 Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in c:\archivos de programa\easyphp1-8\www\public_html\prepa\conf_cont_hist3.php on line 18 Can I do something to solve this problem? Thank you in advance for all you people willing to help.
  4. Please help with this problem, I've tried to find the solution over the Internet without any success. I got this notice: Notice: Undefined index: uid in c:\archivos de programa\easyphp1-8\www\public_html\prepa\index.php on line 79 line 79 is: if(!$_COOKIE['uid']) { What do I need to change?
×
×
  • 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.