Hi Guys
I have a form using PHP/ CSS/ HTML for updating customer details and then eMailing them the revisions. The form is posted with an 'Input: Type Image' which updates the database prepares a bespoke HTML email and sends it. My problem is this, the above process takes a couple of seconds before the user is sent to a confirmation page which gives the feeling that nothing has happened and the probability is the user may try to click...
Search Result
Collapse
608 results in 0.0127 seconds.
Keywords
Members
Tags
-
Display a Wait/ Busy cursor
-
uploading pictures to Mysql with PHP.
I have a piece of code that isn't working. I'm trying to upload a few pictures to my database code is as follows:
Upload Form:
Code:<input type="hidden" name="supplier_number" value="<? echo ''.$_REQUEST["supplier_name"].'' ?>" /> <tr> <td>Picture 1: <td><input type="file" name="image1[]" /> <tr>
Last edited by Dormilich; Jun 8 '12, 07:03 AM. Reason: Please use [CODE] [/CODE] tags when posting code. -
Stripslashes from this file overwriting form
Can someone help me stripslashes from this code? When you save the file with your new modifications it adds slashes anywhere it sees a "quote" and it breaks the code.
Code:<head> <style type="text/css"> textarea { font-size:11px; font-family:"Courier New", Courier, mono; } </style> </head> <body> <?php
-
Is something wrong with my query?
Hey guys. I'm working on a database with 3 tables, some with overlapping information. A few columns from each table can be updated by the user via the web app that I am creating. But... There is an issue. Not sure what it is, but my updates aren't happening. I am wondering if something is wrong with my query. (Actually, after debugging, I am quite certain there is).
Code:if (empty($errors)) { $query1 = "UPDATE owner SET
-
clarification on GROUP_CONCAT()
Hi everyone - I need a way to turn a column in my table into a list. Basically, my table consists of: userId, name, and "role" (0 or 1). I want to write a function that outputs a list of usernames. This is what I have:
Code:function checking_query() { global $connection; $query = "SELECT GROUP_CONCAT(userId) FROM owner"; $result = mysql_query($query, $connection); confirm_query($result);
-
how do i replace pixels colors with my own colors ?
Hi I am new to the GD library and am stuck on something and wondered if you could help me.
I am using PHP and GD.
I have an array with 40 predefined hexadecimal colors in it.
I have an image that is 6 x 6 pixles, and I would like to loop through the pixles, swapping the colours in the image for my predefined colors.
if say pixle 1 was already in my predefined colors i would like to leave... -
How to submit data on web pages using script..?
Hi All,
by using post method ,i cant see what are the values passed in url, is there a way other than GET to achieve this, i heard there is a way by using perl scripts.How to create perl scripts to submit data on web pages in particular URL . I would like to use some more scripts instead of submiting the data through POST and GET methods in forms. anybody have idea on this?
Thanks in Advance.... -
how do i get the filename of an image
what i have is an upload form, when the user clicks on upload an image there computer files are displayed so they can select an image (as standard), when they find there image and click on it how do i grab the file name on click to display on the page? im using php and jquery -
Is it possible to check which fields were changed?
Hello everyone,
I am wondering if it is possible to check *which* rows were updated when a user edits a field.
This is my problem: I have a list of users and it is important that no usernames are repeated. I have already created a function that checks if the username already exists in the database when a user is intially added. However, I am not sure how I can check if, once the username field is *updated*, if the newly updated field... -
PHP exec has no responding
The following function is used to execute pg_dump but have no responding at all. And I found there is no output. While the exactly command string executing on server desktop does work. And I have another function to execute a program saved in somewhere rather than "program files" and it works. php safe_mode is off.
Code:function create_new_csn_schema($xfrom_schema, $xtoschema){ $cmd ="\"c:\\program files\\PostgreSQL\\9.0\\bin\\pg_dump.exe\"
-
PHP+ODBC+FREETDS: select [field] AS [name] does not work!
Hi guys,
I have a unix server which has PHP 5.2.13 installed, and it has access to two SQL servers (one is running MSSQL SERVER 2000 and the other MSSQL 2005).
It uses FreeTDS - details:
Version: freetds v0.82
freetds.conf directory: /usr/local/etc
MS db-lib source compatibility: no
Sybase binary compatibility: no
Thread safety: yes... -
Undefined index
Hi, so this issue has been driving me crazy for the entire workday. I hope someone can help; I am sure it is trivial.
I am trying to access a user in a database based on their id. The id is auto incremented and thus unknown to the person accessing the user. I have created the functions below for accessing user information:
Code:function get_user_by_id($user) { global $connection; $query = "SELECT * ";
-
How to put information from sql database into html table
Hi, i want to code a .php file that will take information from an sql database based on a search query and then put the retrieved data into an html table that i've created within another file
essentially, i'm trying to 'add students' into a club table...
my current php code posts my collected data
Code:<?php mysql_connect ("localhost", "testuser","") or die (mysql_error());
-
keeping track of user input
Hi experts,
I am working with a table in a database (mysql) that keeps track of the users. The table fields are id, privilege (ie person's position in a committee -- a number mapping to a position name), username, and first and last name.
The privilege field is to be a scroll-down menu. I have created a simple one in HTML (let me know if you'd like me to post code), but then I realised that the selected item will not actually... -
meofcors started a topic How to find pharses stored in a file in another large text and replace themin PHPHow to find pharses stored in a file in another large text and replace them
i have a text file say "list.text" containing phrase that is words and spaces, each phrase is in a new line.
I have a large number of text files in the form of paragraphs of size app 2mb each,i need to find the phrases existing in the list.text in every file and replace them with phrases having _ in place of spaces.
my code below shows error i cannot comprehend something related to memory.PLZ help
...