Jump to content

Deoctor

Members
  • Posts

    663
  • Joined

  • Last visited

Everything posted by Deoctor

  1. i could not get it.. can you explain me in more detail :'(
  2. hai if i am correct u might have used the echo as of below <?php $c=5; $cat="Molly"; echo $c."at is ".$c." years old."; ?> this is the only way u can get this error..
  3. Hai i have written my entire code in php and i have put those in frames in a html file. now the thing is that i need to pass the variable value in one php which i am displaying in second frame to be passed to the third frame. <?php include("access.php"); //echo "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"5; URL=display.php\">"; mysql_select_db($dbname); if (isset($_COOKIE['user'])) { //echo "Welcome $_COOKIE[user]<br>"; $username="$_COOKIE[user]"; //echo "<p>$username</p>"; $query = mysql_query("SELECT email,password FROM userlogin WHERE username = '$username'") or die(mysql_error()); $data = mysql_result($query,0); //echo $data; } else { echo $_COOKIE['user']; //echo "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"1; URL=login.php\">"; } $select=mysql_query("select url from usubs where email='$data'") or die(mysql_error()); while($row = mysql_fetch_array($select)) { $url = $row['url']; //echo "<br>".$row['url']."<br>"; echo ("<br><a href = '$url'target='frame3'>$url</a>"); } ?> i need to pass this url into the third frame which is having a php file. please help me out...
  4. <?php include("access.php"); mysql_select_db($dbname); $user="ym_chaitu"; //$e=mysql_query("select email from userlogin where username='$user'"); //$email=mysql_query($e,0); $query = mysql_query("SELECT username,password FROM userlogin WHERE username = '$user'") or die(mysql_error()); $data = mysql_result($query); echo $data; ?> this is my code,,when i am using it out, it is giving me an error Warning: Wrong parameter count for mysql_result() in C:\Program Files\xampp\htdocs\chaitu\magpierss\test.php on line 8 can any one let me know where an i wrong
  5. i have some code with me but i need to make the entire site look in the format i have given, :-\
  6. Hi All, I am trying to design my new website in PHP and I have two problems if anyone can help me or point me in the right direction I would appreciate it. I am trying to create a html table in php & call data into one of the cells like: _______________________________ Banner | _______________________________ Navigation Menu | _______________________________ Links | Content | | | | | | | | | _______________________________| I would ideally like to use this and call a link from the links cell to put content into the content box. This is so it will look like frames but not actually be frames.
×
×
  • 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.