to wrap alternate paragraphs in tags
I need to mark up a lot of dialogues, which will be created on an ongoing basis. Every second paragraph will be spoken by alternate participants in the dialogue. The dialogues will always be like...
View Articleneed help file_get_contents("test.txt");....
i am using this to get data frm text file...... text file content. 345 in php $fh=file_get_contents("test.txt"); and it working fine. but here what i want. text file content. 345,567,789, in php...
View ArticleSending only one email rather than multiple from my script
Hi I have the script below that runs on a cron job every 1 minute. I have 2 scripts that sends email reminders. The other script sends a reminder email and a email on the time requested. This...
View ArticleRemoving double character
Hi all I have the following value $var = 'hello|goodbye|morning|evening'; and i'm doing some str_replace to remove certain words, for example $var = str_replace('goodbye', '', $var); which is all...
View ArticleConfirmation message in for each loop
Guys, How to display a confirmation message after each mail is sent so I could see the progress. Now I can see complete list when loop finishes. I would like to display a status when email is sent...
View ArticleEmail verification error
<section id="content"> <article> <div id="leftForm"> <h5>Login <span class="small">(case sensitive)</span></h5> <form...
View ArticleAdding text to multiple images
Hi Guys Adding text to an image is relatively easy but I need to add text to a number of images on the same page. Is the only way to add the text and save so that I can reload when I need to. The...
View Articlecode not executing - no error messages received
i have a myList.php which should list all products added to my favourites and compute the total price of products. here is the code <?php include 'navigation.php' ?>...
View Articlesetting picture height and width
i have the below code and want to know how to specify the height and width of the photo that is being displayed <div class="product_img"><a href=""><?= '<img...
View ArticleCreate html code from a php scriptand then scrap the code to a string...
Hi friends I use this php code in order to create a simple html table from my data $start = 0; $end = $howmanyItemsOnArray; $split = 2; print "<table><tr>"; for($i = $start; $i < $end;...
View ArticleTrouble with ASP to PHP - Please help!
Hello all, I'm having some difficult with an ASP to PHP conversion. The objective of this block of code is: The code will recognize that the user has picked a province from a previously coded drop...
View ArticleAdding HTML code to a string in the appropriate place.
Hello - I have a long string that may or may not contain a full web URL in it. I need to post/echo that string, and if there is a web URL in it, then I need to add: <a href="$url_string"...
View ArticleStoring user data in session
Hi Guys Working on a big multi-stage form. The form has multiple stages, each posting to the next. There is currently minimal validation - validation is done via a simple regex which as a...
View ArticleDesigning a PHP script/functionality with future and safety in mind
[I asked the exact same question on stackoverflow, but I like the people here better]I have a project i'm working on with a **very** weird request from my client, which I need some help with since i'm...
View ArticleCommunicating with a server?
I just finished up a PayPal IPN script for a website we're working on; however, when a user buys "points", we need to somehow get it to the game server (where they can buy in-game items with there new...
View Articlesubstr_count question
<?php print substr_count("5485345=34534","="); ?> it prints 1 instead of 7. How can i count what is before = ? Thanks very much in advance
View Articleif else statement
pulling my hair out here, please help. why am i getting a "maybe!" result no matter what my radio box selection is. i know the variable gets passed to this php succesfully, i tested it with "echo...
View ArticleAjax php cross domain
I have 2 sites on my machine, one is my development site and one is third party site. The third party site has a aspx file that returns information. I have been trying access this through Jquery...
View Articleshort url with mod rewrite
Hi. I am trying to make my url look more attractive. So far i have managed myweb.com/job.php?ref=333 to make look myweb.com/job?ref=333 How can i shorten it further by making myweb.com/job/333 I...
View ArticleHow to output an array into email messages containing concatenated data?
I have an array with data that looks like this: 01 | organization_1 | email_A | publication_A1 | pubID_A1 02 | organization_1 | email_A | publication_A2 | pubID_A2 03 | organization_1 | email_A |...
View Article