i have a form where a user can search the database STAFF, here they insert a staff number and press submit.
the next page is using the $_Post to retrieve that value on the previous page and display the records. however its not working.
Can you help? Any sites?
Here is the code on my 2nd...
hi,
is it possible to insert a file into my database table using the POST method in PHP. i have seen examples using the global attributes but i need to only use POST as i have an HTML form and a PHGP confirmation page which calls the previous page values to insert.
I have tried...
hello,
This is a half mysql and PHP question. I was wondering if you can use JOINS to insert into multiple tables rather than using mysql_query() to invoke multiple queries?
If you can, could you point me to some examples?
hello,
I have a form which i need to insert records into multiple tables. i am using $_POST to retrieve values from the previous page and have been using the following statement to insert into a single table
$dbQuery = "INSERT INTO staff (staff_no, fname, lname, position_, sex, dob, salary)...
Hi,
I have the following script that inserts data into my SQL database. its a simple insert query to check if it works! but when i search my database, a new rowhasbeen added but it is blank.
I have looked at my code but cant find anything, can you?
<?php
global $strstaff;
// Database...
Why do i get this error when i query my database tables in MYPHPadmin?
#1046 - No Database Selected
I cannot view any of the data in the tables in myphpadmin only Mysql Console
hello everyone,
I have a sime error but cant figure out the solution.The following PHP script inserts 2 values into mySQL database i created using the POST method.
<?php
global $staffno;
global $fname;
// Database connection variables
$dbServer = "localhost";
$dbDatabase = "dreamhome"...
Hi,
i have been getting the following errors when i run some of my scrpits on my WAMP5.
Fatal error: Call to undefined function blah blah blah line 17
What could it be, I had a look see to check if my EXIF and MBSTRINg was installed, and they seem to be as they are in the module extensions...
Hi,
I would like to add a column so that images can be inserted and viewed from a mysql database. I have set up the table as follows:
CREATE TABLE Staff
(staff_no CHARACTER(5) PRIMARY KEY,
fname CHARACTER VARYING(20),
lname CHARACTER...
Hi,
I have the following code to display an image in PHP
<?php
// get a file name
$file='eclipse.jpg';
// check it is a jpeg file
if(exif_imagetype($file) == IMAGETYPE_JPEG) {
$exif = exif_read_data($file,"COMPUTED,IFD0", TRUE);
print ("Picture taken {$exif['IFD0']['DateTime']} "...
Hi Everyone,
Choices, choices, choices. Having lots of options is great... but not when it comes to choosing one! There are too many options and then after taking all that time to choose a host, you all the questions.
Where does one start? Who is reliable? What is the average price you should...
Here is my code and i want to know how i can create a bcc when the sendmail function is used in asp
i have a hidden field on the previous page with my email address. and a field where the user enters their email add, the send page picks up those variables and sends to email which is their email...
Hi everyone,
---Im using SQL Server with which I have SQL authentication, so a user name and password.
---I create an ODBC Connection to my server and use SQL authentication radio box with my corrisponding username and password at the bottom.
---I link to my prefered database and test and...
I have created a dynamic site map in asp using FSO which displays all the files in a particular folder and exclude file extensions such as .xls, .ppt etc so only my asp and html pages are listed.
Now.... when the files are displayed, the FSO diplays the file name. example -...
Hello everyone,
I have a login to access pages on an intranet site which allows users to view restricted pages. If a user trys accessing a restricted page they will be diverted to the login page.
NOW.. I want the user to be diverted back to the page they where trying to view using JS Refferal...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.