39,320 Topics

Member Avatar for
Member Avatar for whiteyoh

Hi all, Im wanting to have an "upload picture" button, that on clicking will upload the picture into a directory, but then capture only the filename of the picture to be stored in the database. This is for creating a catalogue entry. Im fine with the form information and disabling …

Member Avatar for whiteyoh
0
79
Member Avatar for changeco

Does anyone know a way to check if the Google Calendar server is having problems (internal 500 error) and display a line of code saying "We are experiencing technical difficulties" instead of Googles lame debugging? I assume it would need to be some sort of ajax/php combination to check the …

Member Avatar for gotschai
0
59
Member Avatar for qariella

Hi, i have a big problem trying to make my table sort things.. Table information is cooming from mysql db.. [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Min telefonbok</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <h1>Telefonbok</h1> <form id="form" method="post" action="phonebook.php"> <fieldset> <legend>Skapa ny kontakt</legend> <table> …

Member Avatar for qariella
0
172
Member Avatar for surya_nar

I have a database containing records which I want to edit. I populate a list box which gets populated with the records in the database and I select and click on one of the records for editing. I find that I am able to select the record from the listbox, …

Member Avatar for qazplm114477
0
4K
Member Avatar for vibhaJ

Hi all, i want to know that 'Is mysql support chinese language?' If yes then any changes require in configuration? My site is in english. Let if any user have inserted their information in Chinese and if anyone search using Chinese keyword, then it should match with mysql and if …

Member Avatar for colweb
0
66
Member Avatar for LindaJ

Hi, I have a question for all you brilliant daniweb joomla developers (mean the "brilliant" sincerely) ... and it's probably a simple one for you. I am using the latest joomla and a template a Siteground template (siteground-j15-116). Can I replace the Site Name that appears in the upper left …

Member Avatar for macneato
0
148
Member Avatar for albertkao

I want to call a C++ program from PHP with apache server on Fedora 12 linux. testprog is put in the same directory of the test php program. I see the output of exec('ls -lrt') but not exec("testprog"). Please help. The following are my php and cpp test programs. [CODE]<html> …

Member Avatar for mutirelover
0
2K
Member Avatar for niths

hi all, is there anything wrong in this. i need hav the value in the radio button to display in the next page. so please can anyone. thank u. ---------user.php-------- [CODE]<tr> <td><input name="radio" type="radio" value="projectassign"></td> <td><?php echo $row['projectassign']?></td> <tr> <td><input name="radio" type="radio" value="projectassign"></td> <td><?php echo $row['projectassign']?></td> [/CODE] ---------upload.php--------- [CODE]<?php echo …

Member Avatar for rajarajan2017
0
177
Member Avatar for MDanz

i have a div that is a pop-up, and it is in a loop. I want to add a form to the below code so i can send the data in the textarea to the next page. Because it is a pop-up, the style changes from display:none to display:block, but …

Member Avatar for rajarajan2017
0
87
Member Avatar for MDanz

i have a textarea with alot of words in it. Is there an alternative way to send the words in the textarea to another page without using a form and submit button?

Member Avatar for vibhaJ
0
945
Member Avatar for futhonguy

Hi I am trying to join 2 sentences together using php and mysql. How can i do so? I am doing this as i need to add an update of a new remarks to the existing remarks. For example, $first = '[B]Hello[/B]'; $second = '[B]world[/B]'; To get the string '[B]Hello …

Member Avatar for futhonguy
0
88
Member Avatar for gymangel812

I want the program to update or add to a database. If an item is selected from the dropdown menu (filled with the product names already in the DB), they I need to update the fields with the information typed by the user or update the picture that is uploaded. …

Member Avatar for sallecpt
0
93
Member Avatar for Helleshtern

I'm trying to could backup one of tables from database using php only. I'd like to save result in some directory at my server or (the best) send it via e-mail. My problem is that: - [B]exec()[/B] is disabled - [B]system()[/B] is disabled I'm tried to use "[B]SELECT * INTO …

Member Avatar for sallecpt
0
122
Member Avatar for gauravchauhan

Only Single image is display .guide how i display multiple image in our page in php i am sending coding . there are two file1.php and file2.php .guide me file1.php [code] <?php header("content-type:image/jpeg"); $con=mysql_connect('localhost','root',''); if(!$con) { die("colud not open"); } $d=mysql_select_db("test1"); if(!$d) { die("colud not open"); } $q1=mysql_query("select * from …

Member Avatar for sallecpt
0
170
Member Avatar for sallecpt

Could someone help me with this - I've cracked my head since. When i submit a form and then retrieve the data, there is no paragraphs. Yes I am aware of HTML encoders like TINYMCE but I'd like to submit in plain text. I tried htmlentities and htmlspecialchars but nothing …

Member Avatar for sallecpt
0
184
Member Avatar for AliHurworth

Hi, I am running the scripts below which should return a string containing a URL. So far, it cannot find the form contents in Firefox, but displays the non-dynamic data such as [I]?Location=[/I]. It won't work at all in IE. Can any one help? This is the form: [CODE] <!DOCTYPE …

Member Avatar for BlueIceStudios
0
196
Member Avatar for vishalkhialani

Hi, I want to write a script which will search the net based on a few parameters. They are: 1) Find sites which high pr. 2) Sites should have the feature to allow users to register. I know very basic php and I was wondering how I should go about …

Member Avatar for vishalkhialani
0
196
Member Avatar for boet

Hi everyone, This is the error I get for this project. Been through the code all day and no problems found, still I get this error: DB access error(You have an error in your SQL syntax;check the manual that corresponds to your MySQL server version for the right syntax to …

Member Avatar for JRM
0
104
Member Avatar for nsutton

This doesn't really have anything to do with Php but I'm following a php tutorial so...I've NEVER used any database system before... Anyway, I'm following this tutorial, [url]http://buildingbrowsergames.com/2008/04/15/designing-your-database/[/url] I'm up to the part where your making the user sql table in the tutorial. I have no idea where to input …

Member Avatar for JRM
0
204
Member Avatar for ashking

Hi, Im not much of a php coder, mainly use VB. But i had a problem with one of my apps. To make it more secure i would need each php parameter to go through one site. Here is an example of what i mean: - Application loads - sends …

Member Avatar for colweb
0
62
Member Avatar for danielkull

Hi, I want my cookie was changing like that: 1,2,3,4,1,2,3,4,1,.... after each time I refresh the page. but it is changing somehow randomly. [CODE=php]if (!isset($_COOKIE["bbb"]) && empty($_COOKIE["bbb"])) setcookie("bbb", "1", time()+3600); else { switch ($_COOKIE['bbb']) { case 1: setcookie("bbb", "2", time()+3600); break; case 2: setcookie("bbb", "3", time()+3600); break; case 3: setcookie("bbb", …

Member Avatar for danielkull
0
102
Member Avatar for wewehalim

Hi, i am making 3 forms, let's say, form1, form2, form3. In form1, there is a field "givenname" and a submit button that link to form2, and i want to pass this field to form2, i can pass this without any difficulty. However, i also want to pass the field …

Member Avatar for gotschai
0
137
Member Avatar for prem2

Hi Daniweb Team, I saw the below code in following url.When i implement this code i does not receive any email.I need to send email via error_log function.Can any one tell me how to do this .For your reference i mentioned the code below. URL: [url]http://www.w3schools.com/php/func_error_log.asp[/url] [CODE] <?php $test=2; if …

Member Avatar for pritaeas
0
140
Member Avatar for niths

[QUOTE]hi all, i had a upload page and a down load page. so when we upload a file that wil get displayed in a table and a download link wil be beside that file. everything is fine wit upload but wen i click on download link i am getting an …

Member Avatar for colweb
0
142
Member Avatar for capoon

Hi every one, i try to upload form field into database along with the image but i want the the image name to be in my database as a link while the image itself will be in a directory. I have use something like this code before it works i …

Member Avatar for siamsoft
0
122
Member Avatar for niths

[QUOTE]hi, i had written two programs and those are working fine but my Team Lead wants that two programs to be in one single page. i used post method so if i place it in single page i am getting error. so can anybody... Thank u.[/QUOTE] -----projectcreation.php-------- [CODE]<html> <body> <script …

Member Avatar for rajarajan2017
0
107
Member Avatar for niths

[QUOTE]hi all, i need to echo the value obtained in the mysql query. so can any one .. Thank u.. [/QUOTE] [CODE]$sql2="select reportingto from users where username='$_SESSION[username]'"; mysql_error(); $result2 = mysql_query($sql2);[/CODE]

Member Avatar for niths
0
94
Member Avatar for ItecKid

Hello, I have two different tables I need to extract data from. They are linked by a number, that is to say the value of the field 'number' in table 1 is the same value as the value of the field 'num' in table 2. I can select data from …

Member Avatar for urtrivedi
0
134
Member Avatar for bobbymoir

My SEF URLs are working fine on my local machine (WAMP Server) but when i upload it to server (Server API : CGI) it shows all the pages as 404 error. Here is the code i use : [CODE] 1) .htaccess : Options -Indexes RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteRule …

Member Avatar for bobbymoir
0
158
Member Avatar for immortalvegan

I'd like to start using databases with my websites. I use PayPal shopping cart now and want to automate adding sales items for my customers product. It seems like PHP/MySQL is the easy answer. Am I right? I don't really want to build a whole cart just most of a …

Member Avatar for drjohn
0
127

The End.