Search:

Type: Posts; User: baconDelta; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    3,532

    gadgetguy changing mysql_query($sql) to ...

    gadgetguy changing
    mysql_query($sql) to
    mysql_query($query, $connection) just queries the db again instead of performing what's set to $sql. ($sql, $connection) isn't a bad idea for more...
  2. Replies
    9
    Views
    3,532

    ah man i'm derping hard. i have i have, just...

    ah man i'm derping hard. i have i have, just being an idiot. that worked. a strange bug though. after clicking delete it appears as if nothing happens until i refresh or visit the page again, then it...
  3. Replies
    9
    Views
    3,532

    <form>
    <?php
    $query = "SELECT *
    FROM store
    ORDER BY TIME DESC";
    $result = mysql_query($query, $connection);
    if (!$result) {
    ...
  4. Replies
    9
    Views
    3,532

    oh wow good call. i put form tags around the...

    oh wow good call. i put form tags around the entire thing, now the page refreshes when the button is pushed but nothing is deleted, whether i have some checked or not. hrmmm. something must be wrong...
  5. Replies
    9
    Views
    3,532

    checklist to remove from db

    so i'm in the process of making a cms for some mods to be able to remove certain rows from a db.
    the list of rows displays correctly, and i got the checkbox idea for each row from this thread,...
  6. Replies
    6
    Views
    2,729

    hrm i see. that's handy knowledge thank you traq....

    hrm i see. that's handy knowledge thank you traq. though even with these single quotes around the variable i have the same behavior, nothing coming back. when i peek in the db everything is set...
  7. Replies
    6
    Views
    2,729

    noted, so i should have the query read: ...

    noted, so i should have the query read:


    $query="INSERT INTO data (`CommentUrl`, `Name`, `Comment`, `IP`, `TIME`)
    VALUES('$comment_place','$name','$comment',...
  8. Replies
    6
    Views
    2,729

    creating a thread must be some magical thing. i...

    creating a thread must be some magical thing. i just changed the name of the column to ComentUrl instead of From and now it works. i guess From is one of those words you're not supposed to use when...
  9. Replies
    6
    Views
    2,729

    syntax error BUT WHY!?!?

    i wrote a little comment system and made a db just for storing comment info. everything works except if i try to store the url from which the comment is made, which is the most important part! i get...
  10. Replies
    4
    Views
    14,927

    store it in the db as a DATETIME and use...

    store it in the db as a DATETIME and use something like this before storing it:


    $time = date("y/m/d : H:i:s", time());

    then just store $time in the column you made with type DATETIME.
  11. Replies
    1
    Views
    1,576

    well i figured out an alternative pretty quick,...

    well i figured out an alternative pretty quick, so i guess this thread is pretty useless now lol. since i store the urls in a db i used:


    require_once("../functions/connection.php");

    ...
  12. Replies
    1
    Views
    1,576

    displaying all images in a dir

    so i found a bit of code to display all images in a chosen directory, it goes something like this:


    <?php
    $dir = '/r/';
    $imgs = array();

    if ($dh = opendir($dir)) {
    ...
  13. Replies
    9
    Views
    4,457

    i feel like finra would come after you before...

    i feel like finra would come after you before google or anyone else does lol.
  14. Replies
    1
    Views
    1,797

    alright so after a little bit more thought i...

    alright so after a little bit more thought i think it's possible to make a function that will insert text after a placeholder, rather than replacing the placeholder itself. i shall attempt this noble...
  15. Replies
    1
    Views
    1,797

    most efficient comment box logic

    i've been thinking about making a comment box for some images on my site. images can be uploaded, so a template is used in the creation of the page for the image. under the image i want to have a...
  16. Replies
    5
    Views
    2,379

    damn alright i figured it out. the current_user...

    damn alright i figured it out. the current_user function is supposed to read



    if(!$current_user){


    and not
  17. Replies
    5
    Views
    2,379

    can anyone clarify if i'm storing the above...

    can anyone clarify if i'm storing the above session variables correctly?
  18. Replies
    5
    Views
    2,379

    well if i remove the require_login() from the...

    well if i remove the require_login() from the header it works fine....but then the secured pages aren't secured... so current_user is definitely not being stored in the session correctly :/ still...
  19. Replies
    5
    Views
    2,379

    no same server. it worked with an array of users,...

    no same server. it worked with an array of users, but i haven't gotten it to work with a db of users. db of other stuff works, but this is just a bit more complicated. i'm not sure which php.ini...
  20. Replies
    5
    Views
    2,379

    login with users stored in db

    so i'm trying to build my own login system. i made it work fine when the users were stored in an array, but now i'm trying to get it to work with the users stored in a database, and i've run into a...
  21. Replies
    12
    Views
    5,136

    you can ask the webmaster if they removed the...

    you can ask the webmaster if they removed the joomla cms after creating the site, or just disabled the login page. although this will make you sound like you don't know what you're doing.

    what...
  22. Replies
    7
    Views
    4,505

    Resolved yes in your htaccess file you can write something...

    yes in your htaccess file you can write something like:



    RewriteEngine On
    RewriteRule ^/admin/nonsense.php$ /admin/index.php [L]


    although mod rewrite is tricky. for instance this will...
  23. Replies
    12
    Views
    5,605

    naw those echos are working correctly since it...

    naw those echos are working correctly since it checks for affected rows ==1 not ==0. yeah i hear what you're saying but i figure it should be accurate since maybe in the future this will be useful....
  24. Replies
    12
    Views
    5,605

    hm that worked! but i tried using the same style...

    hm that worked! but i tried using the same style for a 'delete from the banned list' form and it's acting weird.



    if(!empty( $_POST['release'])) {
    $release_this = $_POST["rel_ip"];...
  25. Replies
    12
    Views
    5,605

    ok so far i've got this:

    ok so far i've got this:



    <?php

    if(!empty( $_POST )){
    $time = date("y/m/d : H:i:s", time());
    $ban_this = $_POST["ip"];
    $sql="INSERT INTO banned (IP, TIME)
Results 1 to 25 of 49
Page 1 of 2 1 2