nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Use the tool phpinfo. When you see the Wamp startup page, click on phpinfo. If you see a page with php information, then theres no problem with php. I am not sure about running asp files using wamp though.

nav33n 472 Purple hazed! Team Colleague Featured Poster

animal welfare: conferences for people who don't like fur coats and leather shoes.

Nope. There are associations like CUPA, which provide shelter and food for stray animals.

and why always "poor black kids in Africa"? Why not start close to home.

This picture is the reason I want to help those African kids. Maybe there are kids here who starve to death. But, I am sure, the condition here is not as worse as in Africa. But anyway, Its a personal choice.

90%+ of all money donated to charity (especially Big Charity) is wasted. It never reaches those it's intended to reach, instead being used for self-enrichment of people in the charity corporations.
Those "conferences" are really paid vacations, which is why they're all in exotic places on luxury resorts.

I agree.

nav33n 472 Purple hazed! Team Colleague Featured Poster

You just bumped into a 2+ yr old thread !

nav33n 472 Purple hazed! Team Colleague Featured Poster

Well, I would invest half of the money in shares/bank and donate the other half to animal welfare and human welfare(somalian kids).

nav33n 472 Purple hazed! Team Colleague Featured Poster

Is your WAMP server running ? What do you see when you type http://localhost in the url ? Does it show Wamp startup screen or page not found ? Also check if apache service is started when you start WAMP.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Most people recommend Marco Tabini's Zend php5 certification study guide.. You need to know php inside-out to clear the test. (That's what I have heard!). Read that book atleast 5 times, solve practice tests and that will do it. All the best.
Welcome to Daniweb, btw.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Do what you want. I don't care.

nav33n 472 Purple hazed! Team Colleague Featured Poster

You are trying to access the checkbox controls with wrong name. Its not

<b>Batata Harra Plate $3.00	= </b> '.$_POST['Batata Harra Plate $3.00'].'<br />
<b>Moutabel Plate $3.00	= </b> '.$_POST['Moutabel Plate $3.00'].'<br />
<b>Warak Piece $.50		= </b> '.$_POST['Warak Piece $.50'].'<br />
<b>Loubieh Bzeit Plate $3.00	= </b> '.$_POST['Loubieh Bzeit Plate $3.00'].'<br />

It has to be, $_POST,$_POST and so on.

I would suggest you to call you html page as order.php and at the top, print the posted form variables. Then you will know the names and values that are being passed. Here, check this out. Fill in the details and click submit. I hope you can understand what I am talking about.

<?php
print "<pre>";
print_r($_POST);
print "</pre>";
?>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.box1 {font-family: tahoma;
font-size: 11px;
color: #5B5C5C;
text-decoration: none;
border: 1px solid #B9B9B9;
}
-->
</style>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style1 {font-size: 16px}
-->
</style>
</head>

<body><a href="../css"></a>
<table width="841" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="841" height="90" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="841" height="90">&nbsp;</td>
</tr>
</table> </td>
</tr>
<tr>
<td height="27">&nbsp;</td>
</tr>
<tr>
<td height="890" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="841" height="890" valign="top"><p>&nbsp;</p>
<form action="order.php" method="post" name="frm_email" id="frm_email">
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<!--DWLayoutTable-->
<tr>
<td width="26%" height="24" class="textbrwon"><div align="right"><span class="bodytext">First Name </span> : </div></td>
<td width="1%">&nbsp;</td>
<td colspan="6"><input name="name" type="text" class="box1" …
nav33n 472 Purple hazed! Team Colleague Featured Poster

Hi cscgal,
My latest offering is attached.
I usually work in Psp, as I find layer work easier there and its very user friendly. The winter months are the time when I do most of my work. Summer is taken up with producing and selling celebration cards. Gets me out and among people for a change.....lol

Thanks for the kind messages
IVYLADY 57

Great work !

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome! Post your question in Ms-access forum.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Can you show us your html part ? Here's one simple example form.

<?php  //mail.php
$message="";
$email = $_POST['email'];
$checkbox1=$_POST['checkbox1'];
$checkbox2=$_POST['checkbox2'];
$message.="<b>$email $checkbox1 $checkbox2</b>";
echo $message;
$to="some_email@email.com";
$subject="test mail";
$from="From: someone@email.com";
mail($to,$subject,$message,$from);
?>
<html>
<body>
<form name="test" action="mail.php" method="post">
Enter email address: <input type="text" name="email"><br />
<input type="checkbox" name="checkbox1" value=10> 20 &nbsp;
<input type="checkbox" name="checkbox2" value=20> 10 &nbsp;<br />
<input type="submit" name="submit" value="sendmail">
</form>
</body>
</html>
nav33n 472 Purple hazed! Team Colleague Featured Poster

You are guilty of staying up all night ! Go to your bed now.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Indeed. Hasn't anyone else played the Sims?

Nope. I haven't. How's it ?

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome :)

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb! You are posting your question in wrong forum ! Please read the guidelines before posting your question.
Cheers,
Nav

nav33n 472 Purple hazed! Team Colleague Featured Poster

# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "C:/wamp/www"

and

<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Satisfy all
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "C:/wamp/www">

Check those 2 lines in httpd.conf. If you give tshirtshop as the path, if you type localhost, you will get the list of files and folders in tshirtshop.

nav33n 472 Purple hazed! Team Colleague Featured Poster

yep. With $_POST, $_REQUEST and $_GET. You should escape all the special characters by using addslashes/mysql_real_escape_string.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Simplest 'next-forward' script, just to get the idea on how it works. You will find much more efficient code on the net.

<?php
$offset=isset($_REQUEST['offset'])?$_REQUEST['offset']:0;
$conn=mysql_connect("localhost","root");
mysql_select_db("test");
$total=mysql_num_rows(mysql_query("select * from test"));
$query="select * from test limit $offset,5";
$result=mysql_query($query);
while($row=mysql_fetch_array($result,MYSQL_ASSOC)){
	print_r($row);
}	
if($offset==0){
	$next_offset=$offset+1;
	$prev_offset=0;
} elseif($offset == $total) {
	$next_offset=$total;
	$prev_offset=$offset-1;
} else {
	$next_offset=$offset+1;
	if($next_offset==$total){
		$next_offset=$total;
	}
	$prev_offset=$offset-1;
}
echo "<a href=test.php?offset=$prev_offset>Prev</a>";
echo "<a href=test.php?offset=$next_offset>Next</a>";
?>

Cheers,
Nav

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb!

why the Dollars are having more value than someother currency.

What about pounds and dinars ?

nav33n 472 Purple hazed! Team Colleague Featured Poster

Hi there,i have joined newly to this site....I am a new to programming..i am developing a windows application using c#.net..I have the same problem stated by sagedavis but its windows application.

I have two types of users Admin and Normal users.
I am having one login screen.i want the application to identify the two types of users when they enter their username and password.
i saw the post of using session,but how to initialize the session and how to use it.....

The user login details for both admin and normal users are in a single table called account..
Help me out dude......
Thanks in advance......

Welcome to Daniweb. Please post your question in .NET forum !

nav33n 472 Purple hazed! Team Colleague Featured Poster

$checkboxvalue = $_POST['checkboxname'] is how you get the value of a checkbox. For example, if you have <input type=checkbox name=checkbox value=10> in your form, on submitting, you access the value (only if the checkbox is checked) as, $checkbox = $_POST['checkbox']; So, $checkbox has the value 10.

Cheers,
Nav

nav33n 472 Purple hazed! Team Colleague Featured Poster

:) webman07, What trudge said is right. If you had posted your question in sql forum, I am sure, by now, someone would have answered your question.

Anyway, When you buy a domain, I think they provide database with the domain. I don't think you can 'load' sql to your website. You should ask the your hosting company to do it for you.

nav33n 472 Purple hazed! Team Colleague Featured Poster

By chance you find any mysql error log, let us know.. :)

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome! Post your question here.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Someone had asked the same question here.

nav33n 472 Purple hazed! Team Colleague Featured Poster

What is the problem ?

nav33n 472 Purple hazed! Team Colleague Featured Poster

I hope you know html and php ? If you don't know, then you should learn it first.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Lot of people are going mad these days. The cause is unknown.

nav33n 472 Purple hazed! Team Colleague Featured Poster

The people in here are impressively brilliant aye!

Yes indeed.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Taxing someone is a difficult job. Thats why tax collectors get such a heavy salary !

nav33n 472 Purple hazed! Team Colleague Featured Poster

IT simply means Income Tax.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Telephone has become one of the essential needs of life!

nav33n 472 Purple hazed! Team Colleague Featured Poster

lol.. I guess he is communicating in Filipino !

nav33n 472 Purple hazed! Team Colleague Featured Poster

Strange things are happening lately.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Well, check DocumentRoot in httpd.conf . Also check <Directory "path/of/your/files"> in the same file. I guess they aren't properly configured.

nav33n 472 Purple hazed! Team Colleague Featured Poster

So i have about 300 students that all need to be placed in option statements (html). I need these names then put into a drop down menu for students to choose.

If you have these 300 students info in a table, then just fetch their info by using loops. Say, for example, you have student table with their info. You get the dropdown by doing something like this.

<?php
$conn=mysql_connect($host,$username,$pass);
mysql_select_db($dbname);
$query="select student_name from student";
$result=mysql_query($query);
echo "<select name=\"student_name\">";
while($row=mysql_fetch_array($result)){
   echo "<option value=".$row['student_name'].">".$row['student_name']."</option>";    
}
....

This will put all the student names in the select box.

The issue is, i have maybe 30 questions, which means that i have a hell of a long script. Is there anyway using mysql to import these names whenever i need them into a drop down menu?

30 questions ? What 30 questions ? About your second question, yes, you can write a function and whenever you need values from the table, you can call that function.

Also i plan to get the script to submit to a mysql database, what is the easiest way to do that and will allow me to extract the choices the easiest?

If you want to submit the user's input to a table, you do it using an insert statement. When the user submits the page, the form variables are accessed as $_POST or $_GET depending upon the method you want.

And last thing i need to know how from those names i submit into …

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Thanks! Wish you the same.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome!

nav33n 472 Purple hazed! Team Colleague Featured Poster

hmm..

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome :)

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome!

nav33n 472 Purple hazed! Team Colleague Featured Poster

Hi nav33n,

May I suggest using modified preorder tree traversal for the tree handling logic. It has worked wonders for me in every instance of tree traversal I have encountered. Take a look and see if you can put it to use for your situation:

http://www.sitepoint.com/article/hierarchical-data-database/

Have fun :)

Hi, I am not the one who wanted the treeview. But hey! thanks for the link.. :)