![]() |
ok.. I think i would use a echo instead that, like this:
--regular member pages Code:
$mmquery = "SELECT * from accounts WHERE login='$name' && password='$password'";Code:
$pagequery = "SELECT * from accounts WHERE login='$name' && password='$password'"; |
am i using the '&&' right?
|
What's this?
Quote:
Quote:
|
Quote:
|
alright, will do..
and i wont have to do double the work.. what you mean? |
Quote:
Quote:
However, if you include a page fragment after authentication you not only hide the code, you hide the code's location as the file name never has to be presented to the user. |
no.. i could use the same system that allows the user to see the link...
anyways i am kinda new at php... i wouldnt know about using the cookies... thanks ryans |
Quote:
|
And here I thought universities were supposed to be at the leading edge of everything - technology, knowledge, drinking contests etc.
|
Quote:
|
no.. i need the %z%
because its WILDCARD |
% is a SQL wildcard, it is not stored in the database that way. And you've used it in a PHP function, not a database context. The PHP == operator will treat what you typed as literal text. You need to read the PHP manual section on string functions. And if you use it in SQL as a wildcard you can't use the equality operator. Read the SQL manual section on string functions too.
|
so, even though i need the wild card, i dont put it in?
Weird.. I will give it a try though.. |
You are trying to use a SQL wildcard in a PHP operation. Won't work.
This: Code:
$pagethisrow = mysql_fetch_array($pageresult, MYSQL_ASSOC);This: Code:
$mmresult = mysql_query($mmquery);Code:
if( false !== strpos($mmthisrow['GM'], 'z') ) {The proper use of '%' as a wildcard is in the SELECT query, for example Code:
SELECT * from accounts WHERE login='$name' && password='$password' && GM LIKE '%z%' |
alright thanks
|
| All times are GMT -5. The time now is 06:13 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.