Jump to content

sinus

Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Contact Methods

  • Website URL
    http://www.creative8media.com

Profile Information

  • Gender
    Not Telling

sinus's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. what you could do is specify the dimensions of the div in css and set the images you are using as backgound images to the div. This should you remove the extra padding. So you would end up using something like this #name{ width:200px; height: 10px; background-image:url('bg.gif'); } By specifying the dimension of the div so that they are the same as the images you will get no padding from the images if viewed in IE or FF. What this does mean is that you will have a div with no content in it. You seem to have alot of code which could be removed by integrating the divs you are using as borders at the top and bottom into the header, footer div and the left and right border divs into the content div. So the only code you would have is (plus some css to make it all work): wrapper div header div content div footer div Put without seeing a full example of you layout I cannot suggest anything else.
  2. Hi Mike Thanks for your help it worked exactly as I needed it to. Thanks alot.
  3. Having looked at your site I believe the image you are having issues with this the horiztonal line thats near the top and should be at the bottom. You would actually be better using css to style the complete div rather than images #padded_content {border: 5px solid #FFFFFF; background-color: #111111; padding-top: 10px; padding-left:5px; padding-right: 5px; padding-bottom: 10px; width: 500px; height: 500px;} <!-- the only code you would need in the html would be --> <div id="padded_content"> <h1>Location</h1> </div> <!-- The bottom div with the image for the base of content area is not needed. --> The css above is not the correct dimensions and colours for your site,you can play around with it and add other style features. But it will give you a 500 x 500 box with a black (change the colour to suit) content area and white border with a little padding at the side to keep the text off the border. You can play around with it until you get the dimensions and colours you need. Also you will need to test with different browsers as IE and firefox do not handle some css in the same way.
  4. I am using the script below to create new folders projectID = 1; $oldumask = umask(0); $mypath = "public/projects/$projectID"; mkdir($mypath, 0777, TRUE); umask($oldmask); The the folder is not being created in the projects folder and I get no error messages. I have chmod the projects folder to 0777 so I should be able to write to it. The really only thing I am doing strange is that the script trying to create the new folders is located in public/content_management/. The public folder is the one that my ISP create and everything in there is access on the web. Any help would be great.
  5. Not solved but have work around I have found that this will display the database http://www.mydomain.com/myPMAdir/db_structure.php?db=xx_xxxx_xxx not ideal but it will work ok
  6. Hi I installed phpmyadmin version 2.11.2.1 a few months and everything appeared ok except that it said Your PHP MySQL library version 3.23.54 differs from your MySQL server version 5.0.27. This may cause unpredictable behavior. Everything still appeared to be ok I was able to create my database and could query and read/write to it. Now when I log into phpmyadmin it says that there are no databases. I no that the database still exists as the scripts on the site to function and retrieve the data from it and I can see it on my hosting . Can any one shed some light on what could cause this. Any help is greatly appreciated.
  7. Hello Thankyou for the replies. So this // select people from first table who are part of group 1 $query= "SELECT personID FROM people WHERE groupID = 1"; $result = mysql_query($query); $numrows = mysql_num_rows($result); while ($row = mysql_fetch_array($result) { $personid = $row["personID"]; // add people to second table who are part of group 1 $query2 = "INSERT INTO people2 (peopleID, groupID) VALUES ('$personid', '1')"; $queryaddperson = mysql_query($query2) or die(mysql_error()); } and this would do the exact same thing // select people from first table who are part of group 1 $query= "SELECT personID FROM people WHERE groupID = 1"; $result = mysql_query($query); $personid = array(); while ($row = mysql_fetch_array($result) { array_push($personid, $row['personID']; } // add people to second table who are part of group 1 foreach($personid as $value){ $query2 = "INSERT INTO people2 (peopleID, groupID) VALUES ('$value', '1')"; $queryaddperson = mysql_query($query2) or die(mysql_error()); }
  8. I have code that lists a number of people from a data and stores it array // select people from first table who are part of group 1 $query= "SELECT personID FROM people WHERE groupID = 1"; $result = mysql_query($query); $numrows = mysql_num_rows($result); while ($row = mysql_fetch_array($result) { $personid = $row["personID"]; } The problem is I do not know how many records it will return. I then need to enter all these people into another table. // add people to second table who are part of group 1 $people = 0; while ($people != $numrows) { $query2 = "INSERT INTO people2 (peopleID, groupID) VALUES ('$personid', '1')"; $queryaddperson = mysql_query($query2) or die(mysql_error()); $people++; } Rather than add every single person who is part of group 1 it just keeps adding the first person over and over again to the people2 table. Any help with this would be great. Thanks Sinus
×
×
  • 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.