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...
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...
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...
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...
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...
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...
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...
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...
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"...
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...
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...
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...
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...
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...
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...
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...
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__...
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.