|
i am alreadu noe using adobe dreamweaver and it is perfect.
|
|
|
|
|
|
starts now. That is what the future always does.
|
|
|
|
|
|
New Ubuntu version release...
OneiricOcelot
Cheers
If a man hasn't discovered something he will die for, he isn't fit to live.
-martin luther king
|
|
|
|
|
Hoping to start playing with it soon.
|
|
|
|
|
Where can we go to find God if we cannot see Him in our own hearts and in every living being
-Swami Vivekananda
|
|
|
|
|
I'm all set up with 11.10... so far so good!
I can see why some hate the Unity desktop (not very Linux-like, very different than other desktops) but if you approach it with an open mind... its very neat!
|
|
|
|
|
Ok, I give up... If I use the commented out SQL I get nothing, however if I use the SELECT * the "match" is hit. I'm running out of ideas. I've tried removing the ' around the variable, I added periods around it and still nothing. If I just type the value in I'm looking for 'John Smith' for example it finds it, just not when I use the variable...
echo "<p>myusername should = " . $empUserName . "</p>";
$SQL = "SELECT * FROM empComm";
$result = mysql_query($SQL);
echo "Connected";
while ($db_field = mysql_fetch_assoc($result)) {
if($db_field['name'] = $empUserName){echo "match<br />";}
print $db_field['ecID'] . "<BR>";
print $db_field['name'] . "<BR>";
print $db_field['password'] . "<BR>";
}
That first line is correct it displays myusername should = John Smith
The table only has 3 fields, ecID, name, password and really I only want to get the ecID. Well actually I was doing a join to make life easier but I wasn't getting anything so I just created this simple query and still nothing. I'm sure I'm forgetting something simple.
Thanks in advance!!!
|
|
|
|
|
Check for leading/trailing spaces in the variable and in the database name column.
Your if($db_field ... test is confusing things because you should be using == to test the field - by using = you are changing the value you get from the database to the $empUserName value, which you then print out.
|
|
|
|
|
I would write it like so:
$SQL = "SELECT * FROM empComm WHERE name = '".$empUserName."'";
and make sure no spaces sneak in.
If that doesn't work, I'd seriously doubt your database content, so print out empComm.name (both string value and string length) for a visual check.
|
|
|
|
|
Dude,
You have made a classic mistake. Very funny.
It is
if($db_field['name'] = $empUserName){echo "match<br />";}
and it should be
if($db_field['name'] == $empUserName){echo "match<br />";}
few more things,
make sure your Query execution is successfull.
so the line should be
$result = mysql_query($SQL) or die("Error In Query :".$SQL."<br>".mysql_error());
|
|
|
|
|
$SQL = "SELECT * FROM empComm WHERE name = '".$empUserName."'";
Is the correct Answer
Thanks & Regards
Arya1685
“You are not only responsible for what you say, but also for what you do not say”
|
|
|
|
|
needed to develop a website of free songs download with required features
1) speed of site necessary (site must not be heavy loaded)
2) good look 'n feel
3) good cms
4) proper ad management in cms
5) some examples www.djmaza.com , www.songs.pk , www.hungama.com etc
kindly suggest me the price of the project
as well as if any one wishes to freelance
then kindly contact me...
thanks..
|
|
|
|
|
Hi,
I really need a php script that checks invisibles on Yahoo messenger....
some websites that does this are listet below:
http:
http:
http:
If anyone can give me a php script for doing this I would really appreciate it
Best Regards
|
|
|
|
|
I want to create a class for reading mailbox in php code. How many parameter are there I need?
sample class maillist that get from gmail. thank for help!
|
|
|
|
|
yornsocheat wrote: How many parameter are there I need?
Need for what? As the designer this is a question for you. However, some of these[^] may help you decide.
|
|
|
|
|
First thing, you need to know what you need to create??
1. You need to create a pop3 client. Its possible using php.
2. as you are planning to access gmail account, in that case you also need to implement ssl communication so that you can read the data actually,
As a matter of fact you can create a global pop client that will be able to access any pop server.
|
|
|
|
|
|
هر کی سورس کد می خواهد بگه من در خدمتم سورس کدهای که به ذهنتون هم نماید
|
|
|
|
|
Please post in English only.
الرجاء نشر باللغة الانكليزية فقط
|
|
|
|
|
leading by example, are we?
|
|
|
|
|
|
Hi,
I'm new in PHP.
define('BUFSIZ', 4095);
$url = $_GET["addr"];
$msk = $_GET["key"];
$msklen = count($msk);
$rfile = fopen($url, 'r');
$lfile = fopen(basename($url), 'w');
while(!feof($rfile))
{
$content = fread($rfile, BUFSIZ);
while($i=0; $i < BUFSIZ; $i++)
$content[$i] = $content[$i] ^ &msk[$i % count($msk)];
fwrite($lfile, $content, BUFSIZ);
}
fclose($rfile);
fclose($lfile);
this code is not working after performing towice in a file my file will be change.
what is wrong with my while statement?
thanks.
No Comment.
|
|
|
|
|
One thing that struck me when reading your code is you don't care about the actual length of the file: you request a read of 4095, however the file length could be more (in which case you ignore the extra data), or less in which case you are looping over non-existing bytes. The $i < BUFSIZ test is bound to be wrong.
|
|
|
|