It would be to check all the elements in a mysql text field.
e.g. the id's would be in the field as
123456
654321
135791
etc
There could be no numbers in the field, or there could be a hundred. I need the code to search through each of these numbers and if any of the articles printed in the...
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...
currently theres a date field, its set as a varchar and contains the date stamp '484095600' which should be '02/05/1985'
the date is entered into the db using the code
$day = $_POST['day'];
$month = $_POST['month'];
$year = $_POST['year'];
$date = strtotime($year."-".$month."-".$day);
then...
OK I've got something putting a timestamp in my db but now on output I get
Warning: date(): Windows does not support dates prior to midnight (00:00:00), January 1, 1970 in C:\sites\blog\test.php on line 24
even though the year I put in was 1985!
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
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.