Jump to content

peranha

Members
  • Posts

    878
  • Joined

  • Last visited

Everything posted by peranha

  1. The error is occurring in show_session_var.php on line 9. You only showed 2 lines in that file.
  2. Can you post what you currently have for this file show_session_var.php
  3. session_start(); has to be at the very top of the page.
  4. Take the session_start(); out of you login page, I didnt know that you were including it in the index page on your first post, and try it again. Also paste you config file if that does work, you are outputing data to the browser in that file, so you will get this error.
  5. session_start(); That has to be at the top of every page where you are using sessions. Put it in the login.php page and try that.
  6. Use the post to update the url with the new page. then use get to get that page on submit use sites.php?site="$_POST "
  7. key is a reserver word in sql. you will need to add backticks to it, or change it. `key` the key with the ~ line beside the 1.
  8. Yes, and OOP goes in its own board, and java goes in its own, and so on, so if you are having issues with OOP, you dont have to search through all of the php posts, just the OOP board.
  9. What are the errors you are getting??
  10. yes it could be, if it is not in this file, Look for what discomatt said earlier in each file to find it. Look for define( 'SITE_TITLE', 'The title of your site' );
  11. <?php mysql_connect("localhost", "admin", "pw") or die(mysql_error()); mysql_select_db("test") or die(mysql_error()); $q = mysql_query("SELECT * FROM users WHERE id = '{$_GET['id']}'") or die(mysql_error()); echo "<table border='0'>"; while($row = mysql_fetch_array( $q )) { echo "<tr><td><a href='index.php?page=profiles&id=$id'>"; echo $row['name']; echo "</a></td></tr>"; } echo "</table>"; ?> Also, I was woundering what the id column is called, if it is just id, then the above will work.
  12. Do they always get the same amount of points added for each visit?? Or will it change
  13. what is your table name, and what is the id field??
  14. Now you just take the "id" part of the URL and put it in the query. SELECT * FROM example WHERE id='{$_GET['id']}' Now you have all the information selected for that specific person. Just make sure you sanatize your $_GET['id'] variable before using it in the query, I didn't just for the example. Just as he said. Use $_GET['id'] and that will get the id from the url. Then use that in the SQL query to get all the info from the database that has that id. SELECT * FROM tablehere WHERE tableidfield = '{$_GET['id']}' that will collect all data from that specific table with the id of the url id. Do you know how to insert the id into the url, or do you need to know how to do that?? All that will go in the profile page. and the display it how you want it.
  15. If you mean the edit to work, then you would use $_GET[] on the page $_GET[id] $_GET[flag] $_GET[f]
  16. Also, dont start php with the short tags <? always start with the normal tags <?php short tags may not be supported on some servers.
  17. $url==$_REQUEST after that line try adding a ; $url==$_REQUEST;
  18. SELECT * FROM table WHERE tablefield = $_POST['state'] that would be the sql Form action would have to be filled in as well.
  19. <?php //this code is bringing in the values for dropdown number 1. $query="SELECT * FROM CHANGETOTABLE"; /* You can add order by clause to the sql statement if the names are to be displayed in alphabetical order */ $result = mysql_query ($query); echo "<option><select name=\"CHANGETOTABLE\" value='1'>CHANGEcity</option>"; // printing the list box select command while($nt=mysql_fetch_array($result)){//Array or records stored in $nt echo "<option value=\"$nt[VALUEOFOPTION]\">$nt[DISPLAYOFOPTION]</option>"; /* Option values are added by looping through the array */ } echo "</select>";// Closing of list box ?> Change a few things in that code and it will select the info from the database.
  20. <?php // send e-mail to ... $to=$email; // Your subject $subject=$subjectP; // From $header="from: email@address.com>"; // Your message $message=$messageP; // send email $sentmail = mail($to,$subject,$message,$header); That is what I use for my email function, it is the basics and it works fine. Also is email set up in your php.ini file
  21. I addslashes on the input, and stripslashes on the output, there is probably a better way, but it works.
  22. I mostly search from motels as I am a traveling tech, so am on the road quite a bit.
  23. I have 2 Linksys WAP54G wireless access points with one set as a repeater, and the other set as the access point. When they are both on, my wireless works for about 5 minutes, then shuts off and i cannot connect to it anymore. I have to shut off the one set to repeater, connect, and then turn it back on, and it will work for about 5 mins again. Anybody have any ideas?
×
×
  • 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.