Jump to content

Rizla

Members
  • Posts

    30
  • Joined

  • Last visited

    Never

About Rizla

  • Birthday 03/29/1986

Contact Methods

  • Website URL
    http://www.makeawebsite.be

Profile Information

  • Gender
    Male
  • Location
    Belgium

Rizla's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. example form code: <form method="post" action="pagename.php"> <input type="submit" name="submit" value="Delete" /> </form> Just make shure the php code is listening to the correct submit btn "name" and make shure the php code that deletes receives the correct row id otherwhise you wont be able to delete anything. Can you post your code???
  2. just post line 16 from the file.inc.php file and line 54 from the exhibits.php file maybe that will be enought to help you. Right now we can't do a thing
  3. another thing actual: $pager = new PS_Pagination($db, $sql, $noofrecords,4, "param1=valu1&param2=value2"); notice1: "valu1", shouldnt that be "value1" ??? notice2: $db, shouldnt that be $conn ???
  4. How about this, the script states $conn but in the function it says $connection ??? actual: function PS_Pagination($connection, $sql, $rows_per_page = 10, $links_per_page = 5, $append = "") { Try: function PS_Pagination($conn, $sql, $rows_per_page = 10, $links_per_page = 5, $append = "") {
  5. Sorry for confusing you. yes it's a question. What is "mysql_fetch_assoc" and when do u chose to use this instead of "mysql_fecht_array"?
  6. Said the same thing but, whats the fetch_assoc for?
  7. I know you guys are both right on this, but i'm not that far advanced on php knowledge. So i have to compensate with some dumb workarounds
  8. I' dont work with other people, I do everything myself. from a to z from scratch to finish. And I merely make sites for a hobby and i learned everything from self study. I'm not saying i would not like to know how to do OOP but it seems so confusing to me. btw i have a script to select a usergroup and store that to the database I see a text string in a select box with a decimal value attatched to it. this way it's not all that confusing for eg: moderators etc btw: I'm from Lichtervelde
  9. I thinks it's a simple mistake. He sets the $sql var to nothing on the pagination page. here: var $sql = ""; in the class PS_Pagination. Just delete that line an then try again and see if it works now. class PS_Pagination { var $php_self; var $rows_per_page = 10; //Number of records to display per page var $total_rows = 0; //Total number of rows returned by the query var $links_per_page = 5; //Number of links to display per page var $append = ""; //Paremeters to append to pagination links //==> delete this one: var $sql = ""; var $debug = false; var $conn = false; var $page = 1; var $max_pages = 0; var $offset = 0;
  10. then how on earth did u wrote such complex php coding?
  11. can you attatch the files you're having problems with, i'll have a look at it for you.
  12. When the script goes to the next page it probably loses the search terms did you include the search terms in your pagination urls??? and then get them with $_GET and do the check again ...
  13. I use this to on my site to show adminpanel links and other things. How i do this is by setting a userlevel to each account. Then when a person logs in i also set a session var or cookie var that holds the userlevel (int) and then i check what userlevel that user has. if($logged['userlevel']==9){echo'user is administrator show admin links} The userlevel is set in the user table in the database. $logged contains session information and here we get the userlevel and check if its an admin if true we show the links else we do not show the links.
  14. Hehe, everyone can overlook something. I had similare problems several times before. But you learn from these mistakes. I have one tip for you: save and test after every change you make to your files this way you know where and when you're problem started. Greetings Rizla
×
×
  • 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.