![](https://forums.phpfreaks.com/uploads/set_resources_1/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
ober
-
Posts
5,327 -
Joined
-
Last visited
Posts posted by ober
-
-
We have a PHP Freelancing board. That would be the best place to post your availability as well as asking questions for what service others use.
Users cannot reply in the freelance board. This is the best place for this type of question.
I personally do not use freelance sites... all of my work comes to me via here or by word-of-mouth.
-
Login to demo area please. I'm not downloading your stuff until I know it's legit.
-
HAHA 10/10
-
I couldn't agree more with xylex on this. I work for a company that manages patient data and we have an entire department that ensures that we stay compliant and another department that does all the testing on our core functionality.
This is not something to mess around with. You can get into some deep shit if you mess that stuff up.
-
But look at you now... you're FREE.. and THRIVING. Way to break loose from the chains!
-
Bastard, got something to say about Texas?
I do. Bunch of hard-line, right-wing, state-arrogant folks. Everyone from Texas thinks that they are better than anyone else from any other state. Most of them are also very close-minded in terms of progressive thinking on social matters.
My experience is based on the fact that my company has a office in Texas and I've been dealing with them for close to 3 years now. I've actually been to Texas about 20 times and the mindset seems to be spread across towns, so it's not limited to the small amount of people I deal with.
Granted, most of them are nice people... they just have their own way of doing things.
-
You cannot force a page to print to specific dimensions unless you're using something like an ActiveX control or something.
Also, if your page width is greater than the average piece of paper (8.5x11), it's not going to print properly. The best thing to do is to have a "screen" stylesheet and a "print" stylesheet so that you can restructure the page for printing.
Here's a good article: http://www.alistapart.com/articles/goingtoprint/
-
I like to cook without an oven or stovetop, just an open fire. I don't have to worry about any of those confusing dials or buttons, I can just put stuff right on there. People have been telling me for years that I can get faster, more consistent results using an oven to do things like bake a cake or make a casserole, but I think they're wrong. I'm really good with just a pile of wood and some matches.
Beautiful post. That's the best analogy I've heard so far.
-
phpDesigner2008 for me. I'm with Daniel on the pros of an editor as well. It makes me faster.
-
You're probably using "setcookie" after you've already sent something to the browser. That function has to be used before any HTML is written or PHP outputs anything to the page.
-
$pagenum must be 0. You can't have a negative in a limit.
-
Right.
-
Screw flash...
-
<div align="left" style="margin-bottom:15px;"><img src="templates/bcrc/images/latest_news.png" alt="" /></div> <?php // no direct access defined('_JEXEC') or die('Restricted access'); $query = "SELECT title, introtext, created FROM jos_content WHERE state=1 AND sectionid=1 AND catid=1 ORDER BY ordering"; $content = mysql_query($query); if($content && mysql_num_rows($content) > 0) { while ($row = mysql_fetch_assoc($content)) { echo "<p>".$row['title']."</p>"; } } echo '<p>'.$params->get('catid').'</p>';
Time to go error trapping...
-
Remove the <script> tags, otherwise, yes.
-
Save the JavaScript in a .js file and echo something like this:
<script type="text/javascript" src="whatever.js"></script>
-
If you comment out from the $query to the end of the while loop, do you still get it?
-
This just keeps getting worse. I think the problem is with your design, not with our methods.
-
That code looks fine. Are you sure that error isn't coming from another part of the page?
-
Damn... missed that. Good catch.
-
You cannot DECRYPT the value in your login script. Here's how it works.
1) User provides password.
2) You insert the plain text password into database but you md5 it first:
INSERT INTO Student (StudentUsername, StudentPassword) VALUES ('$user', '."md5($password)."')
3) User tries to login with their plain text password:
$query = "select * from student where StudentUsername ='".$dbuser."' and StudentPassword = '".md5($dbpass)."'";
So once again, it is taking the plain text password and running md5 against it to compare it to the md5 value in the database.
md5 = md5 is the comparison.
Also, make sure that the password field can hold an md5 length value (32 characters).
-
What version of MySQL? MySQL 4 doesn't support subqueries, which is what you are trying to do.
-
mysql_query("SELECT * FROM tbl WHERE field IN (".implode(',', explode('-',$myvar)).");
That should do it. I didn't test it but I'm pretty sure that will get you what you want without all that extra garbage.
-
Sorry about the extra period. I was moving too fast.
The difference is that your query would have said:
$query = "select * from student where StudentUsername ='John' and StudentPassword = LONGSTRINGOFCHARACTERS";
MD5 returns an alphanumeric string that must be surrounded in quotes, just like the username.
What isn't working?
Where are you from? Detroit Area?
in Miscellaneous
Posted
I'm only a few hours away... why do you ask?