473,471 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

PHPMyAdmin adding backslashes

Hi,

I've recently started looking at PHP and MY SQL within Dreamweaver MX.

I'm usin PHPMyAdmin and put some example code from my tutorial book into it
and pressed "Go".

However, the code came out as it does below with a load of backslashes
aadded. As early as line 3 the code should read default '0' but instead
reads default \'0\'

Anybody tel me why this is happening?

Thanks
Graham

CREATE TABLE bookings (
ID tinyint(11) NOT NULL auto_increment,
roomID tinyint(11) NOT NULL default \'0\',
client ID tinyint(11) NOT NULL default \\\'0\\\',
startDate date NOT NULL default \\\'0000-00-00\\\\\\\',
endDate date NOT NULL default \\\'0000-00-00\\\',
adults int(11) NOT NULL default \\\'1\\\',
children int(11) NOT NULL default \\\'0\\\',
roomType varchar(30) NOT NULL default \\\'\\\',
roomOptions int(8) NOT NULL default \\\\\\\\\\\\\\\'0\\\\\\\\\\\\\\\',
networkConnection int(8) NOT NULL default \\\\\\\\\\\\\\\'0\\\\\\\\\\\\\\\',
PC int(8) NOT NULL default \\\\\\\\\\\\\\\'0\\\\\\\\\\\\\\\',
requirements varchar(250) NOT NULL default \\\\\\\\\\\\\\\'\\\\\\\\\\\\\\\',
PRIMARY KEY (ID)
) TYPE=MyISAM COMMENT=\\\\\\\\\\\\\\\'Room Booking Table\\\\\\\\\\\\\\\';
Jul 17 '05 #1
3 3154

"Graham Thomson" <gr************@hotmail.com> schreef in bericht
news:pC****************@news-binary.blueyonder.co.uk...
Hi,

I've recently started looking at PHP and MY SQL within Dreamweaver MX.

I'm usin PHPMyAdmin and put some example code from my tutorial book into it and pressed "Go".

However, the code came out as it does below with a load of backslashes
aadded. As early as line 3 the code should read default '0' but instead
reads default \'0\'

Anybody tel me why this is happening?

Thanks
Graham

CREATE TABLE bookings (
ID tinyint(11) NOT NULL auto_increment,
roomID tinyint(11) NOT NULL default \'0\',
client ID tinyint(11) NOT NULL default \\\'0\\\',
startDate date NOT NULL default \\\'0000-00-00\\\\\\\',
endDate date NOT NULL default \\\'0000-00-00\\\',
adults int(11) NOT NULL default \\\'1\\\',
children int(11) NOT NULL default \\\'0\\\',
roomType varchar(30) NOT NULL default \\\'\\\',
roomOptions int(8) NOT NULL default \\\\\\\\\\\\\\\'0\\\\\\\\\\\\\\\',
networkConnection int(8) NOT NULL default \\\\\\\\\\\\\\\'0\\\\\\\\\\\\\\\', PC int(8) NOT NULL default \\\\\\\\\\\\\\\'0\\\\\\\\\\\\\\\',
requirements varchar(250) NOT NULL default \\\\\\\\\\\\\\\'\\\\\\\\\\\\\\\', PRIMARY KEY (ID)
) TYPE=MyISAM COMMENT=\\\\\\\\\\\\\\\'Room Booking Table\\\\\\\\\\\\\\\';

Have a look at the magic_quotes option in php.ini .... this is causing the
backslashes...

Marcel
Jul 17 '05 #2
Sorry, I don't understand where do I find this magic_quotes in php.ini?

Thanks
Graham
"Marcel" <ne*********@hotentottententententoonstellingen.nl > wrote in
message news:3f**********************@news.versatel.net...

"Graham Thomson" <gr************@hotmail.com> schreef in bericht
news:pC****************@news-binary.blueyonder.co.uk...
Hi,

I've recently started looking at PHP and MY SQL within Dreamweaver MX.

I'm usin PHPMyAdmin and put some example code from my tutorial book into

it
and pressed "Go".

However, the code came out as it does below with a load of backslashes
aadded. As early as line 3 the code should read default '0' but instead
reads default \'0\'

Anybody tel me why this is happening?

Thanks
Graham

CREATE TABLE bookings (
ID tinyint(11) NOT NULL auto_increment,
roomID tinyint(11) NOT NULL default \'0\',
client ID tinyint(11) NOT NULL default \\\'0\\\',
startDate date NOT NULL default \\\'0000-00-00\\\\\\\',
endDate date NOT NULL default \\\'0000-00-00\\\',
adults int(11) NOT NULL default \\\'1\\\',
children int(11) NOT NULL default \\\'0\\\',
roomType varchar(30) NOT NULL default \\\'\\\',
roomOptions int(8) NOT NULL default \\\\\\\\\\\\\\\'0\\\\\\\\\\\\\\\',
networkConnection int(8) NOT NULL default

\\\\\\\\\\\\\\\'0\\\\\\\\\\\\\\\',
PC int(8) NOT NULL default \\\\\\\\\\\\\\\'0\\\\\\\\\\\\\\\',
requirements varchar(250) NOT NULL default

\\\\\\\\\\\\\\\'\\\\\\\\\\\\\\\',
PRIMARY KEY (ID)
) TYPE=MyISAM COMMENT=\\\\\\\\\\\\\\\'Room Booking Table\\\\\\\\\\\\\\\';

Have a look at the magic_quotes option in php.ini .... this is causing the
backslashes...

Marcel

Jul 17 '05 #3
Hi,

I'm not sure what parameters to change in Magic Quotes - can you advise
please?

; Magic quotes
;

; Magic quotes for incoming GET/POST/Cookie data.
magic_quotes_gpc = on

; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(),
etc.
magic_quotes_runtime = Off

; Use Sybase-style magic quotes (escape ' with '' instead of \').
magic_quotes_sybase = off
"Marcel" <ne*********@hotentottententententoonstellingen.nl > wrote in
message news:3f**********************@news.versatel.net...

"Graham Thomson" <gr************@hotmail.com> schreef in bericht
news:pC****************@news-binary.blueyonder.co.uk...
Hi,

I've recently started looking at PHP and MY SQL within Dreamweaver MX.

I'm usin PHPMyAdmin and put some example code from my tutorial book into

it
and pressed "Go".

However, the code came out as it does below with a load of backslashes
aadded. As early as line 3 the code should read default '0' but instead
reads default \'0\'

Anybody tel me why this is happening?

Thanks
Graham

CREATE TABLE bookings (
ID tinyint(11) NOT NULL auto_increment,
roomID tinyint(11) NOT NULL default \'0\',
client ID tinyint(11) NOT NULL default \\\'0\\\',
startDate date NOT NULL default \\\'0000-00-00\\\\\\\',
endDate date NOT NULL default \\\'0000-00-00\\\',
adults int(11) NOT NULL default \\\'1\\\',
children int(11) NOT NULL default \\\'0\\\',
roomType varchar(30) NOT NULL default \\\'\\\',
roomOptions int(8) NOT NULL default \\\\\\\\\\\\\\\'0\\\\\\\\\\\\\\\',
networkConnection int(8) NOT NULL default

\\\\\\\\\\\\\\\'0\\\\\\\\\\\\\\\',
PC int(8) NOT NULL default \\\\\\\\\\\\\\\'0\\\\\\\\\\\\\\\',
requirements varchar(250) NOT NULL default

\\\\\\\\\\\\\\\'\\\\\\\\\\\\\\\',
PRIMARY KEY (ID)
) TYPE=MyISAM COMMENT=\\\\\\\\\\\\\\\'Room Booking Table\\\\\\\\\\\\\\\';

Have a look at the magic_quotes option in php.ini .... this is causing the
backslashes...

Marcel

Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Graham Thomson | last post by:
Hi, > > > > I've recently started looking at PHP and MY SQL within Dreamweaver MX. > > > > I'm usin PHPMyAdmin and put some example code from my tutorial book into it > > and pressed "Go". > >...
30
by: Darren Gates | last post by:
hi PHP users, Here's a Flash 7 version of phpMyAdmin: http://www.tufat.com/phpflashmyadmin.php Special features include: drag-and-drop interface for InnoDB table relationships, quick record...
7
by: Margaret MacDonald | last post by:
I've been going mad trying to figure out how to do this--it should be easy! Allow the user to enter '\_sometext\_', i.e., literal backslash, underscore, some text, literal backslash, underscore...
2
by: Daniel Mercier | last post by:
Hi, I'm new to mysql and just installed phpmyadmin. Here is the versions info: System Linux linlyne.spider.sense 2.4.22-1.2199.nptl #1 PHP Version 4.3.8
5
by: NewbieSupreme | last post by:
I installed Apache 2.0.58, tested it, got the "working" page. Installed MySQL 5.0.22, and didn't really see how to test that, but there is a mysql process running in the task manager. Ran through...
3
by: Susanne | last post by:
I have a server with my own domain and have created some users under htdocs/users/. I have installed phpMyAdmin under htdocs/. Everything works, but I can't open phpMyAdmin. I have made an alias in...
0
by: northernrave | last post by:
Hi, I am new to PHP and I can only understand small bits and pieces. I have ordered a dedicated server running on a linux operating system and I have just installed PHPmyadmin. When I tried to...
3
by: =?Utf-8?B?cmFuZHkxMjAw?= | last post by:
OpenFileDialog gives me the following, which I place in tbDevPath.Text: x:\\myVob\\mySolution\\mySolution.sln I really need this path to be single-backslashes, not double-backslashes, so I...
7
by: JohnF | last post by:
I have a function textag($expression){...} whose $expression argument is a string that can contain substrings like \alpha with one backslash or like a&b\\c&d with two backslashes. If I write...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.