Search Results

Showing results 1 to 40 of 46
Search took 0.01 seconds.
Search: Posts Made By: michael123 ; Forum: PHP and child forums
Forum: PHP Jul 13th, 2009
Replies: 1
Views: 390
Posted By michael123
I need to manipulate two tables(in different DB) to print out data, what's the effective way to do that in php code?

$conn = mssql_connect($intraserver, $intrauser, $intrapass);...
Forum: PHP May 1st, 2009
Replies: 1
Views: 331
Posted By michael123
I try to generate on-fly pdf files by php code, the pdf file will display the web page exactly the same as on browser, did some research but have no clue how to do that.
The function: PDF_show_xy (...
Forum: PHP Jun 20th, 2008
Replies: 3
Views: 1,348
Posted By michael123
I try to copy and paste TAB delimited list into html text area, then save it to database, however when I retrieve it from DB, all TAB space are gone, does anyone can give me advice is there a way to...
Forum: PHP Nov 21st, 2007
Replies: 3
Views: 1,331
Posted By michael123
how can I replace who string with certain beginning and ending, for example I have string:
abc........xyz

I want to replace this string with "this is a test", no matter what text in between, only...
Forum: PHP Nov 20th, 2007
Replies: 3
Views: 4,708
Posted By michael123
Is there attachment feature in standard php mail() function? I don't want to install additional application as I have bunch of files use mail(), I don't know if this new application will affect that.
Forum: PHP Nov 19th, 2007
Replies: 3
Views: 4,708
Posted By michael123
In php mail() function, how can I send attachments? I didn't find parameter to do this. any help will be appreciated.
Forum: PHP Nov 16th, 2007
Replies: 2
Views: 703
Posted By michael123
how can I pass GET url which contains character "?" to php file.
for example I have url:
http://www.mysite.com/file1.php?string=file2.php?a1=1&a2=2&a3=3

I want to pass all string...
Forum: PHP Nov 13th, 2007
Replies: 3
Views: 1,757
Posted By michael123
How can I get future date by php date() function, for example today is 11/13/2007, I want to get the date after 60 days.

Any advice will be appreciated.
Forum: PHP Nov 6th, 2007
Replies: 4
Views: 3,285
Posted By michael123
The php page contains table that display dynamic data retrieved from mysql database, I have no problem to display this table on web browser and convert it to excel file, by manually.
Now I need to...
Forum: PHP Nov 5th, 2007
Replies: 4
Views: 3,285
Posted By michael123
Thanks for reply.
I tried this, it works ok from web browser, but not from command line, it doesn't generate excel file.
Actually this $data is the dynamic php web page I created, I want to save...
Forum: PHP Nov 5th, 2007
Replies: 4
Views: 3,285
Posted By michael123
I have a simple php file for example:

<?
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=file123.xls");
header("Pragma: no-cache");...
Forum: PHP Mar 13th, 2007
Replies: 3
Views: 2,310
Posted By michael123
I have a question about how to manipulate php string.
For example, I have a text string:
$text="
---<updated:12/20/06>---
this is 2nd entry
---<updated:12/19/06>---
this is 1st entry
";

Now...
Forum: PHP Aug 23rd, 2006
Replies: 2
Views: 5,570
Posted By michael123
I have php code that retrieve data from mysql DB, and print it in html table.
<?
print "<table>";
$result=mysql_query("select fd1,fd2,fd3 from tbl");
for ($i = 0; $i < mysql_num_rows($result);...
Forum: PHP Jun 16th, 2006
Replies: 2
Views: 1,690
Posted By michael123
I am planing to write a php script which can display time schedule bar, based on start/end date, and each project(see attached image, start/end date and project name are saved in database), the...
Forum: PHP May 16th, 2006
Replies: 1
Views: 2,096
Posted By michael123
I try to set cookie values from mysql DB, I have the code:

$result = mysql_query("select ID from table");
while ($thisrow=mysql_fetch_row($result))
{
$gname="name_".$i;
setcookie...
Forum: PHP Mar 14th, 2006
Replies: 3
Views: 5,990
Posted By michael123
What I mean is within <select> dropdown menu, I need to submit:
(1) <option value=$line[0]>
(2) another hidden value "$line[1]"
so after submitting the form, I can retrieve both option value and...
Forum: PHP Mar 14th, 2006
Replies: 3
Views: 5,990
Posted By michael123
If the items in <select> drop down menu are populated from mysql DB, like:

<?
echo "<select name=ptype>";
echo "<option value=\"\">------Select------</option>";
for ($i = 0; $i <...
Forum: PHP Feb 17th, 2006
Replies: 4
Views: 7,007
Posted By michael123
I want to use PHP mail() function to send email to hundreds of users, in mail function I can set mail list like:
$sendto="user1@abcd.com,user2@xyz.com,user3@yahoo.com,.....";
But in this way when...
Forum: PHP Dec 13th, 2005
Replies: 6
Views: 1,675
Posted By michael123
If I have an array $abc=[0,0,0,1,0,2];
how to change it to $abc=[1,2]; (remove all 0), is there php function can handle that? thanks.
Forum: PHP Dec 8th, 2005
Replies: 3
Views: 7,849
Posted By michael123
Thanks for the reply.
I also found another way to do that:
$order_num ="SN".str_pad($a,5,0,STR_PAD_LEFT);
Forum: PHP Dec 8th, 2005
Replies: 3
Views: 7,849
Posted By michael123
A simple question.
I have integer variable $a=2, how can I display it in string format: "SN0002" with 4 '0' inserted? thanks.
Forum: PHP Dec 2nd, 2005
Replies: 1
Views: 2,645
Posted By michael123
I have date value saved in Mysql DB, with format "dd.mm.yyyy", now I want to delete all records that date is older than 10 days from today, how can I do that in php? is there php function can...
Forum: PHP Nov 9th, 2005
Replies: 1
Views: 2,276
Posted By michael123
In php, is there a function like "wait()", the program executes to certain line and wait a moment(like 1 second) then proceed to next line? thanks.
Forum: PHP Nov 2nd, 2005
Replies: 1
Views: 7,758
Posted By michael123
I turned on php Domxml module in php.ini and restart apache server, I can read domxml is enabled in phpinfo, however when I try to load XML file:
$dom =...
Forum: PHP Oct 31st, 2005
Replies: 1
Views: 6,611
Posted By michael123
I try to resize jpeg from photo size to thumbnails, however the thumbnails quality is bad, it looks fade and blur, I have no idea how to improve the quality of thumbnails.
PHP resize function:...
Forum: PHP Oct 20th, 2005
Replies: 4
Views: 5,202
Posted By michael123
is there a php function that I can verify if the string contains all digital number, not alphabetic charactor? thanks.
Forum: PHP Oct 18th, 2005
Replies: 1
Views: 9,002
Posted By michael123
Can anyone answer my question?
Forum: PHP Oct 17th, 2005
Replies: 1
Views: 9,002
Posted By michael123
I try to use PHP GD library to resize image to thumbnail size, however I found the small converted image has bad quality(distorted color), how can I improve the image quality by using PHP GD library:...
Forum: PHP Sep 20th, 2005
Replies: 18
Views: 98,383
Posted By michael123
Is there php function to remove the space inside the string? for example:
$abcd="this is a test"
I want to get the string:
$abcd="thisisatest"

How to do that? thanks.
Forum: PHP Sep 19th, 2005
Replies: 6
Views: 4,982
Posted By michael123
Can anyone answer this question? thanks.
Forum: PHP Sep 18th, 2005
Replies: 6
Views: 4,982
Posted By michael123
Is there a function in php to remove the duplicate string variables, for example there is "abcd,ab,cd,abc,abc", how to change it to "abcd,ab,cd,abc"?thanks.
Forum: PHP Sep 15th, 2005
Replies: 3
Views: 12,581
Posted By michael123
I want to know is there a way to display .tiff files on the web page directly? As html can handle jpg,gif,bmp, but how about tiff file? I tried to use <img src=abc.tiff> it pops up the download box...
Forum: PHP Jul 14th, 2005
Replies: 2
Views: 3,109
Posted By michael123
How can I conver the date format in php, like from "12/31/05"(mm/dd/yy) to "31 December 2005"?
Forum: PHP Jul 12th, 2005
Replies: 2
Views: 3,109
Posted By michael123
I have a textbox where user can enter the date in format of MM/DD/YY, now I want to set a rule only accept the date within one month from current date, how can I do that, anyone help will be...
Forum: PHP Jul 6th, 2005
Replies: 7
Views: 2,153
Posted By michael123
As POST is more secure than GET, and can handle larger amount of text, why we still need GET? Even if we cannot POST in a link like <a href="product_detail.php?id=15">, we still can use POST in form...
Forum: PHP Jul 6th, 2005
Replies: 7
Views: 2,153
Posted By michael123
Hi,

I'm new to php, I want to know what's the better time to use POST instead of GET(or GET instead of POST)? what's the advantage to use one rather than other.

Thanks.
Forum: PHP Jun 17th, 2005
Replies: 1
Views: 3,076
Posted By michael123
I have a login script, I want to modify it to restrict the sharing username access, by IP address, what will be a good method to do this?

thanks.
Forum: PHP Jun 17th, 2005
Replies: 7
Views: 14,288
Posted By michael123
I have a <textarea></textarea> in this textarea, people can type anything they want, for example:
in <textarea> people will write like;

123456789
abcdefghigk

and save to the database. but...
Forum: PHP Jun 16th, 2005
Replies: 7
Views: 14,288
Posted By michael123
Thanks, Troy, I will give it a try.
Forum: PHP Jun 16th, 2005
Replies: 7
Views: 14,288
Posted By michael123
I created a from which includes a textarea, this data will be saved to mysql, when I retrieve it, I want to only display the first two lines of this textarea data(ignore the rest), and only limit to...
Showing results 1 to 40 of 46

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC