I've an XML file where I've "'" char. I want to modify in all file the
"&apos" by "'". it's there any way to do it before parsing the XML file ?
Bob 6 1268
Bob Bedford wrote: I've an XML file where I've "'" char. I want to modify in all file the "&apos" by "'". it's there any way to do it before parsing the XML file ?
Why do you want to do that? The various XML parsing PHP extensions
will transparently handle that for you anyway ...
--
Hartmut Holzgraefe, Senior Support Engineer .
MySQL AB, www.mysql.com
Are you MySQL certified? www.mysql.com/certification
"Hartmut Holzgraefe" <ha*****@mysql.com> a écrit dans le message de news:
cs**********@online.de... Bob Bedford wrote: I've an XML file where I've "'" char. I want to modify in all file the "&apos" by "'". it's there any way to do it before parsing the XML file ?
Why do you want to do that? The various XML parsing PHP extensions will transparently handle that for you anyway ...
-- Hartmut Holzgraefe, Senior Support Engineer . MySQL AB, www.mysql.com
Are you MySQL certified? www.mysql.com/certification
Probably I didn't get the right extension, but when trying to get
attributes, the parser separate my text in 3
text: xxxxx'yyy
output:
xxxxx
'
yyy
Anyway I want to save such string in a Mysql table, so I've to care about,
as the insert statement is like insert.....,'xxxxx'yyy',
I've removed the ' with ereg_replace, but I'd like to get such character in
Mysql table, but don't know how.
Bob
Bob Bedford wrote: Probably I didn't get the right extension, but when trying to get attributes, the parser separate my text in 3 text: xxxxx'yyy output: xxxxx ' yyy
This is something you always have to be aware of:
The parser may split character data into several chunks
and it is your responsibility to join them together if
needed.
Anyway I want to save such string in a Mysql table, so I've to care about, as the insert statement is like insert.....,'xxxxx'yyy', I've removed the ' with ereg_replace, but I'd like to get such character in Mysql table, but don't know how. http://php.net/mysql_real_escape_string
--
Hartmut Holzgraefe, Senior Support Engineer .
MySQL AB, www.mysql.com
Are you MySQL certified? www.mysql.com/certification
> http://php.net/mysql_real_escape_string
Thanks for your asnwer.
I've seen you are senior support Enginner for mysql, you probably may help
for a question that wasn't answered. (very short)
I've a page where I get the result of a query. Each result points to a page
where there is the detail of the record. I'd like to add "previous" and
"next"buttons. The only way I've found is to put the results in an array,
then on any page, the array will tell me the next and previous record. It's
there a better way using mysql ?
Bob
On 2005-01-19, Bob Bedford <be******@YouKnowWhatToDoHerehotmail.com> wrote: I've a page where I get the result of a query. Each result points to a page where there is the detail of the record. I'd like to add "previous" and "next"buttons. The only way I've found is to put the results in an array, then on any page, the array will tell me the next and previous record. It's there a better way using mysql ?
Offsets:
SELECT [...] FROM [table] LIMIT 20, 1;
<http://dev.mysql.com/doc/mysql/en/SELECT.html>
--
Cheers,
- Jacob Atzen
"Jacob Atzen" <ja***@aub.dk> a écrit dans le message de news: sl******************@morpheus.aub.dk... On 2005-01-19, Bob Bedford <be******@YouKnowWhatToDoHerehotmail.com> wrote: I've a page where I get the result of a query. Each result points to a page where there is the detail of the record. I'd like to add "previous" and "next"buttons. The only way I've found is to put the results in an array, then on any page, the array will tell me the next and previous record. It's there a better way using mysql ?
Offsets:
SELECT [...] FROM [table] LIMIT 20, 1;
<http://dev.mysql.com/doc/mysql/en/SELECT.html>
List.php (with limit 20):
<a href="detail.php?article=2>detail 2</a>
<a href="detail.php?article=3>detail 3</a>
<a href="detail.php?article=4>detail 4</a>
.....
Ok, once I click on article detail 3, how to make previous or next from
there since I'm on an other page and I don't run the query every time ? From
detail.php, it wouldn't be possible to go to 2 or 4 without coming back to
list.php.
Bob This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: pmud |
last post by:
Hi
I have a website (ASP.NET project using C# ) which is already put up on the
server. I need to make some modification to some web pages.So the project
files were copied to the a different server...
|
by: Mark J. McGinty |
last post by:
Greets,
Part of the content of one of our web pages uses wingdings and Chr(239)
through Chr(242) (which are little arrow outlines, though that's not really
important.)
It worked just fine in...
|
by: dutch disCo |
last post by:
Hi,
I'm trying to use GET method to pass variables through my script files.
Unfortunately, when a special char (&, ?, +) is being posted the
variable gets trimmed in a very strange way. I'm...
|
by: baumann.Pan |
last post by:
when define
char *p = " can not modify";
p ='b' ;is not allowed,
but if you declare p as
char p = "can modify";
p = 'b'; is ok?
why?
|
by: William Stacey [MVP] |
last post by:
Had a method that got some string info from mp3 tags in N files and
serializes this class and deserializes at other side. Works ok except
sometimes get chars that choke the XmlSerializer. After...
|
by: A. Farber |
last post by:
Hello,
I'm programming a web application and for that I'm trying
to extend the standard C string functions, so that they can
handle the application/x-www-form-urlencoded format
(which encodes...
|
by: alivip |
last post by:
I write code to get most frequent words in the file
I won't to implement bigram probability by modifying the code to do the following:
How can I get every Token (word) and ...
|
by: Grzegorz Danowski |
last post by:
Hello,
I have made few reports in rdlc technology. They look and print fine, but if
I export any report to pdf file I have some problems with polish specific
chars:
a. if I open pdf in...
|
by: s0suk3 |
last post by:
Hi everyone,
I've heard that a 'str' object is immutable. But is there *any* way to
modify a string's internal value?
Thanks,
Sebastian
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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...
|
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,...
|
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...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |