I have a page that is taking values, seperated by a new line, in a database.
The values are id numbers for other articles in the db.
I have written code to take all the values in the db field and place them in an array.
The page has a list menu populated with every single article in the db...
I have a page to edit an article in a db.
When the article is initially added there is a multiple selection list box with records listed.
The user can select a number of records which is then submitted to the db with each record selected on a new line in a mediumtext field.
On the edit page I...
how can I put multiple functions into one parent function,
for example, if on my out put I normaly have:
<?= nl2br(ucfirst(striptags($sometext))) ?>
how can I define all those at the beginning of the page so I would only have to put something like:
<? textformat($sometext) ?>
Can anyone give me some links to good tutorials for making shopping carts using PHP.
Including such things as linking it to credit card payments and/or third party credit card processing companies etc..
I have a site that uses css for layout
I have the following css for a footer
#footer {
position: absolute;
width:650px;
bottom:0;
margin-bottom:0px;
height:35px;
text-align:center;
background-color:#FFFFFF;
vertical-align:bottom;
}
it works fine in ie and always stays at the bottom of...
can anyone tell me how I can take a date entered into a form as dd/mm/yyyy (in 1 text field with the slashes) and change it into yyyymmdd for mysql and also how to change back again
thanks
I have a site with a 2 column site, 1 column called #left-column where the nav goes and one larger called #content which is supposed to sit next to it.
However when I place a .clearer layer after the left column, the content column moves below it instead of sitting next to it.
anyone know how...
Can anyone tell me how I can change a date entered as day, month, year into a unix datestamp and vice versa?
and also how can I view the unix datestamp for the current date?
I have a problem with images that are uploaded through a content management system.
When the images are uploaded to the server they are set with a CHMOD 600 so I can't download them or change them, is this something to do with the server they are being uploaded to?
I have a scrip for uploading images that works fine locally, but seems to be having problems on my hosts server.
I get the error:
Warning: move_uploaded_file(/home/.sites/74/site318/web/uploaded_images/travel/20040311_fde51765.jpg): failed to open stream: Permission denied in...
I am using the strip tags function with a few allowed tags, but some are causing problems when the data is out-putted.
in particular when I allow <table> <tr> <td> <ul> and <li>
my code is
strip_tags($OnFeature["contmain"], '<a><strong><table><td><tr><li><ul>')
Me again
I'm just wondering how I can get PHP to ignore html tags on output from a db.
E.G.
say I'm outputting a news story from a db that has image source in tags embedded in the text but I don't want to show the images on the output page
Is there any way I can make PHP/MySQL recognise the fact that there are paragraphs in a text field without having the user put in <p></p> or <br> tags in to format it?
I have a site using a css for the layout
It is a centre aligned site using the following code:
#grey-column
{
width:760px;
min-height: 100%;/* for moz and others*/
margin-left: auto;
margin-right: auto;
background-color: #cccccc;
background-image:url(/site_images/bodyback3.jpg);
}
This...
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.