Jump to content

prexep

Members
  • Posts

    62
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

prexep's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Do you have <form action='login.php' method='POST'> ??
  2. And a side note. Line 4 should be like echo $result; NOT echo $result ;
  3. What is the form code? Whats submitting to the login?
  4. Notice: Undefined index: admin_user in C:\Program Files\xampp\htdocs\myfiles\vest\newnd\admin\login.php on line 14 Notice: Undefined index: admin_pass in C:\Program Files\xampp\htdocs\myfiles\vest\newnd\admin\login.php on line 15 $admin_user and $admin_pass are empty.
  5. Try <?php print '$variable'; //$variable ?>
  6. Try something like this. <?php $query="SELECT * FROM folders WHERE cabinet_id=2 ORDER BY fol_name ASC"; $result=mysql_query($query) or die($query. '<br >' .mysql_error()); $row=mysql_fetch_array($result); while($row=mysql_fetch_array($result)) { echo "$row[fol_name]<br>"; echo "$row[stocks]<br>"; echo "$row[Telephone]<br>"; echo "$row[Credit Card statement]<br>"; echo "$row[Water and Electric]<br>"; } ?>
  7. try $qry="select * from admin_table WHERE `user_name`='$user_name' and `password`='$password' LIMIT 1";
  8. Probably, but why? And you need the PDFlib library to have PHP do it.
  9. Variables aren't global and can't be called in the function. Try putting it in the function?
  10. Sessions will hold there value till the page is closed. But the variable will not hold its value. But a variable can be declared to hold the sessions value. So the variable isn't actually holding the data but the session itself. So the variable will be gone when gone to a different page but the session will still exist. Till browser is closed.
  11. $_GET[name] http://www.phpfreaks.com/index.php?name=This%20is%20the%20stuff The $_GET[name] will look for the name and if true equals the value after the =. So $_GET[name] has in it now "This is the stuff" which it gets from the URL.
  12. Are they all in the same directory or separated through the root. Example /forum /wb Or in all the same directory? If in the same directory it might of overwritten some files they another scripted used?
  13. Yea, once you go to a new page or refresh the data is lost. It's like RAM once the computer is off all the data is gone. Once the page is gone (exit, refreshed, ect..) all the variables are gone.
×
×
  • 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.