39,402 Topics

Member Avatar for
Member Avatar for tcollins412

i am trying to put all of my cookies into an array. heres my code [ICODE] <? setcookie('failn','fail'); setcookie('goodn','good'); setcookie('han','ha'); $allcookies=explode(' ',$_COOKIE); print_r($allcookies); ?> [/ICODE] but the page only returns Array ( [0] => Array ) please help

Member Avatar for tcollins412
0
155
Member Avatar for stonybony

Hi, DW complains of a syntax error that I cannot understand. I use the code as a standalone and it is not a problem, but when used as a table element as written below, it complains of a syntax error. The red highlight is where it complains, the green seems …

Member Avatar for Gerbiler
0
177
Member Avatar for Misklahr

Hi I want to create a code so that the user can upload an image. The code then resizes it and then [U]stores it as a blob[/U] in my database. [URL="http://www.9lessons.info/2009/03/upload-and-resize-image-with-php.html"]The code I'm using[/URL] I have done everything, but need to know which variable (in the link) to store into …

Member Avatar for Misklahr
0
82
Member Avatar for never_rain

I have a website where users can add their friends. What I am trying to achieve is to show every user that who are their friends that are currently online. If any one knows a link to any script or tutorial that explains this, Please help.

Member Avatar for nats01282
0
144
Member Avatar for johnbo100

Hi all I am just getting to grips with dreamweaver database development but cannot figure out how I am supposed to update multiple tables to mysql when I have updated a form for a record. Any pointers from experienced dreameweaver developers please? Many thanks in advance

0
85
Member Avatar for vijaysoft1

Hi frnds .... I am trying to create a contact form in PHP , MySql .... In my form i have two 3 input fields n a Submit Button ..... 1. Name 2. email 3. SecurityCode ( here user have to enter the captcha code ) m collecting all information …

Member Avatar for Kannan R
0
4K
Member Avatar for navjotneet

i work with a website. in which i want to urlrewrite for example my url is www.test.com/express.php?project_id=4&group_id=3 Now how can i convert it into www.test.com/project_name.html i get project name from database using project id....

Member Avatar for Pro2000
0
171
Member Avatar for public-image

I am using the following code to find whether the content area is using a command (commands are held in a table column) or not. The commands call on "quick content" which are default areas that you might see regularly around the site. This feature ensures they are not different …

Member Avatar for happytogether
0
112
Member Avatar for sarah2230

Hi, I am trying to set up a php email form but the website the form is hosted on, is hosted on a windows server. And I am getting this error: There was an error in the information submitted: From Email address empty Please return to the form and fix …

0
109
Member Avatar for markhammill

Hi, I have almost finished my first webpage with php but I have an error I can't manage to fix. I used the plaincart template to start with. If you go to [URL="www.michton.com/shop.php"]www.michton.com/shop.php[/URL] There is an error at the top of the page, it is on black so you need …

Member Avatar for 7a26j
0
251
Member Avatar for johng123

id like to input a parameter using an input box it suppose fill a column of an existing table the submit button need to clear the old values in this column and than fill it with the new values for example three column row; id, countries, parameter1 on submit clear …

Member Avatar for sainigks
0
137
Member Avatar for umeshMCA

hi, here i mention my code its a code to login and logout code when i click on logout than its return on userlogin page but when i press back button of browser its return to previous page. code here RM.php <form action="login.php" method="post"> <table width="300" align="center" border="1"> <tr> <td …

Member Avatar for sainigks
0
175
Member Avatar for divyakrishnan

Is it possible to run an exe file directly onto the server without downloading/saving into client machine? I had used that exec() function .But it is showing no display. <?php echo exec("d:\example\php_exe\1436.exe"); ?> Also I tried it using backticks operator

Member Avatar for bibiki
0
383
Member Avatar for MasterBerd

Hey Guys! i'm trying to start making a php based word translator. Do i need to retype every word in dictionary or is there a way to download "library" type thing, or copy and paste from sources (could not find)? thank you for your help

Member Avatar for chrishea
0
336
Member Avatar for thekiddy

I am selecting an image as part of a html form. Once selected, jQuery assigns a user-defined attribute of the image to a hidden form variable and passes it to form handler. Neat. Problem is when I dynamically add images that can be selected. I am using live function to …

Member Avatar for Airshow
0
678
Member Avatar for AMADH

Hello, I hope somone can help me. I have a form that a user use to search for their pay, and it will dispay it for them as both with dependents and without. Right now they can search and it will display their pay, but it displays it as two …

Member Avatar for AMADH
0
165
Member Avatar for masterjiraya

ALL THE FILES ARE HERE. [URL="http://cid-3e21e1e16478087a.office.live.com/embedicon.aspx/.Public/noswfupload.rar"]http://cid-3e21e1e16478087a.office.live.com/embedicon.aspx/.Public/noswfupload.rar[/URL] THERE'S A PROBLEM IN THE FILE RECEIVER.PHP I can't solve why I cant upload with restrictions, what I want is to upload multiple files in one deploy... it's an array of files. I want these each files of every array element is checked and …

Member Avatar for masterjiraya
0
209
Member Avatar for klemme

Hi All, I have some trouble getting some javascript code implemented Its basically because I havent used much it before. Its like this: When admin chooses to delete a page from his site via this link: [CODE] <?php echo '<a href="process_delete_page.php?pid=' . $id . '">Delete page!</a>'; ?> [/CODE] Before this …

Member Avatar for klemme
0
139
Member Avatar for codemonkey88

Does anyone know about cleaning up URLs for CMS? I had a .htaccess file containing the following code (or so far as I can remember) [CODE] RewriteEngine On RewriteRule ^([a-z])$ /index.php?url=$1 [L] RewriteRule ^/article/([a-z])$ /index.php?url=$1&type=news [L] [/CODE] which was working fine ie: [url]www.mysite.com/somepage[/url] loaded the "mypage" content into my index.php …

Member Avatar for codemonkey88
0
256
Member Avatar for erza26

hi...i really, really need help right now...i have order date and approve date.. 1) my problem is, how i can calculate between those two date 2) code for checking insert date...for example, if the user enter yesterday date for order date, it will pop up an error and if the …

Member Avatar for Kannan R
0
79
Member Avatar for Pro2000

[B]Hello everybody. I've been working on a PHP file that adds a value to a cell in one table in MySQL.[/B] First I thought that the following code might work properly: [CODE] <?php require("DB_Connector.php"); //The file that connects to the MySQL database required mysql_query("update tableName set cellName= cellName + '$The_New_Value' …

Member Avatar for Pro2000
0
354
Member Avatar for hassan12345

how to delete line number 3 or any line of my csv file ????????????????? like test.csv 1.jhon 2.sarah 3.ricky //delete this row of csv 4.martin

Member Avatar for vibhaJ
0
4K
Member Avatar for dalip_007

Hi Experts, I have a table and I want to check once in a day if some records have been added or removed from this table within last 24hours ,and then send an e-mail to myself of all those added or removed records only . Any idea about how can …

Member Avatar for dalip_007
0
96
Member Avatar for rpv_sen

HI Sorry for opening the thread, i have some issue please help me in solving the below one [B]Javascript[/B] [CODE]<script language="javascript"> function line(elem,amt,res_elem) { var qty=document.getElementById(elem).value; var tot_amt=qty*amt; //document.getElementById(res_elem).value = tot_amt; document.getElementById(res_elem).value = Math.round(tot_amt*100)/100; } </script>[/CODE] PHP [CODE] <?php $cate_code=$_GET['ct']; $civrform=$_GET['vrform']; $site=$_GET['site_name']; $desr="select * from site_rate where category_code='$cate_code' AND sitename='$site' …

0
190
Member Avatar for hassan12345

hi i want to delete line from my csv file after echo or process this line can any one help???????????? thanks in advance!!!!! here is my code [CODE]$fp = fopen('surInput.csv','r') or die("can't open file"); while($csv_line = fgetcsv($fp,1024)) { for ($col = 0, $j = count($csv_line); $col < $j; $col++) { …

Member Avatar for hassan12345
0
376
Member Avatar for tactfulsaint

[CODE]while($row = mysql_fetch_array($sql_blabs)) mysql_fetch_array(parameter)[/CODE]PLEASE i need another method OF retrieving data from MySQL database other than THIS IS THE FUNCTION THAT'S THROWING THE ERROR, IT KEEPS SAYING THAT'S ITS A NOT A VALID PHP FUNCTION

Member Avatar for rpv_sen
0
96
Member Avatar for Awah Mohamed

hey people. i am trying to build a synamic page that updates its contents dynamically without using javascript. a friend of mine sugested me web sockets. and when i checked it it was awsome. now i can build a web socket that can be accessed from command prompt. now my …

Member Avatar for digital-ether
0
79
Member Avatar for MKWeb

I have a form that contains multiple dropdowns that are dynamically populated using AJAX not CSS, dependent upon the form above it. The page works fine in FF and Safari, but when I try it in IE, the first dropdown is populated, but the others remain greyed out. Here is …

0
79
Member Avatar for bibiki

hey there, I have the following piece of PHP code to retrieve a list of files on a directory, and then build links to each file: [CODE] <?php $dir=""; // Directory where files are stored if ($dir_list = opendir($dir)){ while(($filename = readdir($dir_list)) !== false){ ?> <li><a href="<?php echo $filename; ?>"><?php …

Member Avatar for bibiki
0
356
Member Avatar for klemme

I was adding a link to make it poosible to delete a page on a site, which is not yet published. the link looks like this, with the processing below it: [CODE] <?php // The Link echo '<a href=\"process_delete_page.php?pid=' . $id . '">Slet siden her!</a>'; // Processing the request $id …

Member Avatar for klemme
0
223
Member Avatar for Macko888

Hi Everyone, Just a basic Conn function i would like to share with the community. Any constructive criticism and tweaks are very welcome, im trying to optimize my entire code library, starting with the basics. [CODE]<?php funtion dbconn(){ $db = "database_name" //<-- name of database being connected to $server = …

Member Avatar for diafol
0
78
Member Avatar for showman13

Good Morning All, I have a query I need to do, but haven't been able to get it clear in my mind how to structure it... I have two tables 'members' and 'subs_track' they are linked by the 'mem_id' field in both There is a single record for each member …

Member Avatar for showman13
0
114
Member Avatar for masocha

l am trying to send individual emails with a loop using php mailer in joomla. However when l generate the emails l get something like 12 emails to one email address even if the loop is only 2 in size So its something like foreach($res as $r) { //send email …

Member Avatar for vibhaJ
0
82
Member Avatar for happytogether

Can somebody help me please? i try to generate an xls(excel) file using this code, all format work fine except the cell size(width). can anyone help me how to format the cell width? [code] </php . . . $workbook = new Spreadsheet_Excel_Writer(); $format_und =& $workbook->addFormat(); $format_und->setBottom(1);//thick $format_und->setAlign('center'); $format_und->setHAlign('equal_space'); $format_und->setBold(); $format_und->setVAlign('vcentre'); …

Member Avatar for happytogether
0
874
Member Avatar for branding4you

I have php mailer that works on the server and sends newsletters out to clients. I wnat it to send me read receipts (I know that some users will select dont send read receipt)and delivery receipts. I tried this: [CODE] $mail_body = ''. $news . ''; $subject = "My Newsletter"; …

0
64
Member Avatar for Rajicet

Hi, I want to convert an XML containing images into Excel sheet. But it is displaying only image path, not image. How to display the image in Excel... ?? Can i use base64 encoding and decoding for this ? Please help...

Member Avatar for Rajicet
0
130
Member Avatar for vishalpala

if user type wrong id and password so one message display and how can i remove alert message on refresh on log in page

Member Avatar for karthik_ppts
0
72
Member Avatar for reygcalantaol

I am developing google search application using google search API. I am almost done with it but I have one problem which I am hardly find the solution over the net. My problem is to get the cache date (a date where google last crawled the site). I will be …

0
74
Member Avatar for diafol

This is a CSS/HTML issue, not php. Your php is suspect: Line 15. No need for all the tables? How about one table? Do you really need a table anyway? Why not use <h3> for name, <p> or <div> for content? Any reason why you'r using mysql_result? This tends to …

Member Avatar for vibhaJ
1
89
Member Avatar for programmer12

Hi, Can someone help me with writing the script to be able to pull the information from the database without refreshing everytime something new has been added? My codes at the moment read: [CODE]$recentupdates = mysql_query("SELECT * FROM status NATURAL JOIN users WHERE user_id = users.id ORDER BY status_id DESC …

Member Avatar for programmer12
0
129
Member Avatar for dalip_007

Hi guys I run a site like twitpic.com for twitter , and what I want is when someone post picture on my site then it get shown up on twitter time line just like pics from twitpic, plixi and yfrog are shown, Any one have idea of how to do …

Member Avatar for dalip_007
0
69
Member Avatar for ebanbury

Hi I am hoping someone can give me some advice. I have a user_registration table with the field 'ID' as the user ID field. I have another file (property_details) which is for users to insert their own records. What I need to do is to automatically assign their ID from …

Member Avatar for ebanbury
0
196
Member Avatar for designalex

Hi, its me again.:scared: im using the following code to destroy my session but instead of removing the session, it just empties the data, for e.g: when i start the session a file is created, after storing my data in the session the file could be 2 or 3 kb …

Member Avatar for SRocks
0
207
Member Avatar for tyop

This is something that worked a few months ago and now I don't know what I messed up when I made the mistake of trying to migrate it to a new host. It's nothing but a registration and login module and I'm trying to have a tight focus on security …

Member Avatar for tyop
0
3K
Member Avatar for erza26

hi....i have some problem here...i'm making a form for ordering...what i want is when user click on form ordering button, there will be a form with reference number echo from database..in database i set the reference number as primary key and auto increment..somebody can help me to solve this problem??

Member Avatar for diafol
0
122
Member Avatar for arshadshaikh

Hi every one. Can i convert dwg file to pdf using php? OR Is there any PHP API or web service that provides service to convert dwg file to pdf file?

Member Avatar for arshadshaikh
0
565
Member Avatar for Amr87

Hello Everybody I`m using shared server on HostMonster that runs PHP 5.2.17 , and I want to upgrade to the latest version 5.3.6 which I downloaded from PHP.net as tar.gz2 extension first is that possible to replace the version with the newer one? and if so How ??

Member Avatar for chrishea
0
48
Member Avatar for theighost

Hi, I have this strange problem, I select some data from the database, there is no problem in the query and even when I use mysql_num_rows on the query it gives me the right number of entries in the table I'm selecting from, but when I try to echo every …

Member Avatar for pritaeas
0
4K
Member Avatar for Gel

i wanna enter a value passed by javascript function to the database. is there a way to do that? thanks. var eng = 0; var nothome = 0; var nointerest = 0; var callback = 0; var booked = 0; function myFunction(i,txt, elemid){ var plural; if (i != 1) plural …

Member Avatar for diafol
0
219
Member Avatar for RazorRamon

I'm trying to code a site similar to the coding on the bottom. I need help though I'm not sure if functions for php can work this way. I want to be able to use the function greeting in many different if else statements. How can i do this without …

Member Avatar for twiss
0
325

The End.