This isn't about making me "feel good"
The moderators here don't pick on the small guy.
You appear to be paranoid.
and your the jealous guy? :D
This isn't about making me "feel good"
The moderators here don't pick on the small guy.
You appear to be paranoid.
and your the jealous guy? :D
This isn't about making me "feel good"
The moderators here don't pick on the small guy.
You appear to be paranoid.
and your the jeolous guy? :D
One of the best ways of learning is by asking for help and as long as you learn from that help then next time they should be able to solve the same problem by themselves.
yeah thats exactly my point.... takeshi is just jumping from one problem to another. he do not absorbed the knowledge we provide. no effort at his side at all. he doesn't learn from it. he always ask for help.
How is that any worse than copying peoples answer in hopes of stealing the solved count?
you really feel good about yourself huh? I repeat i dont copy answers from dumb answers its not worth it.... i know moderators will get me from this as they like pick on small guy. Ive been quite a while on daniweb and ive seen many times members are cursing other people but dont get refractions. As for you, trying hard to provoke me to emotional response... im not scared and i dont care about reputations or whatsoever.
you know what takeshi.... im so sick and tired of debugging your code... i had help you many times and even provided code in many of your threads but you didn't had even the effort to payback the guys that helped you. You dont mark you thread solved. You just come here and beg for answers which is very annoying that some solutions are simple and obvious. i think your so lazy that your just copy and paste the code without even understanding it. Were like baby spoon feeding you here. Grow up and do you assignments on your own. You wont learn anything if you dont put your effort on it. I hope i make sense to you.
one way of saying thanks is marking this thread solved.. :twisted:
<option value=''>--select--</option>
where is your ending tag of form? </form>
ok this will be the last thing ill talk about this, bec the mods show up and i only listen to mods. @naraue: i didn't attack you, i just defend my fellow Asian being criticized by unworthy critics like you....its ok if you criticize someone in a good way in a constructive way not by insulting them. and the truth is... i can say im a lot smarter than you coz. i can understand your language but you cant understand mine... like this NARAUE BAHOG BILAT! ahaahaha :D. your just lucky coz. im not that fluent in english coz im not born american and i can't elaborate well on my arguments. If only we can talk this in my language i can surely beat u in a pulp... if you find me entertaining... so do i... your like a party to me.....you're like feeding my hunger. one more thing about the word 'feeler' in my country we always use this.... it denotes people with BIG HEADS that they think they know everything and they always end up lying in the streets DEAD. And ill say this once more... your just NOBODY to me... unless you became a mod then ill acknowledge your existence.
I strongly suggest you tune down your tone a bit. No need to start a flamewar over this.
ok sir no problem.
I think I'm experienced enough, having conducted many interviews, to accurately comment on the OP's answers.
accurately comment? what a feeler
She is a super genius.
in your dreams... maybe in your jungle! ahahaha.. but to me shes just nobody! ahahaha
And oh, by the way, you can't defeat a genius through hard work.
i can, and i already proved it. Why don't you make your own signature and don't be jealous. ahaha.
@naraue: you criticize people like your a super genius... ohhh... your too full of yourself... you think your so smart?
Personally, I'd stay clear of js if possible - header() if used correctly shouldn't cause an error ("headers already sent").
haha... sorry about that master... i always get trouble with header(), and i dont know how to fix it. thats why i user javascript to avoid the hassle.
However VD's status is a good solution.
thanks dude... but your approach is a lot better.. hehe
i changed my password weekly, using my favorite naruto character + PHP function rand();
i recommend you use javascript redirect
echo "<script>window.location='form2.php'</script>";
to avoid annoying error on php header() function, about already sent output.
regards on how you will know if the 2nd form is successfully and correctly filled up. you can add a field in your database table where you store your record. you can add a 'status' field, and set it to 1 or 0, let's say 1=complete, 0=incomplete.
My password is always the day of the week my password was created. I tell people that, too, because it's not like they'll know what day of the week I created it. That makes it secure. Extremely secure.
Secure? i can just try to input the 7 days of a weeks until it's correct.
i dont understand the problem? why do you want to compare the 2 col if theyre equal? when you can just do that before you start storing it to the database.
i didn't see he ask for an edit functionality. peace (^_^)V
sorry i forgot to wrap it in bb codes
<table>
<tr onclick='alert(document.getElementById("row1").innerHTML)'><td id='row1'>your_content_here</td></tr>
</table>
<table>
<tr onclick='alert(document.getElementById("row1").innerHTML)'><td id='row1'>your_text</td></tr>
</table>
isset($_POST['username'] && $_POST['password'])
i didn't know you can set conditional inside isset() function havent tried it yet. and other than that i spotted you lack the closing brace of your if() statement. other than that seem fine to me.
if (isset($_POST['username'] && $_POST['password']) ) {
if ($_POST['username'] == 'admin' || $_POST['password'] == 'admin') {
$password = $_POST['username'];
$password = md5($_POST['password']);
}
else {
$username = $_POST['username'];
$password = $_POST['password'];
}
}
my password is on the list, the 'iloveyou' one.
I hope someday India will fix its education system, and when it does, it will take over the world because Indians are the most naturally intelligent people in the world.
i totaly agree with you dude! i always see whites picks on indian people.... making fun of them, theyre just jealous coz. the indians are smarter than them. Indian's value education that's why there smart and americans are just bunch of insecure people always want they are above and they know everything.
put an event to your anchor link
ex. lets put a javascript onclick event on your anchor tag
<html>
<head>
<script>
function do_your_thing(){
//put want you want to happen here, ex. an alert script
alert('End of the World!');
}
</script>
</head>
<body>
<a href='#' onclick='do_your_thing()'>click me</a>
</body>
</html>
yeah i patiently trace your code and the only thing that i suspect the problem would be in your query
$query=mysql_query("select * from report where companyname='$parameter' and reporttype='client' order by id desc");
coz if you form2 is working right and contain values , your query is right and on how you fetch you query is right.. then theres should be no problem traversing the recorset.
and also you can fetch your query like this
$query=mysql_query("select * from report where companyname='$parameter' and reporttype='client' order by id desc");
while($row=mysql_fetch_array($query)){
echo "<tr>
<td>
<a href='reportclient.php?name=".$row['companyname']."'>".$row['companyname']."</a\>
</td>
</tr>";
}
echo"</table>
<input name=\"viewrep\" type=\"submit\" id=\"viewrep\" value=\"View Report\">";
your form 2 is like this
<form action="report.php?act=view" method="post" name="textform" class="style16">
so you should changed this code
if ($action == viewrep)
to
if ($action == 'view')
is this solved? OMG! im too late! yeah will is right? i recommend use session, it's the best approach to your problem.
a bad database design. If you have a field that stores multi values, you should not store them in 1 field comma separated. You should make another table for it. A one-to-many relationship and link them via foreign key.
this is an interesting thread... im also curios if you there is a way on solving that problem coz. the back button is specially made for that... for viewing your previously viewed page. i dont know if there's really a code for that.. i dont know... maybe?
why not use forearch() instead of your while(list($key,$ars)=each($ar))??? you like complicated stuff? it think your image folder contains 4 images, coz the end of your loop depends on your $ar=scandir("hairupdo"); which is the location of the images.
you want to add the location on the database? then just insert your $dest variable into your database.
assuming you had these table and variables
you query should look like this
INSERT INTO your_table(name,date,location) VALUES('$name','$date','$dest');
Ask the person who design your database...he's the only one who can answer you why he saves record about info of your images on your database and uploaded images but doesn't link them. I think the images field should contain the source/path of the images for you to to be able to display them.
ok but ill use a simple example for this one...
1st u need 2 files and a database
lets assume you got these tables, and ill make this simple but you can add more fields...
candidate
can_id = int, primary, autoincrement
name = varchar
votes = int
category = varchar
voter
voter_id = int, primary, autoincrement
name = varchar
then the files.
index.php
<?php
if(isset($_GET['btnsubmit'])){
$can = array($_GET['pres'],$_GET['vp']);
mysql_connect('localhost','root',''); // i use default, but use your custom DBMS log-in
mysql_select_db('takeshi'); // sample database, i user your name.. hehe
foreach($can as $val){
$sql = mysql_query( "UPDATE candidate SET votes=votes+1 where can_id='".$val."'" );
}
echo "<h1>vote complete!</h1>
<a href='voteresult.php'>see all vote results</a>";
}else{
echo "<form method='get'>
<h2><center>Select Candidates</h2>
<h3>president:</h3>
1.) naruto <input type='radio' name='pres' value='1'><br />
2.) sasuke <input type='radio' name='pres' value='2'>
<h3>vice-president:</h3>
1.) neji <input type='radio' name='vp' value='3'><br />
2.) lee <input type='radio' name='vp' value='4'>
<p><input type='submit' name='btnsubmit' value='VOTE'></p>
</form>";
}
?>
voteresult.php
<?php
mysql_connect('localhost','root',''); // i use default, but use your custom DBMS log-in
mysql_select_db('takeshi'); // sample database, i user your name.. hehe
echo "<h3>vote results</h3>";
$sql = mysql_query( "SELECT * FROM candidate WHERE category='president'" );
echo "<h4>President</hr>
<table>
<tr>
<th>name</th><th>votes</th>
</tr>";
while($row = mysql_fetch_array($sql)){
echo "<tr>
<td>".$row['name']."</td><td>".$row['votes']."</td>
</tr>";
}
echo "</table>";
$sql2 = mysql_query( "SELECT * FROM candidate WHERE category='vice-president'" );
echo "<h4>Vice-President</hr>
<table>
<tr>
<th>name</th><th>votes</th>
</tr>";
while($row2 = mysql_fetch_array($sql2)){
echo "<tr>
<td>".$row2['name']."</td><td>".$row2['votes']."</td>
</tr>";
}
echo "</table>";
?>
i just provide the major functionalities you seek and …
then mark this thread solved then.... marking thread solved is a way of saying thank you.
what? copying you? u got the nerve to say that? why should i copy you what to i get from that? im here to help and learn. Your too full of yourself! if i would copy someone, i would select a more smarter person rather than you. i would prever copy ardav over to you. >:(
oh yeah... i think you got syntax error
$sql="SELECT * FROM $tbl_name WHERE id_no='$username' and password='$password='";
you put = after the password, it may be the result why you got no results coz. the query doesn't satisfy the condition.
well i haven't really tried using mysql_fetch_assoc(), coz. i prefer mysql_fetch_array(). but from what i know about mysql_fetch_assoc() it returns associative arrays of your recordset. So your array index and values are dependent on your recordset. try print_r() to see the array values.
i recommend you use database to store information of your files... it's a more professional approach.
you can use the javascript window.location instead...
<?php echo "<script>window.location='yourpagehere.php'</script>"; ?>
is this thread solved? if so... mark this solved then.
then mark this thread solved then...
just aside the reply thread button.
can u provide the code? so that we can trace it.... bec. u fail to show it to us... i suspect that 2 possible reason. 1) maybe you put that code outside your html form. 2.) maybe the form method you use is 'get' and not 'post'. coz. your retrieving your values using the $_POST[] global variable.
ur so amazing ardav... i bow to you... you always have the most proficient approach on every problems... your code are always impressive. u solve it with jus less code. and i always end up embarassed... hehe... well that's ok though... it's not ur fault to be smart.. hehe
i recommend you use .png.... about the banner will it's not really hard... because you use database...all you do is some mysql query and PHP predefined function rand();
here ill show you the code
lets assume you had these table
banner
banner_id - int (primary)(autoincrement)
src = varchar
<?php
mysql_connect('localhost','root',''); // i use the default
mysql_select_db('your_database_name'); //enter your database
$sql = mysql_query("SELECT banner_id FROM banner");
$max = mysql_num_rows($sql);
$sql2 = mysql_query( "SELECT src FROM banner WHERE banner_id='".rand(1,$max)."'" );
$row = mysql_fetch_array($sql2);
echo "<img src='".$row['src']."' width='300' height='200' />";
?>
put a banner folder in your root document....
insert the images path in the src field of your banner table
ex. banner/your_images.png
so you want an include() eh...
ok 1st lets create 2 files
page1.php
<?php
$var1 = 'location1';
$var2 = 'location2';
$var3 = 'location3';
$var4= 'location4';
?>
page2.php
<?php
include('page1.php');
echo "<a href='http://www.path/file/".$var1."/london/index.php'>$var1</a>";
echo "<a href='http://www.path/file/".$var2."/london/index.php'>$var2</a>";
echo "<a href='http://www.path/file/".$var3."/london/index.php'>$var3</a>";
echo "<a href='http://www.path/file/".$var4."/london/index.php'>$var4</a>";
?>
acutally i could make it an array, but ill make this example simple.
there's no other choice dude sorry.... you have to work hard for it.