Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: maslett
  • Content: Threads
  • Order by date
  1. maslett

    Creating an array from an SQL table description

    Hi, I'm trying to create an array from an SQL table description. When I run this: $res = mysql_query("DESCRIBE $tablename"); while($row = mysql_fetch_array($res)) { echo "{$row['Field']} - {$row['Type']}<br>"; } I get: name - varchar(20) age - int(3) ...I'd like to get the results...
  2. maslett

    Will more RAM help my database server?

    Hi, I have inherited an apache/mysql server at work. Every morning my colleagues complain about the speed of the database - looking at the sql process list there are usually about 8 SELECTS running, each using multiple tables one of which contains over 2.5 million records. The thing grinds...
  3. maslett

    Long complex string not being contained in a div container.

    Hi, I'm having a problem with long strings not being contained in a div container. The strings are computer generated and contain all manner of quotes and slashes so I don't want to go down the php route (I've tried). I've noticed the 'code' TGML tags on this site handle it correctly and they...
  4. maslett

    Keeping long complex strings contained in a div

    Hi, I'm trying to keep a long string contained in a div - the problem is I'm not defining the string and it may contain all types of quotes and other control characters (the string is computer generated) Here's an example...
  5. maslett

    Changing Turkish Vista to English

    Hi, A friend has given me their laptop to fix a problem but the language is set to Turkish. It's running Vista Home Premium and I don't have another Vista machine to figure out what to do. Could someone please talk me through it using steps like 'the world icon with a blue square, the 2nd tab...
  6. maslett

    Embedded PHP not working

    Hi. After years of laboriously updating the html on my website I decided to make it database driven (using mysql). It works well but I can't get embedded php to work. I have a database entry that contains this... <a href="geo.php?map=found">Found</a> (23)<br> <a...
  7. maslett

    Pulling hair out Internet Explorer CSS problem

    Hi, I've been regularly checking my site out in both Explorer and Firefox and everything was fine till today when IE started playing up. My menu is showing as a list and some of my css isn't rendering correctly. I'm ready to throw the bloddy computer out the window! Here's the site...
  8. maslett

    Apache will not serve .wml files

    Hi, I'm trying to get my apache server (Apache/2.0.55 (Ubuntu) PHP/5.1.2) to serve .wml files. When I type in the url the browser (both FF & IE) says it's an unknown file type and asks if I want to download the file. After a bit of research I came across this advice: Add these lines to the...
  9. maslett

    SESSION values not being passed (PHP 5.1.2)

    Hi, I'm having major problems getting $_SESSION variables to work on my web server. They don't keep their values. I've written some simple scripts to show the problem. Script1 - sets the session variable <php? session_start(); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"...
  10. maslett

    Internet Explorer won't connect - Firefox does???

    Hi, As of yesterday my copy of Internet Explorer 7 will not connect to the internet - yet Firefox does. I connect using an Ethernet cable to a Belkin router. I ran the IE network diagnostics and got this: Network location detection info Using home Internet connection Network adapter...
  11. maslett

    2nd xp laptop can't write to Samba share

    Greetings, I have two laptops running XP pro, both with same username & passwords. One of the laptops has no problems with my file server (Samba/Mandriva) but the other one can't even read it. Both laptops have ZoneAlarm running - if I close down ZA on the 'dodgy' laptop I can see the Samba...
  12. maslett

    perl relocation error (Mandrake Linux)

    Hi, when I try to run config programs such as drakconf (Mandrake 10.0) I get the following error: /usr/bin/perl: relocation error: /usr/lib/libDrakX/auto/c/stuff/stuff.so: undefined symbol: Perl_Gthr_key_ptr I've looked on google but can't any usefull info. Any help greatly appreciated...
  13. maslett

    perl relocation error

    Hi, when I try to run config programs such as drakconf (Mandrake 10.0) I get the following error: /usr/bin/perl: relocation error: /usr/lib/libDrakX/auto/c/stuff/stuff.so: undefined symbol: Perl_Gthr_key_ptr I've looked on google but can't any usefull info. Any help greatly appreciated...
  14. maslett

    Network shares problem + have I been hacked???

    I have 3 laptops wifi'd to a router: Laptop1 - XP Pro Laptop2 - XP Pro Laptop3 - Win2000Pro Each laptop has network shares which work as follows: Laptop1 can see all shares on Laptop2 and Laptop3 (good) Laptop2 can see shares on Laptop3 but not on Laptop1 (bad) Laptop3 can see all shares on...
  15. maslett

    NetBIOS over TCP/IP won't start????

    Hi - I have 2 laptops, both running XP Pro & both connected wirelessly to a Belkin router. I am having a problem on one of the laptops - it can't see any network shares. I have enabled NetBIOS over TCP/IP in the WINS settings (and rebooted several times) yet when I do an ipconfig /all I get...
  16. maslett

    forms and href problem

    Hi, i have a website that passes data between scripts using both links (ie href=script.pl?data=yay&etc=etc) and forms (using the post method). The problem is I want to pass some private data using a link - I could use a form (method=post) - but I really *want* to use a link. I have tried...
  17. maslett

    HTML link nor working in email

    Hi, I'm trying to send an email with a link in it. I searched the forum and found out I needed to put a content type line in after the subject. I have done this but the content type line is just printed in the mail. Here's the code: sub setup_email { $msgtext =<<__STOP_OF_MESSAGE__...
  18. maslett

    Inserting an url encoded string

    Hi, I have an URL encoded string such as: line++++1%0D%0A%0D%0Aline+2%0D%0A%0D%0Aline+3 that equates to line 1 line 2 line 3 What I need to do is write the string to mysql but *also* keep the formatting as I have to display the string on a web page at a later date. I'm stumped...
  19. maslett

    Formatting url encoded string back to html

    Hi all, great forum btw. I have a textarea input box - when I fill it in as, say: line 1 line 2 line 3 my perl script receives it as an url encoded string such as line+1%0D%0A%0D%0Aline+2%0D%0A%0D%0Aline+3 This is fine but I need to write it as one record into a mysql database and keep...
  20. maslett

    IIS5.1 setup to run Perl is not working properly.

    Hi, I'm trying to set up IIS 5.1 (in XP Pro) to run Perl scripts locally. When I try to run the script from IE a dos prompt flashes up briefly - in it I can just see the words 'Content-type: text/html' before it disappears. I have created a virtual cgi-bin directory in IIS - settings are as...

Part and Inventory Search

Back
Top