User Profile

Collapse

Profile Sidebar

Collapse
JnrJnr
JnrJnr
Last Activity: Dec 11 '12, 08:38 AM
Joined: Oct 9 '09
Location: South Africa
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • JnrJnr
    replied to How to set three divs side by side
    Hi michaeldebruin, thanks for the response. It did not work by creating a wrapper and placing the three divs side by side. Also I did try and put float left on the middle div but then the div loses its "auto margins" and wont stretch with the window when resizing the browser.

    Any more ideas?

    here is a small visible example-
    the right div must be inline with the rest
    See more | Go to post

    Leave a comment:


  • JnrJnr
    started a topic How to set three divs side by side

    How to set three divs side by side

    Hi all, could someone please help me. I am trying to put three divs side by side but the middle div has to have a margin-left:auto and margin-right:auto to stretch with the browser window.
    I would like to have the right div look the same as the left div (all divs should be in one straight line). At the moment the right div gets pushed down bellow the middle div.
    HTML
    Code:
    <div class="left">left</div>
    ...
    See more | Go to post

  • The none-friendly URLs are all static and hard coded into html anchors. The same goes for javascript.
    I navigate to products in flash menu either with an xml file where the URLs get put in, or I have even tried to make the forms action the none-seo friendly url using javascript.
    See more | Go to post

    Leave a comment:


  • Hey, what do you mean "all non-seo-friendly urls in the client-HTML must be caused by your HTML-creating code" ?
    Do you mean it is only possible to do it using html?
    See more | Go to post

    Leave a comment:


  • using .htaccess file to get seo friendly URLs using JavaScript

    Hi I have a website with a product page that dynamically creates the page with all its products from a database.
    So I use the .htaccess file to create search engine friendly URLs, for instance: www.festfiresecurity.co/Products.php?val=1
    to
    Clean-Gas-Systems.php
    like this:
    RewriteRule ^Clean-Gas-Systems /Products.php?va l=1

    What I do:
    I have a html menu (for none-javascript users) built with html anchors...
    See more | Go to post

  • JnrJnr
    started a topic PHP another mysql_insert_id() not working
    in PHP

    PHP another mysql_insert_id() not working

    Hi,
    I have one database connection
    I am using an insert statement
    The insert statement inserts successfully
    Right after the insert I want the ID of the newest row
    My database table has a unique ID and set to auto inc
    mysql workbench version is 5.2.34
    Code:
    $save = mysqli_query($connection,"insert into table (message, title, newdate) values ('$Message', '$itle', CURDATE())");
    	$newid =  mysql_insert_id($connection);echo('val
    ...
    See more | Go to post

  • JnrJnr
    started a topic PHP mysql query is not executing
    in PHP

    PHP mysql query is not executing

    All other mysql queries execute except this one:
    Code:
    $setcurrent = mysqli_query("UPDATE blog SET currentblog = (id = '55')") or die('Error, failed to set current blog');
    Can anyone help me with this?
    See more | Go to post

  • JnrJnr
    started a topic HTML <td> rowspan at the end of a table

    HTML <td> rowspan at the end of a table

    Hi, I have a table that has, say 3 rows and two columns in each. I need to create a rowspan for the third column on the last <td>.
    Is it possible to create a rowspan for an HTML table when rowspan is created at the last <td> in the table?
    Like this:
    Code:
    <table width="100" border="1" cellspacing="3">
      <tr>
        <td>dd</td>
        <td>dd</td>
    ...
    See more | Go to post

  • list tags in table data tags overflowing the table

    Hello all.
    I have a table with a border of 1 and some <li> tags in it but the dots of the list tags are overflowing the table's border only in FF. Is there a way to fix this or a better way of doing this?


    Code:
    <table width="700" border="1">
      <tr>
        <td class="head" align="center"><strong><label>About us</label></strong></td>
    ...
    See more | Go to post

  • JnrJnr
    replied to "Check PHP $_SESSION empty" problem
    in PHP
    I use to overlook that when developing on local server and seemed to work. Its my first time I work on a hosted server and Im pretty much still a junior dev at this. Thanks
    See more | Go to post

    Leave a comment:


  • JnrJnr
    replied to "Check PHP $_SESSION empty" problem
    in PHP
    SOLVED!

    Ok it looks like I got it working. Seems like you have to put session_start() right at the beginning of your code before any code is sent.
    See more | Go to post

    Leave a comment:


  • JnrJnr
    replied to "Check PHP $_SESSION empty" problem
    in PHP
    Hey Dormilich, I put php_flag display_errors on and this is what I get:
    Warning: session_start() : Cannot send session cookie - headers already sent by (output started at /usr/www/users/metalukszb/test_session.ph p:9) in /usr/www/users/metalukszb/test_session.ph p on line 10
    It seems that metalukszb is part of my database name.
    Any ideas?
    See more | Go to post

    Leave a comment:


  • JnrJnr
    replied to "Check PHP $_SESSION empty" problem
    in PHP
    Thanks Dormilich. I will see what I can get out of them
    See more | Go to post

    Leave a comment:


  • JnrJnr
    replied to "Check PHP $_SESSION empty" problem
    in PHP
    Ok if I put it inside the if and after the
    require_once("c ounter.php"); (after the $_session gets its value) I get array(1) { ["counter"]=> int(1) }
    ...thats just proof that the session variable has a value and therefore should not run the if statement, but yet it still does...?
    See more | Go to post

    Leave a comment:


  • JnrJnr
    replied to "Check PHP $_SESSION empty" problem
    in PHP
    When adding var_dump($_SESS ION); before and after if statement I get
    array(0) { }
    Any ideas?

    When adding it to local server I get
    array(1) { ["counter"]=> int(1) }
    See more | Go to post

    Leave a comment:


  • JnrJnr
    replied to "Check PHP $_SESSION empty" problem
    in PHP
    Thanks for reply but tried that and still no avail...
    Do you think the problem could be with Hetzner's web hosting servers?
    See more | Go to post

    Leave a comment:


  • JnrJnr
    started a topic "Check PHP $_SESSION empty" problem
    in PHP

    "Check PHP $_SESSION empty" problem

    Hi all could someone please explain to me whats wrong with this code?...(see image for code or check bellow)

    When I run the script it should check if the session variable is empty, if it is then give it a value.

    The next time the script runs (in the same page session),
    then the session variable will ofcourse not be empty meaning that the if statement should not run.
    The problem is that is always runs no...
    See more | Go to post

  • JnrJnr
    replied to CSS margin problems in Firefox vs IE
    That is strange. I am using IE 9. My document type is
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    I coppied the code I posted and ran the page in both IE and FF and this is what it looks like - see attached image.
    When I add position absolute to the table then the table's margins are the same as in FF making them look...
    See more | Go to post

    Leave a comment:


  • JnrJnr
    replied to CSS margin problems in Firefox vs IE
    I've noticed. Sad to be honest.
    Ok the markup is pretty straight forward...

    HTML
    Code:
    <div id="container">
    <h2>Hello Heading</h2>
    <table width="200" style="margin:50px 50px">
    <tr><td></td></tr>
    </table>
    </div>
    CSS
    Code:
    #container
    {
      width:300px;
      height:500px;
      float:left;
    ...
    See more | Go to post

    Leave a comment:


  • JnrJnr
    replied to CSS margin problems in Firefox vs IE
    Ok, well I dont know if this is good practise but it seems like absolute positioning works. When I apply absolute position to the table then the table's margin top is set relative to the heading and not the div.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...