Please see the attached excerpt from my email php script. In the email that is sent, my \n line breaks work fine until it gets to the $position field. The line break after this field does not ...
I would like to create a stock market ticker for my website, similar to the one found here:
http://moneyam.co.uk/
(the scrolling banner).
Either something similar or just an updating fts...
How to count the number of directories in a folder?
-The computer is not connected to a network. It's a stand alone devolopment box.
Can't get it working properly...
I have an array that looks like this:
$Products[] = array(
'productname' => $result->fields['name'],
'sku' => $result->fields['sku'],
'productid' => $result->fields['id'],
'to...
Inlcuded below is the code I am using.
Currently this will create my DOM XML file, save it to the server
Then prompt me to download the file.
I am trying to perform this operation without...
Hi,
I am using the excel writer with pear, buen i format a cell, nothing happens, here is the code
<?php
require_once "Spreadsheet/Excel/Writer.php";
$workbook = new Spreadsheet_Excel_...
I have a lot of experience with php but this one is new on me. It seems that a new session is created everytime the session_start() function is accessed, even though we are still in the same s...
If I have a text file which contains many characters, some of them are ascii characters but some of them are not. How can I distinguish them and count how many non-ascii characters there?
A timeout of the PHP session is detected with isset(a_session_variable), and then redirection with
header('Location: http://www.dommain');
exit();
But this is code is within an ...
How can I allow users to only enter a valid telephone number?
This should include US and international numbers.
Thanks,
JB
I want to delete the following four characters from a string
(
)
-
<space>
is there a preg_replace call that can do the work of four str_replace ('-'.'', $string) calls ?
tha...
How can dynamically check or uncheck a check box using php, my code doesn't work:
Hey.
As the question states, I am trying to import a CSV file into a table in MySQL. The table is all setup and the code works fine, except it only imports about 12,000 records out of 25,00...
My array looks like this:
Array
(
[0] => Array
(
[parent_id] => 2
[parent_name] => Master Category 2
[child_ids] => Array
...
My client wants to have site visitors to be able to go to the site and at end of story jave a link that sends an emil to their state senator showing support for an upcoming proposal. I am usin...
I have a table called modules, with module name and id.
Example: module name -> color_name, module_id - > color_id, module_prefix -> color.
I have another table called site_colors, with ...
After hours of searching i cannot find an understandable way for me to use PHP's mail() function with my Gmail account! I set SMTP = smtp.gmail.com in my php.ini. Here is my code..
dear experts,
i want to get the first date and the last date of a month in unixtimestamp format.
for example:
i want 1/7/2008 0:0:0 and 31/7/2008 23:59:59
so i did:
mktime(0,0,0,7...
Hi,
An outsourced developer added an iframe to my index.php embedded flash page and there is now always a scrollbar on the page.
Can you show me an updated version of the following code...
Hello group,
I have written a small code to read an xml file using SimpleXML library. it does what I was expecting BUT as a newbie in PHP I used linear array which makes it slow. Can sombod...
This is a sample of our current e-mail script. There are about 10 forms that use it. Right now the form responses don't go to the correct e-mail box. We need to see if this can be confirmed as...
What is wrong with my code? Why can't I connect to MySql?
<?php
$dbhost = 'localhost';
$dbuser = 'root';
$dbpass = '123456';
$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Er...
I want to be able to check whether or not a user has certain permissions to be on that page. But this code is included after I've already done some echo statements. I'm getting errors on the...
I have been able to use this out of the (xampp) box.
1. How can I tell which mechanism it's using for the MSSQL connection (MSSQL_CONNECT) - i.e. ODBC, PDO etc
2. How can I force it to use...