Jump to content

rtpmatt

Members
  • Posts

    41
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Male
  • Location
    mtz

rtpmatt's Achievements

Member

Member (2/5)

0

Reputation

  1. I am just wondering what the evaluation order of an if statement in PHP is, and if it stops evaluating if it passes or fails? thanks -matt
  2. I suppose i deserve that, i really don't do it much...and i suppose i should just do it by hand. Really though, every once in a while i have to add someone new, and i would just like to be able to say they can use a DB. That being said, learning how to do such a thing in linux wont hurt me, I do enjoy learning it the bit by bit, wish i knew it like i did win.
  3. someone gave me the tremendous mysql line: GRANT ALL ON friends_db.* TO my_friend IDENTIFIED BY 'a password'; a while back. I am wondering if there is an easy way to have this run every time i create a new user on my server? So that each time i create a user they get their own (and only their own) DB. Thanks -matt
  4. Yes, that seems to have worked...getting everything up and working was a pain in the ass, but it did work. thanks -matt
  5. Update: i am now trying to copy everything from /var/lib/mysql, will this be everything i need to get my DBs back?
  6. It seems that my MySQL server has died...or something, im really nut sure what to do to fix it (im not exactly a guru) when i try to start it with sudo /etc/init.d/mysql start i get this: Starting MySQL database server: mysqld. . . . . . . . . . . . . . ...failed or took more than 6s. Please take a look at the syslog. /usr/bin/mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)' Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists! [2]- Done sudo /etc/init.d/mysql start >/dev/null 2>&1 I don't ever really start it manually, it normally just starts when I restart, or if I REALLY need to I use webmin, but i wanted to give some output I really don't know what happened, or what I did, I havn't been using it for much other than some simple image hosting lately. I havn't added anything to the database in the last couple weeks. I'm not too worried i suppose, but I would REALLY like to be able to backup my databases. Is there any easy way i can copy them (ie: specifically what files can i copy etc.) My server could use a reinstall i suppose. Also if someone can direct me to where i can start looking for some help to get it working that would be nice. If i can get it working without reinstalling, that would be a lot easier for me. I am running the Ubuntu LAMP server v6.06 i believe thanks for any help -matt PS: Apache seems fine if you need to know
  7. I would like to really learn the CSS nuts and bolts, does anybody have a good book or webpage to start with?
  8. alright, sorry, my index.php is something like: <HTML> <HEAD> <link href="styles/style.css" rel="stylesheet" type="text/css"> </HEAD> <BODY> <div id="frame"> <div id="header"> <a href="index.php"><img src="images/logo.jpg" width="220" height="90"></a> </div> <div id="leftBody"> menu: <a href="index.php">home</a> <a href="main.php">main</a> </div> <div id="centerBody"> Welcome! Hope you enjoy the page! </div> <div id="rightBody"> *Some nice ads go here* </div> XXX </div> I have found that if i replace the XXX above with a ton of BR's it will bring the frame down, the problem is that I dont know the size of each page, so I won't know the correct amount to put there. my style.css is pretty much: #header { position: absolute; left: 20%; top: 10px; width: 750px; } #leftBody { position: absolute; left: 20%; width: 300px; top: 100px; } #centerBody { position: absolute; width: 350px; left: 37%; top: 100px; } #rightBody { position: absolute; left: 65%; top: 100px; } body { background-color: #FFFFFF; } #frame { background-color:#000000; width:800px; } hope that makes more sense, thanks for any help! -matt
  9. Iv been teaching myself CSS this week, and I have run into a small problem. My design currently has a background color defined in the body { background-color: #FFFFFF; } method, and I am trying to place another frame over the center with a different background color like so: #frame { background-color:#000000; width:800px; } then my is pretty much as so: <HTML> <BODY> <div id="frame"> ...my fancy page... </div> </BODY> </HTML> the problem is that my frame will not encompass any of the DIVs i have below it, it will ONLY stretch over stuff not inside of a DIV. Any ideas of how to make it stretch over (well, beneath really) everything in between the div declaring and the /div closing it? thanks for any help. -matt
  10. I think you might be looking for snoopy: http://sourceforge.net/projects/snoopy/ hope that helps. -matt
  11. well, thats very possible, i suppose how interactive you want it to be makes a big difference. I had to make a calendar type thing were people choose dates and what not, then they are approved based on criteria. i used the pear calendar thing, this one I believe: http://pear.php.net/package/Calendar took a little working with, i keep meaning to get around to posting my mods (making it decent classes and what not) but it not too hard to figure out. not sure what you programming skills are and what not though. if you need more help, say so, ill try to dig up what iv got. -matt PS: Thought Id let you know I made a table in my DB to include each username and a selection of dates (i also included a whenItWasCreated and a lastModified field, but thats just me.) Then you can easly see who has wants what when.
  12. finally go it set up, very nice thank you.
×
×
  • 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.