emiola 0 Junior Poster in Training

Hello, kindly look at my php code to insert registration data into a MySQL database. Here is the code below and further below, the error response I keep getting.

<?php

error_reporting(E_ALL);
ini_set('display_errors', 1);

$servername = "localhost";
$username = "emiola";
$password = "emmybaba2020";
$dbname = "tutors";

// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn) {
  die("Connection failed: " . $conn->connect_error);
}

if (isset($_POST['submit']))
{

$title = $_POST['title'];

$firstname = $_POST['firstname'];
$flastname = $_POST['lastname'];
$email = $_POST['email'];

}

$sql = "INSERT INTO tutorsignup (firstname, lastname, email)
VALUES ('$firstname', '$lastname', '$email')";

if ($conn->query($sql) === TRUE) {
  echo "New record created successfully";
} else {
  echo "Error: " . $sql . "<br>" . $conn->error;
}

$conn->close();

?>

Error Message
connect_error); } if (isset($_POST['submit'])) { $title = $_POST['title']; $firstname = $_POST['firstname']; $flastname = $_POST['lastname']; $email = $_POST['email']; } $sql = "INSERT INTO tutorsignup (firstname, lastname, email) VALUES ('$firstname', '$lastname', '$email')"; if ($conn->query($sql) === TRUE) { echo "New record created successfully"; } else { echo "Error: " . $sql . "
" . $conn->error; } $conn->close(); ?>

Thank you.

emiola 0 Junior Poster in Training

Hello,
As you indicated, you are looking at 16 sites. Will the two boxes be able to supply the number of virtual machines? Take a look at the number of virtual servers your edition of the 2008 R2 can give you.
Two, if you are taking care of just 110 users, I see no problem with this if you are actually running exchange and sharepoint directly on the hardware but in a virtualized envriment, run a lab first. Also remember to make your PDC a dedicated one.
Also take a look at this:
A. The decision about whether to purchase the Standard, Enterprise, or Datacenter edition of Windows Server 2008 R2 should depend on two major factors: the number of virtual machines (VMs) you intend to run and your high availability requirements.

High availability is only available with the Enterprise and Datacenter SKUs, so if you want clusters and features like Live Migration, you have to use Enterprise or Datacenter edition.

The next factor is the number of VMs. Standard Edition supports one physical OS and one virtual OS (VM), Enterprise supports one physical OS and four virtual OSs, and Datacenter supports one physical OS and an unlimited number of virtual OSs. Note that Standard and Enterprise are purchased on a per-server basis while Datacenter is purchased on a per-processor basis, and at least two processors (sockets) must be licensed on each server with Datacenter.

You can assign multiple licenses to a single …

emiola 0 Junior Poster in Training

Hello,
Kindly take a look at the code (use view source) of this webpage http://www.qestinfosystems.com/oaaco.

The "About Us" button is supposed to have a dropdown menu but for a reason/reasons bearting me, the dropdown fails to show up on mouse hover.
See the css file http://www.qestinfosystems.com/oaaco/mainstyle.css
Advice needed please.


See Css code below:

body {
	background-position: center top;
	background: #0000F2 url('PNGS/bodybground2.png') no-repeat center
top;
	width: auto;
	margin: 0px;
}
#navdiv {
	margin: 100px 0px 0px 0px;
	height: 0px;
	width: 970px;
	color: #FFFFFF;
	font-family: Verdana, Geneva, Tahoma, sans-serif;
	font-size: 8pt;
	clip: rect(0px, auto, auto, auto);
	list-style-type: none;
	float: none;
	clear: both;
	display: block;
}
ul#navdiv {
	list-style-type: none;
	width: 970px;
	padding-right: 0px;
	padding-bottom: 0px;
	padding-left: 0px;
	margin-top: 17px;
	top: 0px;
	left: 34px;
}
#navdiv li {
	background-image: url('PNGS/buttonbground.png');
	background-repeat: no-repeat;
	background-attachment: scroll;
	background-position: center center;
	height: auto;
	text-align: center;
	line-height: 54px;
	float: left;
	width: 119px;
	margin-left: 1px;
	margin-top: 0px;
	margin-bottom: 0px;
}
#navdiv li a:link {
	font-family: Verdana, Geneva, Tahoma, sans-serif;
	font-size: 12px;
	vertical-align: middle;
	text-align: center;
	background-image: url('PNGS/buttonbground.png');
	background-repeat: no-repeat;
	background-attachment: scroll;
	background-position: center center;
	text-decoration: none;
	color: #FFFFFF;
	width: 120px;
	height: 32px;
}
#navdiv li a:visited {
	font-family: Verdana, Geneva, Tahoma, sans-serif;
	font-size: 12px;
	vertical-align: middle;
	text-align: center;
	background-image: url('PNGS/buttonbground.png');
	background-repeat: no-repeat;
	background-attachment: scroll;
	background-position: center center;
	text-decoration: none;
	color: #FFFFFF;
}

#navdiv li a:hover {
	font-family: Verdana, Geneva, Tahoma, sans-serif;
	font-size: 12px;
	font-weight: normal;
	text-decoration: none;
	vertical-align: middle;
	text-align: center;
	background-image: url('PNGS/buttonbgroundhover.png');
	background-repeat: no-repeat;
	background-attachment: scroll; …
emiola 0 Junior Poster in Training

Am I right?

<?php
if(isset($_POST['email'])) {
	
	// EDIT THE 2 LINES BELOW AS REQUIRED
	$email_to = "emiola@qestinfosystems.com";
	$email_subject = "Abstract Submission Via Journal Website";
	
	
	function died($error) {
		// your error code can go here
		echo "We are very sorry, but there were error(s) found with the form you submitted. ";
		echo "These errors appear below.<br /><br />";
		echo $error."<br /><br />";
		echo "Please go back and fix these errors.<br /><br />";
		die();
	}
	
	// validation expected data exists
	if(!isset($_POST['first_author_title']) ||
		!isset($_POST['first_author_surname']) ||
		!isset($_POST['first_author_othernames']) ||
		!isset($_POST['second_author_title']) ||
		!isset($_POST['second_author_surname']) ||
		!isset($_POST['second_author_othernames']) ||
		!isset($_POST['third_author_title']) ||
		!isset($_POST['third_author_surname']) ||
		!isset($_POST['third_author_othernames']) ||
		!isset($_POST['presentation_type']) ||
		!isset($_POST['subject_classification']) ||
		!isset($_POST['presentation_title']) ||
		!isset($_POST['first_author_org']) ||
		!isset($_POST['first_author_phone']) ||
		!isset($_POST['first_authoe_email']) ||
		!isset($_POST['second_author_org']) ||
		!isset($_POST['second_author_phone']) ||
		!isset($_POST['second_author_email']) ||
		!isset($_POST['third_author_org']) ||
		!isset($_POST['third_author_phone']) ||
		!isset($_POST['second_author_email']) ||
		!isset($_POST['abstract_uploaded'])) {
		died('We are sorry, you did not fill in required information listed above. Please do so.');		
	}
	
	$first_author_title = $_POST['first_author_title']; // required
	$first_author_surname = $_POST['first_author_surname']; // required
	$first_author_othernames = $_POST['first_author_othernames']; // required
	$second_author_title = $_POST['second_author_title']; // required
	$second_author_surname = $_POST['second_author_surname']; // required
	$second_author_othernames = $_POST['second_author_othernames']; // required
	$third_author_title = $_POST['third_author_title']; // required
	$third_author_surname = $_POST['third_author_surname']; // required
	$third_author_othernames = $_POST['third_author_othernames']; // required
	$presentation_type = $_POST['presentation_type']; // required
	$subject_classification = $_POST['subject_classification']; // required
	$presentation_title = $_POST['presentation_title']; // required
	$first_author_org = $_POST['first_author_org']; // required
	$first_author_phone = $_POST['first_author_phone']; // required
	$first_author_email = $_POST['first_author_email']; // required
	$second_author_org = $_POST['second_author_org']; // required
	$second_author_phone = $_POST['second_author_phone']; // required
	$second_author_email = $_POST['second_author_email']; // required
	$third_author_org = $_POST['third_author_org']; // required
	$third_author_phone = $_POST['third_author_phone']; // required
	$third_author_email = $_POST['third_author_email']; // required
	$abstract_uploaded = $_POST['abstract_uploaded']; // required
	$email_from = …
emiola 0 Junior Poster in Training

I am yet to resolve this issue. Will someone look into why this script would upload file to my server successfully but not send the form data via email.

<?php
if(isset($_POST['email'])) {
	
	// EDIT THE 2 LINES BELOW AS REQUIRED
	$email_to = "me@myemailaddress.com";
	$email_subject = "Abstract Submission Via Journal Website";
	
	
	function died($error) {
		// your error code can go here
		echo "We are very sorry, but there were error(s) found with the form you submitted. ";
		echo "These errors appear below.<br /><br />";
		echo $error."<br /><br />";
		echo "Please go back and fix these errors.<br /><br />";
		die();
	}
	
	// validation expected data exists
	if(!isset($_POST['first_author_title']) ||
		!isset($_POST['first_author_surname']) ||
		!isset($_POST['first_author_othernames']) ||
		!isset($_POST['second_author_title']) ||
		!isset($_POST['second_author_surname']) ||
		!isset($_POST['second_author_othernames']) ||
		!isset($_POST['third_author_title']) ||
		!isset($_POST['third_author_surname']) ||
		!isset($_POST['third_author_othernames']) ||
		!isset($_POST['presentation_type']) ||
		!isset($_POST['subject_classification']) ||
		!isset($_POST['presentation_title']) ||
		!isset($_POST['first_author_org']) ||
		!isset($_POST['first_author_phone']) ||
		!isset($_POST['first_authoe_email']) ||
		!isset($_POST['second_author_org']) ||
		!isset($_POST['second_author_phone']) ||
		!isset($_POST['second_author_email']) ||
		!isset($_POST['third_author_org']) ||
		!isset($_POST['third_author_phone']) ||
		!isset($_POST['second_author_email']) ||
		!isset($_POST['abstract_uploaded'])) {
		died('We are sorry, you did not fill in required information listed above. Please do so.');		
	}
	
	$first_author_title = $_POST['first_author_title']; // required
	$first_author_surname = $_POST['first_author_surname']; // required
	$first_author_othernames = $_POST['first_author_othernames']; // required
	$second_author_title = $_POST['second_author_title']; // required
	$second_author_surname = $_POST['second_author_surname']; // required
	$second_author_othernames = $_POST['second_author_othernames']; // required
	$third_author_title = $_POST['third_author_title']; // required
	$third_author_surname = $_POST['third_author_surname']; // required
	$third_author_othernames = $_POST['third_author_othernames']; // required
	$presentation_type = $_POST['presentation_type']; // required
	$subject_classification = $_POST['subject_classification']; // required
	$presentation_title = $_POST['presentation_title']; // required
	$first_author_org = $_POST['first_author_org']; // required
	$first_author_phone = $_POST['first_author_phone']; // required
	$first_author_email = $_POST['first_author_email']; // required
	$second_author_org = $_POST['second_author_org']; // required
	$second_author_phone = $_POST['second_author_phone']; // required
	$second_author_email …
emiola 0 Junior Poster in Training

You have to state your file move part with something such as "\\192.168.0.23\ ... until you get to the final file destination. I think it is similar to trying to access another machine on your network through a browser such as \\ipaddress of the machine\
I hope this works.

emiola 0 Junior Poster in Training

Pritaeas, thanks for your observations. I could get the uploaded files sent to the destination directory successfully however, the form data could not be sent to the genuine email address (not the one I specified in the code I posted). I cold get the uploaded file but the form data was not delivered.
Please advise.

emiola 0 Junior Poster in Training

I have noticed the space that was not suppose to be there and corrected it however, I seem not to comprehend the $email_to you hinted at. Please a bit more explanation may prove useful.

emiola 0 Junior Poster in Training

Thanks for the after thought. On pushing the button, the php script file echo "Sorry, there was a problem uploading your file." as indicated on line 140 of the script. Also, no data was delivered to the email account indicated. I hope this sheds some light on the issue.

emiola 0 Junior Poster in Training

Hello,
I need my web users to send an uploaded file along with their registration data.
The form will be sent via email while at the same time, the uploaded file will be stored in a folder on my server.
Take a look at the code please:

<?php
if(isset($_POST['email'])) {
	
	// EDIT THE 2 LINES BELOW AS REQUIRED
	$email_to = "example@noexample.com";
	$email_subject = "Abstract Submission Via Journal Website";
	
	
	function died($error) {
		// your error code can go here
		echo "We are very sorry, but there were error(s) found with the form you submitted. ";
		echo "These errors appear below.<br /><br />";
		echo $error."<br /><br />";
		echo "Please go back and fix these errors.<br /><br />";
		die();
	}
	
	// validation expected data exists
	if(!isset($_POST['first_author_title']) ||
		!isset($_POST['first_author_surname']) ||
		!isset($_POST['first_author_othernames']) ||
		!isset($_POST['second_author_title']) ||
		!isset($_POST['second_author_surname']) ||
		!isset($_POST['second_author_othernames']) ||
		!isset($_POST['third_author_title']) ||
		!isset($_POST['third_author_surname']) ||
		!isset($_POST['third_author_othernames']) ||
		!isset($_POST['presentation_type']) ||
		!isset($_POST['subject_classification']) ||
		!isset($_POST['presentation_title']) ||
		!isset($_POST['first_author_org']) ||
		!isset($_POST['first_author_phone']) ||
		!isset($_POST['first_authoe_email']) ||
		!isset($_POST['second_author_org']) ||
		!isset($_POST['second_author_phone']) ||
		!isset($_POST['second_author_email']) ||
		!isset($_POST['third_author_org']) ||
		!isset($_POST['third_author_phone']) ||
		!isset($_POST['second_author_email']) ||
		!isset($_POST['abstract_uploaded'])) {
		died('We are sorry, you did not fill in required information listed above. Please do so.');		
	}
	
	$first_author_title = $_POST['first_author_title']; // required
	$first_author_surname = $_POST['first_author_surname']; // required
	$first_author_othernames = $_POST['first_author_othernames']; // required
	$second_author_title = $_POST['second_author_title']; // required
	$second_author_surname = $_POST['second_author_surname']; // required
	$second_author_othernames = $_POST['second_author_othernames']; // required
	$third_author_title = $_POST['third_author_title']; // required
	$third_author_surname = $_POST['third_author_surname']; // required
	$third_author_othernames = $_POST['third_author_othernames']; // required
	$presentation_type = $_POST['presentation_type']; // required
	$subject_classification = $_POST['subject_classification']; // required
	$presentation_title = $_POST['presentation_title']; // required
	$first_author_org = $_POST['first_author_org']; // required …
emiola 0 Junior Poster in Training

How do you mean in Windows? It will be better understood if you will expantiaite on "activate it in windows or Ubutu". Do you want to connect to your database from your windows operating system such that you will be able to export/import data?
If yes, let the forum know.
Thank you.

emiola 0 Junior Poster in Training

Initially I was using a switch to connect all my 5 desktop systems using one of them as my internet server/gateway. On that particular internet server-desktop pc, I use the Sierra wireless Aircard 580 modem which I adapted with a pcmcia-pci card. I used the ICS to share out internet to the other systems using dhcp configuration. Each desktop carries the (192.168.0.last dhcp assigned digit) while the internet server desktop carries 192.168.0.1 as the gateway. Everything was working perfectly until I introduced the D-link router into the LAN.
Initially I connected the Ethernet cable of the internet server desktop to the INTERNET port of the router but the indicator remained a solid red color. Also, I couldn’t get the 192.168.0.1 on my browser. So I connected the internet server desktop directly to one of the LAN ports of the router (using one of the 4 LAN ports) and then connected my switch to another LAN port of the same router. Then I was able to get the http://192.168.0.1 ip to enable me configure the router through the browser.
At this stage, the router still could not get internet connection from the desktop internet server. (Please note that all this while, I was reading up everything the manual says as well as visited many forums for a way out).
I finally thought the router’s internet connection port was faulty so I returned it in exchange for another one. Alas! The issue remains …

emiola 0 Junior Poster in Training

hello friend,
I could be of assistance too. Just mention one thing you'd like to do and let's see if we can throw in some practice!
First thing though: You must get this book to open your eyes and depending, turn you to a pro within three or four dedicated months:http://search.barnesandnoble.com/booksearch/results.asp?WRD=A+practical+guide+to+red+hat+linux+Mark+G%2E+Sobell
Go for either the 2008 or 2006 edition. You can buy the used one as it is very cheap and they ship worldwide. Without meaning to, I find the book really helpful.
Once you get the book, let me know.
However, for a start, if you must touch any code, you must first log in as "root" as username and supply the p[assword you created during installation. Also go to the desktop preference to change to KDE desktop to enable you use the command console better.
See you then!

emiola 0 Junior Poster in Training

Thanks a lot folks. You are rigth about the free ubuntu cd. I have already recieved one from canonica but the 9.04 release I recieved is the X64-bit version which is not compatible with my systems. My systems require the i386 OR i686 versions for installation. All my efforts to get either of these have been really difficult. I will prefer to have any of the following: Fedora Core, Red hat enterprise, Ubuntu (i386), CentOS (i386) version.
A friend of mine provided me with RHEL 3 to start something on my dell poweredge machines. Although it is an old version but I greatly appreciate it. To tell you, I like it very much as it is challenging. However, I want to use the latest or current versions.
Please help me.
I have already started encountering issues on the RHEL 3: None of the two ethernet card (eth and eth1) ip address could be detected during booting despite the fact that my other systems running windows XP are internet connected on my LAN. I will open a new thread for this issue soon. I will inform you here when I do.
Every help that comes my way in terms of theis cd issue is greatly welcome.
Thanks once more.

emiola 0 Junior Poster in Training

Thank you all. I appreciate your contributions however, the solution to my issue is still not around.
If I am permitted to ask:
Why can't a serious, dedicated and ambitious Nigerian finds it difficult to become a server administrator through self effort just because no online store is willing to let him pay for linux server installation cds depsite the fact that he has his hard earned server computer systems to use? Also, why won't anyone on Daniweb be kind enough to send some his way (despite the fact that he is willing to pay for them and the cds cost only some few dollars!)
I strongly believe Daniweb forum is about helping serious minded individuals like me to achieve his dream.
I AM WILLING TO BUY BUT PAYMENT STUMBLING BLOCKS WOULD NOT PERMIT ME. THIS IS AN S.O.S CALL. I HOPE SOMEONE KIND HEARTED WILL DO SOMETHING.
Note: In case you wish to send me any (Fedora Core 10, Ubuntu (i686 or i386), CentOS 5.3 (i386 or i686), kindly send it to:
Emiola T.A
Qest Information Systems Limited
3 Oshineye street, Kadupe, Pedro,
Shomolu,
Postal code:23401
Lagos, Nigeria

Thanks.

emiola 0 Junior Poster in Training

I visited linuxcd.org to see if I can order for live cds but I couldn't pay due to their method of payment (paypal). I also contacted their sales department but I was told that paypal is the only method of payment. Could somebody have pity on me and send some to me.
I REPEAT I DON'T MIND PAYING FOR THEM.
Thank you.

emiola 0 Junior Poster in Training

Thanks a lot fellas. I appreciate your advice. In fact, I just recieved the Ubuntu 9.04 server edition CD this morning from CANONICAL LIMITED. I applied for it in April 28, through their website but due to the notice that it could take between 6 and 10 weeks shipping made me feel that it was too long for me to wait. Alas! I recieved it this morning through TNT Post. I am really impressed and couldn't contain myself such that I shouted "Oh MY God!" three times in the office.
Please help me to say A BIG THANK YOU TO CANONICAL LIMITED and the entire Ubuntu project for this wonderful gift. Personally, I call it A GIFT OF TRANSFORMATION FOR MY IT LIFE.
I plan to start trying the installation out this weekend on my Compaq Proliant 2500 but before then, I shall use an intel P4 box to practice the whole show and have a hang of it. Please wish me goodluck as I join you my mentors. Thanks a lot once more.
Please don't forget that I may have the cause to call for your help, please respond.

emiola 0 Junior Poster in Training

Thanks a lot fellas. I appreciate your advice. In fact, I just recieved the Ubuntu 9.04 server edition CD this morning from CANONICAL LIMITED. I applied for it in April 28, through their website but due to the notice that it could take between 6 and 10 weeks shipping made me feel that it was too long for me to wait. Alas! I recieved it this morning through TNT Post. I am really impressed and couldn't contain myself such that I shouted "Oh MY God!" three times in the office.
Please help me to say A BIG THANK YOU TO CANONICAL LIMITED and the entire Ubuntu project for this wonderful gift. Personally, I call it A GIFT OF TRANSFORMATION FOR MY IT LIFE.
I plan to start trying the installation out this weekend on my Compaq Proliant 2500 but before then, I shall use an intel P4 box to practice the whole show and have a hang of it. Please wish me goodluck as I join you my mentors. Thanks a lot once more.
Please don't forget that I may have the cause to call for your help, please respond.

emiola 0 Junior Poster in Training

POINT 1 : Yes you can distribute internet connection/access throughout the network. Just don’t be afraid. BREAKING UP THE NETWORK INTO SMALLER UNIT LANS AND USING ROUTER AND ETHERNET SWITCH IS THE SECTRET.

POINT 2: Router is the device used to receive internet right from your internet source (either directly from the internet modem or from the computer you use as your local server) while the access point switch is the ethernet switch (cable or wifi) that you use to set up your LAN ( a connection of two or more computer systems). The router is used to share internet access to the two or more LANs in a location (as is your case) with high level of security against intrusion through the incoming internet access.
POINT 3: If you have broadband internet, You need another router to equally distribute internet right from your server on the ground floor to each floor above. (see: http://en.kioskea.net/contents/lan/routeurs.php3) and normal switch as access point for each LAN.
Consider each room as a separate LAN with its own separate workgroup name. Use a fast Ethernet switch (D-link or 3Com is okay) of appropriate port numbers to receive a CAT5e cable coming from the router. In turn this ehternet switch will serve as your access point to that classroom LAN.
POINT 4: Normal windows XP is okay to save other technicians the stress in case something goes wrong when you are not around. All it takes is just break …

emiola 0 Junior Poster in Training

Hello forum members,
Due to the very slow speed internet access I use, I find it almost impossible to successfully download and burn any linux installation live cd (especially ubuntu and fedora10).
I have been reading studiously in preparing myself technically for server administration using linux for the past four months. I have also acquired two refurbished compaq proliant servers (2500 and DL760) to start my journey in the world of server systems management. Unfortunately, the software tool I need is the problem (the live CD). Is there anyone that can out of consideration for my future success, mail these cds to me? I do not mind bearing the cost of shipping. If you wish to do so, my address is: Emiola T.A. Qest Information Systems Limited, 3 Oshineye Street, Kadupe, Pedro, Shomolu, Lagos, Nigeria (ZIP postal 23401)
If you wish to get funded for the shipping, kindly let me know through this post thread or mail me: emiola at qestinfosystems dot com.
Please help me out.
Thank you.

emiola 0 Junior Poster in Training

Hello forum members,
Due to the very slow speed internet access I use, I find it almost impossible to successfully download and burn any linux installation live cd (especially ubuntu and fedora10).
I have been reading studiously in preparing myself technically for server administration using linux for the past four months. I have also acquired two refurbished compaq proliant servers (2500 and DL760) to start my journey in the world of server systems management. Unfortunately, the software tool I need is the problem (the live CD). Is there anyone that can out of consideration for my future success, mail these cds to me? I do not mind bearing the cost of shipping. If you wish to do so, my address is: Emiola T.A. Qest Information Systems Limited, 3 Oshineye Street, Kadupe, Pedro, Shomolu, Lagos, Nigeria (ZIP postal 23401)
If you wish to get funded for the shipping, kindly let me know through this post thread or mail me: emiola at qestinfosystems dot com.
Please help me out.
Thank you.

emiola 0 Junior Poster in Training

Thanks for your advice nav33. I had posted before realizing my folly. Immediately after posting, I visited w3schools and noticed what you too sugessted and addede the

$dbcnx

parameter but I still got the same response. Take a look please

<?php>

$dbcnx = mysql_connect("localhost","username","password");
if (!$dbcnx){
exit('<p>Unable to connect to the database</p>');
}
$dbselector = mysql_select_db('lsschnln01', $dbcnx);
if (!$dbselector){
echo('sorry database not connected');
}
If (isset($_POST['validate']))
{
$SchoolName = mysql_real_escape_string($_POST['SchoolName']);
$SchoolEmail = mysql_real_escape_string($_POST['SchoolEmail']);
$UserName = mysql_real_escape_string($_POST['UserName']);
$pscode = mysql_real_escape_string($_POST['pscode']);

$sql = mysql_query("INSERT INTO accesscarduse (SchoolName, SchoolEmail, UserName, pscode) 
VALUES ('$SchoolName', '$SchoolEmail', '$UserName', '$pscode')")or 
die (mysql_error()); 
}
echo "Values successfully submitted to database. Thank you" ;
?>

I've gone into my database to check things up. lsschnln01 is available for sure. Should I drop the database and recreate it? Please advise.
Also, I have no idea about how to script a site search engine for my website without the option of google search. Please if you have any code guide, bless me with it.
Thanks.

emiola 0 Junior Poster in Training

Thanks for the help fellas. After going through your suggestions, I restructure the script using the recommendations you gave me. I also noticed that I didn't select my database in the mysql query. So I rewrote the code as below and got the message sorry database not connectedNo database selected

<?php>
$dbcnx = mysql_connect("localhost","lsschnln_emiolab","bembestica");
if (!$dbcnx){
exit('<p>Unable to connect to the database</p>');
}
$dbselector = mysql_select_db('lsschnln01');
if (!$dbselector){
echo('sorry database not connected');
}
If (isset($_POST['validate']))
{
$SchoolName = mysql_real_escape_string($_POST['SchoolName']);
$SchoolEmail = mysql_real_escape_string($_POST['SchoolEmail']);
$UserName = mysql_real_escape_string($_POST['UserName']);
$pscode = mysql_real_escape_string($_POST['pscode']);

$sql = mysql_query("INSERT INTO accesscarduse (SchoolName, SchoolEmail, UserName, pscode) 
VALUES ('$SchoolName', '$SchoolEmail', '$UserName', '$pscode')")or 
die (mysql_error()); 
}
echo "Values successfully submitted to database. Thank you" ;
?>

nav33, will you look into this as you are immediately online now.

emiola 0 Junior Poster in Training

Despite the fact that my script runs perfectly well on the server, it fails to submit form data into mysql database. Kindly look into this for me. see code below:

<?php>
$dbcnx = mysql_connect("localhost","user_name","password");
if (!$dbcnx){
exit('<p>Unable to connect to the database</p>');
}
If (isset($_POST['submit']))
{
$SchoolName = $_POST['SchoolName'];
$SchoolEmail = $_POST['SchoolEmail'];
$UserName = $_POST['UserName'];
$pscode = $_POST['pscode'];

$sql = mysql_query("INSERT INTO accesscarduse (SchoolName, SchoolEmail, UserName, pscode) 
VALUES ('$SchoolName', '$SchoolEmail', '$UserName', '$pscode')"); 
}
echo "Values successfully submitted to database. Thank you" ;
?>

Is the issue really with the script or with my mysql database table structure?

emiola 0 Junior Poster in Training

Hello Newbie. You don't need to do so much. Really PHP script is simple to write. all you need is make your code like a lawyer builds a case. Let's see if I can use your code to explain somethings to you but right away, I have an issue with a script too. See you in about 10 hours time.
Feel cool, PHP is friendly.

emiola 0 Junior Poster in Training

I keep on getting this message:

Parse error: syntax error, unexpected T_ECHO in /home/lsschnln/public_html/Registration Form/quiz_regedit_2.php on line 32
after running the script

<html>
<body><?php
if (isset($_POST['submit']))
  {
  $to = "quizentry@lagosschoolsonline.net" ;
  $subject = "Quiz Entry" ;
  $SchoolName = $_POST['SchoolName'] ; 
  $SchoolAddress = $_POST['SchoolAddress'] ;
  $Locality = $_POST['Locality'] ;
  $MobileNumber = $_POST['MobileNumber'] ;
  $Landphone = $_POST['Landphone'] ;
  $email = $_POST['email'] ;
  $website = $_POST['website'] ;
  $ContactPerson = $_POST['ContactPerson'] ;
  $MarketerInCharge = $_POST['MarketerInCharge'] ;
  $Username = $_POST['Username'] ;
  $Password = $_POST['Password'] ;
  // SECTION B
  $malecandidate = $_POST['malecandidate'] ;
  $ddm = $_POST['ddm'] ;
  $mmm = $_POST['mmm'] ;
  $yym = $_POST['yym'] ;
  $Refnumberm = $_POST['Refnumberm'] ;
  //FEMALE
  $femalecandidate = $_POST['femalecandidate'] ;
  $ddf = $_POST['ddf'] ;
  $mmf = $_POST['mmf'] ;
  $yyf = $_POST['yyf'] ;
  $Refnumberf = $_POST['Refnumberf'] ;
  $message = $_POST('$SchoolName','$SchoolAddress','$Locality','$MobileNumber','$Landphone','$email','$website','$ContactPerson','$MarketerInCharge','$Username','$Password','$malecandidate','$ddm','$mmm','$yym','Refnumberm','$femalecandidate','$ddf','$mmf','$yyf','$Refnumberf') ;
  mail($to,$subject,$message)
  echo  "Your entries have been submitted.Thank you." ;
  }
else
  echo "Form not properly completed")?>
</body>
</html>

The error is becoming a horror for me. Please help.

emiola 0 Junior Poster in Training

I have removed the semi-colon but the result is still the same. Any other suggestion please?

emiola 0 Junior Poster in Training

Dear friends,
Kindly look into this code below for me. I intend to use it to send my form data(not validated) to an email address. After I filled the form and running the code, it is the else echo statement ("Form not properly completed") that i keep recieving. However, I could not locate the problem. Please treat as urgent for me.
See code below:

<html>
<body><?php
if (isset($_POST['submit']))
  {
  $to = "quizentry@lagosschoolsonline.net";
  $from = "quizentry@lagosschoolsonline.net";
  $SchoolName = $_POST['SchoolName'] ; 
  $SchoolAddress = $_POST['SchoolAddress'] ;
  $Locality = $_POST['Locality'] ;
  $MobileNumber = $_POST['MobileNumber'] ;
  $Landphone = $_POST['Landphone'] ;
  $email = $_POST['email'] ;
  $website = $_POST['website'] ;
  $ContactPerson = $_POST['ContactPerson'] ;
  $MarketerInCharge = $_POST['MarketerInCharge'] ;
  $Username = $_POST['Username'] ;
  $Password = $_POST['Password'] ;
  // SECTION B//
  $malecandidate = $_POST['malecandidate'] ;
  $ddm = $_POST['ddm'] ;
  $mmm = $_POST['mmm'] ;
  $yym = $_POST['yym'] ;
  $Refnumberm = $_POST['Refnumberm'] ;
  //FEMALE//
  $femalecandidate = $_POST['femalecandidate'] ;
  $ddf = $_POST['ddf'] ;
  $mmf = $_POST['mmf'] ;
  $yyf = $_POST['yyf'] ;
  $Refnumberf = $_POST['Refnumberf'] ;
  //email address used//
  if (mail($to,$SchoolName,$SchoolAddress,$Locality,$MobileNumber,$Landphone,$email,$website,$ContactPerson,$MarketerInCharge,$Username,$Password,$malecandidate,$ddm,$mmm,$yym,$Refnumberm,$femalecandidate,$ddf,$mmf,$yyf,$Refnumberf));
  echo "Your entries have been submitted. Thank you." ;
  }
else
  echo "Form not properly completed"?>
</body>
</html>

Thank you.

emiola 0 Junior Poster in Training

I have been finding it difficult to understand the error statement I recieved from my php file using the code below. I keep on getting this result:
Parse error: syntax error, unexpected T_STRING, expecting '(' in /home/username/public_html/application_form.php on line 28

<?php echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?".">"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>

<body>
<?PHP
$Surname = $_POST['Surname'];
$OtherNames = $_POST['OtherNames'];
$Dateofbirth = $_POST['Dateofbirth'];
$age = $_POST['age'];
$sex = $_POST['sex'];
$Nationality = $_POST['Nationality'];
$stateoforigin = $_POST['stateoforigin'];
$Entryclassonrequest = $_POST['Entryclassonrequest'];
$religion = $_POST['religion'];
$parentsguardiansname = $_POST['parents/guardiansname'];
$occupation = $_POST['occupation'];
$phonenumbers = $_POST['phonenumbers'];
$whomchildliveswith = $_POST['whomchildliveswith'];
$previousschool = $_POST['previousschool'];
$imunizationdetails = $_POST['imunizationdetails'];
$target_address = 'info@uniqueeducationltd.com';
$headers = "Online Application Form Details";
if mail'('$Surname, $Othernames, $dateofbirth, $age, $sex')' {
echo(("<p><font color=#333366"<b>Thank you for your application, we will get back to you as soon as we can.</b></p>"));
}
else{
echo("<p><font color=#008000"><span class="style1"><strong><font size="5">Sorry Your form submission had some errors. Try again later.</b></p>");
die();
}
?>
</body>
</html>

Please someone help me out to rewrite line 28(highlighted in green color) as pointed out by the feedback. It is urgent.

emiola 0 Junior Poster in Training

I am starting to learn php and web designing but I don't know how to start so I need your help.Some tutorials and environment on which I will do programmig.
Please help me.
Email me at <EMAIL SNIPPED>
Thanks

Visit www.w3schools.com, you can also visit sitepoint to read the book written by Kevin Yank (That's what I did). However, I am very much sure, guys in Daniweb are very up to the task of putting you through. If you use dreamweaver for your designing, make sure you visit the dreamweaver section to meet and discuss with folks there. They are pretty helpful when it comes to assisting beginners like you and I in becoming better.
Friutful effort I wish you.

emiola 0 Junior Poster in Training

Hello Macneato,
We are waiting pls. Do us the favour even if it is releasing it chapter by chapter. We really appreciate it.
Thanks.

emiola 0 Junior Poster in Training

Do you mean LAMP server on debian/ubuntu or the tutorial you wrote on it?

emiola 0 Junior Poster in Training

Yea me too. I have downloaded the applications but I was only able to try out oracle10 express. I have to some extent mastered SQL and way into PHP at the w3school site.
My question is that can I use my same system to set up as my database server OR i need another system entirely and if so, the security implications involved.
This LAMP on debian/ubuntu utorial jbennet menioned did not carry the link to he tutorial. Will he kindly do that?

emiola 0 Junior Poster in Training

Thanks jbennet. I am aware of the fact and I have even attempted using Expression web but changed my mind due to the fact that I wanted to learn dreamweaver. I have started using dreamweaver but not as adequaely as FP. 2ndly, why should I be patronizing microsoft products alone when others are there for me to try out?
Jbennet, if you know of other professional web design software, let me know please.
I shall download Expression web to see how well I can go with it.
Thanks a lot I appreciate it.

emiola 0 Junior Poster in Training

All of you sound like real professionals so how about a word from someone who started knowing nothing at all! I use Dreamweaver and it is really easy to use...just a question of spending a few hours and it will all click into place. Insert your layers and insert your images (and, yes, Photoshop is the best .....I am really lazy and use Photoshop Elements!) and your text. Everything is so flexible and the layers can be moved around to create a pleasing design. Of course, I may be doing everything wrong but it seems to work! Easy to upload to your domain too from Dreamweaver. I only have Dreamweaver 3 and would love a more advanced version, but,for my purposes, it suffices.

You are just like me but our difference is that I seem not to know the usefulness of photoshop other than to magic-wand or maquee out an image. I prefer fireworks and even use coreldraw and acrobat reader to get my banner into my webpage templates.
If there is anything proving stubbornly difficult, be expecting my shout!
Thanks for the encouragement.

emiola 0 Junior Poster in Training

Personally, I recommend you stay with Dreamweaver. It has so many features that other authoring tools don't have. Then again, all those features may be overwhelming. For people starting off, for those who don't want to be web developers/designers, I recommend FrontPage. It's very easy to use because it resembles Word, which you've probably used. FrontPage doesn't have as many features as Dreamweaver, but certainly has more than PageBuilder.

For graphics, I recommend Photoshop.

Samaru,
With due respect, you may be right as well as wrong because it dependes on how skillful you are with a software. I just started learning how to use dreamweaver just some couple of months while having been using Frontpage for the past 5 years ( I started with FP2000). In fact, FP turned me to a dedicated web designer and gave me the opportunities to understand the windows better. I could use it in conjuction with dreamweaver where I wish to get something done with it.
My reason for turning to dreamweaver is to learn using it to upgrade my application usability and so, if I have any issue with it, be expecting my call for assistance.

emiola 0 Junior Poster in Training

Microsoft frontpage is really good depending on your dedication and it is simpler than dreamweaver. I have been using it for the past 5 years and almost all my sites were developed using it. Please note that dreamweaver is also very good to use. In fact there are some browser-side/server-side scripts (like current date) that can be easilly achieved in dreamweaver that you wouldn't be able to do in FP. If you are not good enough, site setting up your site before commencing work in dreamweaver can be trying for a beginner as well as webpage layout. There is no harm in trying FP out. One thing I really like about using FP is the ease of uploading your site after you migth have installed your FP extension in the control panel. To be brief, if you need a material (the one I used to tutor myself from a total novice), let me know. There are lots of other things in FP that makes web design a lot easy but I strongly recommend that you learn both alongside. And you know what? You can build a hybrid website using the two software without anyone better smarter. That's what i just started doing recently.
Hope you find this useful a bit.Bye.

emiola 0 Junior Poster in Training

While you are still online, do you have oracle connectivity configured on your ODBC data source manager?
To check this:
click Start,
click control panel,
click administartive tool,
click data sources ODBC
click system DNS (if your schemer is "system")
If you do not find the oracle driver, then you have to visit the oracle website to download the driver for your oracle 9 version.
After this, click on add on the system DNS of your data source ODBC to start configuring the connection driver.
NOTE: you will see the following:
DEscription
TNS Services
User ID
The description asks you to give the connection a statement you will use to easily identify the connction; the TNS service Name is your database IP address (127.0.0.1/1521 (1521 is the listener port number); the UserID is what you will type in the user when loggin to your oracle database.

From there, go to your excell software, click on Data from the menu bar and click on import external data.
I hope this helps a bit. If there is anyone else that can give you better instructions, I pray you find it.

emiola 0 Junior Poster in Training

Hello,
What database platform do you want to import data your data from and into Excell?

emiola 0 Junior Poster in Training

Peter,
If you will not mind, I started this thread to elicit responses from advanced pros like you and buddylee17 for the sake of people like me (Hope I didn't sound sentimental).
Peter, as you asked for my reason for using ODBC driver, please remember that I am a newbie. Also, I have oracle xe installed on my system that I used to connect to the oracle 10g xe database and I want to really establish how to link the database with my web visitor form. I installed and configured MySQL on my server and also installed the MySQL ODBC driver (version 5.1). What the problem is now that I couldn't establish a connection, despite that I supplied all the parameters corectly. All I kept getting is "unable to establish a connection: access denied to user". I left that and decided to try the oracle database connection. The connction was succesful however, I couldn't locate the table I created in the oracle database, when I wanted to link tables in the MS Access. The link table process was succesful for the sample HR table in the database as It appeared among the table list. Based on my explanation, the following issues are bothering me:
Issue 1. My desired destination is successful submission of form data from my website to a database (apart from MS Access)

Issue 2. I just sarted out in SQL (which I find stimulating), can some experienced database administrator put me through by pointing …

emiola 0 Junior Poster in Training

2eXtreme,
Have you downloaded any version of the oracle database (oracle 10g, and recently 11g)?
I use the oracle 10g express edition installed on my local PC to connect to my database. you can download any version by first hooking up to the oracle.com website, register and then dowload and install the database (either 10g or 11g version) to your PC. do so and let the forum know what to do next. Hope this does something?

emiola 0 Junior Poster in Training

Hi, I have noticed that a lot of newbies using MySQL ODBC driver on their Windows often come across difficulties testing the connection despite that they have created the database on their servers. If you can put our members through in step wise fashions, please respond to this tread. It will be of immense benefit to daniweb upcoming database-administartors members.

emiola 0 Junior Poster in Training

Calvin,
If I may ask, of what web management is the combination of WAMP especially with the involvement of WindowsXP? I need some information on this for futuristic purposes. Hope to recieve your response soon. Thanks.

emiola 0 Junior Poster in Training

Also, do you have any oracle database version (10g Express Edition, 11g) installed on your local system?
Click here to learn something about oracle 10g Express edition

emiola 0 Junior Poster in Training

If I may ask,
1. what operating sysytem are you using?
2. What HTML editor are you using?
3. Do you know how to add a database like MySQL on your web server?

Kindly send your replies and from there, the forum will know the next steps necessary.

emiola 0 Junior Poster in Training

I am having similar problem rigth now. I installed the MySQL ODBC driver version5.1 and I've configured my database on the server. I supplied my server name (mydomain.com), my username(myserveruserid_databaseuser), my password(myserveruserid_password) and my database name(myserveruserid_mydatabasename). However, upon clicking test connection button, below is the connection parameters result:

Connection failed: [HY000][MySQL][ODBC5.1 Driver] Access denied for user "databaseuser@'IP address' (Using password:YES)

I have checked and again but I seem not to find anything wrong. please what Ihave I done wrong? Please help.

emiola 0 Junior Poster in Training

I hope so too with helpful hands like yours. Thanks a lot for the response.

emiola 0 Junior Poster in Training

Hello Forum members,

My name is Emiola Taofeek. I joined daniweb in a determined search of knowledge on ASP scripting. I am a graduate of Biological Sciences from the university of Abeokuta (UNAAB) Ogun State, in Nigeria. My determination to become a business owner drove me into web design and thereafer, I became more involved in the IT business, specializing only in web based business activities. I am a webmaster to about 14 websites now (those of clients and my company's). My corporate website is <URL SNIPPED>. I recently delved into web hosting business and just started building my site <URL SNIPPED>. The need for me to really use asp scripted pages on the website drove me to really start learning. I got connected to Daniweb from the w3schools website. I will like to recieve instructions from Vicky Rawat if he could be kind enough. Also any other member is welcome.