User Profile

Collapse

Profile Sidebar

Collapse
ilya Kraft
ilya Kraft
Last Activity: Dec 5 '11, 04:23 PM
Joined: Jan 10 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • How to renew information from MySql database without page refresh? using jQuery/AJAX

    I guess it is sort of simple question, but I'm not the AJAX guy, tried it, but I still don't understand it )))

    Here is the situation:

    1) I get one random url from database

    Code:
    $sql = ("SELECT url FROM url_table ORDER BY RAND() LIMIT 1");
    
           while($row = mysql_fetch_array($sql)){
    
                 $url = $row["url"];
    
        }
    2) Than I display...
    See more | Go to post

  • ilya Kraft
    replied to Align problem - z-index issue
    Solved, removed z-index from #sideTopHeader and changed z-index tom -1 in .sideShadow
    See more | Go to post

    Leave a comment:


  • ilya Kraft
    started a topic Align problem - z-index issue

    Align problem - z-index issue

    Hello,

    Right, I have a header and a small div .sideShadow, I need .shideShadow div to be behind a #sideTopHeader div, right now it is on the top of it, you can see it here (to your right)

    http://inelmo.com

    CSS I use now

    Code:
    #sideTopHeader {
    background: #333333;
    z-index: 1;
    position: relative;
    height: 50px;
    margin: 0 -30px 0 0;
    
    -webkit-border-radius:
    ...
    See more | Go to post

  • Element Align Problem - Negative margins, images etc.

    Hello,

    I'm trying to make a header that goes outside the borders of my sidebar and has a shadow image that makes it look like it is a book-mark.

    Something similar to this: Image Here

    Right now I tried my best, but it is not looking correct. here is my code for sidebar and header That I think should work to make this effect, but it isn't.

    HTML

    Code:
    <!-- Sidebar -->
    ...
    See more | Go to post

  • .htaccess Problem - ( Turn off SSL for every page except login.php and register.php )

    Hello,

    Right, so I'm using .htaccess file for my website. I have SSL Certificate enabled, but I only need to use https:// on two pages of my website, I was able to make it so https:// is off for everything except login.php page, but I need to make it so it also works on register.php page.

    So how do I change following code, so it sets login.php and register.php to https://

    Code:
    Options +FollowSymLinks
    ...
    See more | Go to post

  • Problem With Script - when SELECTING from database for logged and non logged in users

    Hi,

    Right, I've recently added Like/Dislike system to my website. One of the features is recording voters ip address, so he can't vote more than 1 time. But Now I tried to change system so it checks if user is logged in, and if he is than information from database is filtered by username instead of ip, but for non logged in users it is filtered by ip like before. I tried to achieve this task, but for some reason it is not working correctly...
    See more | Go to post

  • Soo

    Code:
    mysql_real_escape_string($_REQUEST['foo'])
    
    if isset($_REQUEST['foo']) {
    
    $sql = mysql_query("INSERT INTO Favorites (article_id, user_id) VALUES ($article_id, $user_id)");
    
    }
    Will this do the job?

    Thnx
    See more | Go to post

    Leave a comment:


  • How to check if check box is clicked and send info to mySQL?

    Hi,

    I just started using check boxes to send information to mySQL. What I want to do is to send id of the user and article to database when check box is clicked and when it is un-clicked remove that information from database.

    Right now I am at this stage

    Code:
    <?php
    
    if (isset(//if user is logged in)) { 
    $addFavorite = '<input type="checkbox" id="favoriteIt"
    ...
    See more | Go to post

  • Allright, so say when user clicks "Favorite" button, than the id of favorited article and say username of the person who clicked it will go into table with fields favorite and username.

    And than I can select id's of Favorited articles that are related to username of the member right? What do you mean by primary key user+favorite? Should I set them both to primary key when setting up fields?

    You also mentioned some...
    See more | Go to post

    Leave a comment:


  • What Logic is Used Behind "add to favorite" feature on a member based website?

    Hello,

    Right, so I decided to add "Add to favorites feature" to my member based website. But I kind of don't know where to start. I mean what logic is behind it?

    I was thinking of customizing a check box so members can easily add or remove from favorites. So When Check box is clicked that article would go into favorites list of that member. But what structure of database should I use and how to relate Favorited...
    See more | Go to post

  • What is VANILA SQL INJECTION and How to secure against it?

    Hello,

    I've recently used a program to check if my webpage is secured enough, and it came up with something nammed

    Vanila Sql Injection

    it also provided link that looks similar to this one

    http://mywebsite.com/Directory/error_log?' HTTP/1.1

    But I found no explanation about what the problem is, What is causing it and how to fix it. Is it serious?

    Thank You
    See more | Go to post

  • How to pre-load images That are used on CSS "hover" ?

    Hi,

    Right, I used css "hover" for some div't to change their background image when someone mouse over's them. The problem I faced is that those images are not loading at the begging, person needs to hover the original image and than image that appears on hover starts loading. This looks wrong, because I need that image to appear right when some one hovers it, with no delay.

    So is there a way to pre-load this...
    See more | Go to post

  • Padding / Margin Problem - Different Appearance in Chrome and Firefox

    Hi,

    Right so I applied some margin and padding settings to my search form to make it look good, but - as usual >.< - I had a problem. This padding and margins look completely different in browsers.

    If you visit http://inelmo.com

    From Chrome, Firefox and IE you will get the idea of what I am talking about. SO the question is, how to apply margins and paddings correctly, so they look good in all browsers?...
    See more | Go to post

  • ilya Kraft
    started a topic W3 Validation Problem

    W3 Validation Problem

    Hi, tried to validate my website and came across several problems, some I understood, but the following one Is confusing to me.

    Line 137, Column 139: Element input with attribute type whose value is button must have non-empty attribute value.

    …7Bup%7D+likes% 2C+%7Bdown%7D+d islikes'/><input type='button' class='pulse_vo te_…

    I don't understand what it wants from me...

    Here is link...
    See more | Go to post

  • ilya Kraft
    replied to w3c validation problem
    you didn't close this div

    Code:
    [B]<div class="content">[/B] ...stuff goes here [B][U]</div>[/U][/B]
    not sure about other problem, maybe it is caused by this
    See more | Go to post

    Leave a comment:


  • ilya Kraft
    replied to Pictures and captions in html
    This should give you 2 images in row with space of 20px between each other

    Code:
    <div id="imgwrap" style="width:500px; margin-left:auto; margin-right:auto;">
       <div id="image1" style="width:240px; float:left;"><!-- image here --></div>
       <div id="image2" style="width:240px; float:right;"><!-- image here --></div>
    ...
    See more | Go to post

    Leave a comment:


  • ilya Kraft
    replied to "Lock" image when scrolling?
    change position:absolu de; to position:fixed;
    See more | Go to post

    Leave a comment:


  • Changed

    Code:
    .pulse_votes_container thumb1 {float:left;}
    also tried setting line-height of spans to bigger (30px;) this cut's of more image.

    I checked it in mozzila firefox, it look alright there but not in chrome.
    See more | Go to post
    Last edited by ilya Kraft; Jul 25 '11, 03:38 PM. Reason: I checked it in mozzila firefox, it look alright there but not in chrome.

    Leave a comment:


  • I did, but this cut's off the image > http://inelmo.com

    Code:
    .pulse_vote_buttons {line-height:25px;}
    
    .pulse_result_format {line-height:25px;}
    See more | Go to post

    Leave a comment:


  • Ohhh.... And By the way, Text is now where I want it, but it is still same in Chrome and I guess safari (as both are similar a bit), Shall I apply v-align to make it work in chrome? Or is it something different?

    Thnx
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...