User Profile

Collapse

Profile Sidebar

Collapse
Gozil
Gozil
Last Activity: Mar 9 '10, 08:37 PM
Joined: Jul 17 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Gozil
    replied to separate user table with user settings?
    Thanks for the reply, this clarified a lot for me.
    See more | Go to post

    Leave a comment:


  • Gozil
    started a topic separate user table with user settings?

    separate user table with user settings?

    I'm wondering if its a good idea to separate the user information (name, pass, age ...) and the users settings (notifications, themes ...)?

    I guess the real question is if its bad practice to have a lot of columns in one table or if its actually faster? One obvious reason not to have them in the same table is if you want to have dynamic settings which require one insert for each setting but I'm not gonna do that right now.
    See more | Go to post

  • Gozil
    replied to pass javascript arrays in php POST method
    in PHP
    The only thing I noticed as a solution was that I looped through all the POST variables however this will create a lot of variables to pass on with ajax, for example a person can post 20 names, 100 names or even 1000 names if he would like too.
    Im not sure if this will slow down the call or if its even possible, do you know if theres some limits to how many variables you can post in php 5?
    See more | Go to post

    Leave a comment:


  • Gozil
    started a topic pass javascript arrays in php POST method
    in PHP

    pass javascript arrays in php POST method

    Is there some smart way I can pass arrays in POST variables without exceeding some kind of POST limit? Let's say Im going to pass around 100 names from one page to another using javascript, I've heard that serialize works in php but im not sure why this would be better then just to use some kind of separator like this:

    Dennis;Daniel;J ohan;

    and then use explode($_POST['name'],";").

    also is there...
    See more | Go to post

  • Gozil
    replied to htaccess redirect + rewrite
    But isn't there a way to redirect them from the .htaccess file at once?
    See more | Go to post

    Leave a comment:


  • Gozil
    started a topic htaccess redirect + rewrite

    htaccess redirect + rewrite

    hello,
    I have been looking for a solution to redirect the users to the correct urlrewrite page but I cant come up with anything thats working.

    This is how I rewrite it now:[code=mod_rewrit e]
    RewriteRule ^(search)/(.*)$ search.php?id=$ 2 [L][/code]

    so basically the user could search like this:
    search/something

    the problem is that I need to redirect them from search.php?id=s omething to...
    See more | Go to post
    Last edited by pbmods; Nov 16 '08, 04:44 PM. Reason: Added CODE tags.

  • Gozil
    replied to tween image to the middle with glow
    I also checked the source and found that script but I thought It was very slow for bigger images, I will see if I can find something thats more suitable for my project.

    btw here is the script:
    http://www.cabel.name/2008/02/fancyzoom-10.html
    See more | Go to post

    Leave a comment:


  • Gozil
    replied to css float left and linebreak
    yes thats correct, I was was looking for something like clear: left.
    thanks for helping!

    PS:
    I thought my image was quite informative :)
    See more | Go to post

    Leave a comment:


  • Gozil
    started a topic css float left and linebreak

    css float left and linebreak

    Hey,
    Is it possible to change line on a float object?
    For example let say I have one <b> tag, one <p> tag and one <img> tag:
    I want the <img> to have float right and the <b> to have float left then I want the <p> to have float none so it will go around the image.
    However if I have float left on the <b> tag the <p> will stay on the same line as <b> and the only way I...
    See more | Go to post

  • Gozil
    started a topic tween image to the middle with glow

    tween image to the middle with glow

    Hey,
    Is there some javascript framwork that will let me center an image (with a tween) and at the same time give me a glow effect?

    Examples:
    http://www.apple.com/trailers/sony_p.../angelsdemons/ (click the image at the left)
    http://www.sbliss.com/ (click the images at the bottom left)
    http://www.insideria.com/2008/11/gre...aining-at.html (click on the image in the post)

    any advice would be...
    See more | Go to post

  • Gozil
    replied to localhost and CHMOD
    luckily actionscript 3 is able to enable "test upload" so instead of actually uploading it you just simulate the upload.

    If someone else is looking for a solution you can read this.
    See more | Go to post
    Last edited by numberwhun; Oct 9 '08, 04:36 PM. Reason: Fixed URL linking

    Leave a comment:


  • Gozil
    replied to localhost and CHMOD
    So if I want to play around with uploading scripts I have to do it on the web?
    See more | Go to post

    Leave a comment:


  • Gozil
    started a topic localhost and CHMOD

    localhost and CHMOD

    Hello,
    Im working on vista on both my home computer and at work and I got a localhost om both machines, the problem with this is that I can't CHMOD my folders for file uploading. Is there some trick to be able to upload the files on your local machine? I tried to change permission on "everyone" but that didn't solve anything.

    I also tried to search on google for a solution but couldn't find anything useful.
    See more | Go to post

  • Gozil
    replied to mysql and php, multidimensional result
    in PHP
    Thanks a lot Atli, your example worked good :)

    Although Is it possible to get the comments in the comment array, let me show you what I mean:
    $arr['comments'][0] // this will output "array" right now, to get the comment I have to type:
    $arr['comments'][0][0] // heres the comment.

    This would somehow be easier to work with for this purpose:
    $arr['comments'][0] // output comment.
    ...
    See more | Go to post

    Leave a comment:


  • Gozil
    replied to mysql and php, multidimensional result
    in PHP
    Thanks for the reply Atli, I will remove the single quotes around the int value.

    However this is the part thats a bit messed up:
    [PHP]
    $arr[] = $row;
    ....
    while($innerRow = $innerResult->fetch_assoc( )) {
    $arr[]['comment'][] = $innerRow;
    }[/PHP]

    I want to select the latest array value and insert an array called "comment".
    Im unsure if $arr[]...
    See more | Go to post

    Leave a comment:


  • Gozil
    started a topic mysql and php, multidimensional result
    in PHP

    mysql and php, multidimensional result

    Hello everyone,
    I have a bit of a problem here, lets me explain the database part first:
    I want to select pictures from the database and each picture is connected to multi comments.

    normally I would do this with a foreach loop and then a foreach loop for each comment in each picture like this:
    [PHP]$pic = new pictureClass();
    foreach($pic->getPictures( ) as $row) {
    echo $row['name'];
    ...
    See more | Go to post

  • Gozil
    replied to table relations and join
    Okay I guess I have to stick with it then :)
    See more | Go to post

    Leave a comment:


  • Gozil
    replied to table relations and join
    Wont multiple queries slow down the process of getting the data or is it the only way to do it?...
    See more | Go to post

    Leave a comment:


  • Gozil
    replied to table relations and join
    Yeah thats the way Im working right now but I thought I could do it all in one query and still get all the comments for each topic in a sub object so I could loop them inside the topic loop.
    See more | Go to post

    Leave a comment:


  • Gozil
    started a topic table relations and join

    table relations and join

    Hi,
    I got two questions thats been bugging me but I start with the first one as its quite much to explain.
    I'm trying to create a LEFT JOIN on two tables and then output everything, I have no problems getting the information but once I want to output it I get a problem.
    Lets say I select a topic and then do a LEFT JOIN on comments I now output it in php like this:
    [PHP]$topics = new topicBinding();
    foreach($topics->getTopics()...
    See more | Go to post
No activity results to display
Show More
Working...