Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 34
Search took 0.18 seconds.
Search: Posts Made By: weaksauce
Forum: PHP 03-04-2013, 02:19 PM
Replies: 1
Views: 195
Posted By weaksauce
Security Question for PHP File Upload

Recently my form was attempted (maybe successfully) to be hacked via php script embedded in a jpg. I originally thought the form was secure because the files never leave the default apache temporary...
Forum: MySQL 01-12-2013, 12:10 AM
Replies: 7
Views: 534
Posted By weaksauce
Perfect. Thanks!

Perfect. Thanks!
Forum: MySQL 01-11-2013, 11:05 PM
Replies: 7
Views: 534
Posted By weaksauce
That worked... You're awesome! I had to do a...

That worked... You're awesome!

I had to do a sub-query to only return the specific user list, I think I could have added it to the JOIN but it would have taken longer right?

SELECT * FROM (...
Forum: MySQL 01-11-2013, 09:53 PM
Replies: 7
Views: 534
Posted By weaksauce
user_id and org_id are never null (nor unique),...

user_id and org_id are never null (nor unique), what I'm trying to do is basically take a table and:

select a list of users that are members of a list of orgs and count how many times they are in...
Forum: MySQL 01-11-2013, 08:44 PM
Replies: 7
Views: 534
Posted By weaksauce
single table left join?

I have a single table that I feel is giving me more problems than it should. I want to select a set of users and a set of organizations that I want to check and return a count that also includes null...
Forum: JavaScript programming 10-10-2012, 08:52 PM
Replies: 3
Views: 279
Posted By weaksauce
I was able to find an API and use JSON to...

I was able to find an API and use JSON to retrieve the data instead.

http://developer.weatherbug.com/docs/read/WeatherBug_API_JSON
Forum: JavaScript programming 10-10-2012, 07:27 PM
Replies: 3
Views: 279
Posted By weaksauce
http://feeds.weatherbug.com/rss.aspx?zipcode=15401...

http://feeds.weatherbug.com/rss.aspx?zipcode=15401&feed=curr&zcode=z4641
Forum: JavaScript programming 10-10-2012, 06:36 PM
Replies: 3
Views: 279
Posted By weaksauce
javascript or jquery select text without proper html tags

I'm trying to use a poorly designed rss feed from weather bug for a website. I'm trying to retrieve the information to put in an already styled widget.

The RSS i have parsed is:

<div>
<img...
Forum: MySQL 11-30-2011, 08:34 PM
Replies: 8
Views: 412
Posted By weaksauce
Solved

That's awesome... You have a slight syntax error with your SUM/IFS

SUM(IF org_id IN ('LL1','LL2'),1,0)

should be...

SUM(IF(`org_id` IN ('LL1','LL2'),1,0)) but other than that the code works...
Forum: MySQL 11-30-2011, 07:06 PM
Replies: 8
Views: 412
Posted By weaksauce
SELECT `user_id` FROM `accounts` WHERE...

SELECT `user_id`
FROM `accounts`
WHERE `org_id` IN ('LL1','LL2','LL5','LL6','LL8')
GROUP BY `user_id`
HAVING COUNT(distinct(`org_id`)) = 4 OR COUNT(distinct(`org_id`)) = 5

Would possibly...
Forum: MySQL 11-30-2011, 06:22 PM
Replies: 8
Views: 412
Posted By weaksauce
while using UNION it seems that the select...

while using UNION it seems that the select statements are becoming OR's instead of AND's

I ran this:

SELECT distinct(`user_id`) FROM `accounts` WHERE `org_id` = 'LL1' OR `org_id` = 'LL2'...
Forum: MySQL 11-30-2011, 05:57 PM
Replies: 8
Views: 412
Posted By weaksauce
SELECT based on multiple values

I having a difficult time trying to do something that I thought would be alot easier. I'm trying to query only one table, return one column's data based on another column's values.

I bassicaly...
Forum: Ajax and Design 08-26-2011, 05:03 PM
Replies: 1
Views: 2,103
Posted By weaksauce
Same page AJAX post to php variable

I'm trying to do an ajax post on the same page to basically create a dynamic div based on which a tag is clicked.

<script...
Forum: PHP 06-20-2011, 09:12 PM
Replies: 1
Views: 298
Posted By weaksauce
I'm an idiot. I realize now I was trying to do...

I'm an idiot. I realize now I was trying to do call a php function with the onclick. This was causing the conflict with the session variables...
Forum: PHP 06-20-2011, 09:03 PM
Replies: 1
Views: 298
Posted By weaksauce
$_SESSION variables keep resetting

Every time I refresh the page my session variables are reset. If I take out the HTML portion and just echo $_SESSION['fname'] the variable stays there after I refresh. So I'm assuming something is...
Forum: JavaScript programming 03-18-2009, 06:01 PM
Replies: 2
Views: 743
Posted By weaksauce
The problem with onunload is that it triggers the...

The problem with onunload is that it triggers the event with every link and during refreshes. I would only need this prompt if the user was going to a specific outside link where we do not monitor...
Forum: JavaScript programming 03-18-2009, 05:49 PM
Replies: 2
Views: 743
Posted By weaksauce
Leaving Site Function

I'm trying to build something with either javascript or php that will prompt a security message when leaving the site.

I did some research and I found very basic ways to this but it only applied...
Forum: PHP 02-26-2009, 04:38 PM
Replies: 3
Views: 985
Posted By weaksauce
In house php mail script works, everything else doesnt

<?php
$Name = "OCH Forgot Password"; //senders name
$email = "xxx@xxx.edu"; //senders e-mail adress
$recipient = $_REQUEST['uemail']; //recipient
$mail_body = "Test"; //mail body
$subject =...
Forum: HTML & CSS 01-21-2009, 07:28 PM
Replies: 3
Views: 1,039
Posted By weaksauce
if you zoom in on the blue border, you'll see...

if you zoom in on the blue border, you'll see slants on the corners of the border... its like a window or picture frame: two 45 degree angles (45 from top piece, and 45 from side piece) come together...
Forum: HTML & CSS 01-16-2009, 08:06 PM
Replies: 3
Views: 1,039
Posted By weaksauce
Drop Down Menu Border

I'm using a standard drop down menu with css and a ie6 back up JS. I want the drop down menu to have a border, but I've noticed that borders are in styles like window edges with slants in the corner....
Forum: MySQL 08-18-2008, 07:17 PM
Replies: 1
Views: 740
Posted By weaksauce
HTML inside of a mySQL Query

I was wondering if you could put full blown HTML inside a query field and then will it come back and display properly?

I'm trying to experiment with a news system in php with Wyzz WYSIWYG editor....
Forum: JavaScript programming 08-06-2008, 05:41 PM
Replies: 3
Views: 569
Posted By weaksauce
Thanks, Yeah I started off with going with full...

Thanks, Yeah I started off with going with full CSS, but then I got interested in the time out effect.
Forum: JavaScript programming 08-06-2008, 05:02 PM
Replies: 3
Views: 569
Posted By weaksauce
Simple setTimeout problem

Ok, I haven't done anything with JS for a few months so I'm rather rusty. I started developing a simple drop down menu, and It works fine but when I went to add a timeout effect for the onmouseout=""...
Forum: MySQL 07-17-2008, 03:16 PM
Replies: 3
Views: 975
Posted By weaksauce
$query = "SELECT Count(user_name) FROM Users...

$query = "SELECT Count(user_name) FROM Users WHERE `user_name` = '$user_name'";
$result = mysql_query($query) or die($query . '<br />' . mysql_error());
$num = mysql_result($result,0,0);...
Forum: MySQL 07-17-2008, 02:27 PM
Replies: 3
Views: 975
Posted By weaksauce
Duplicate Entry - If Statement

I have a table called Users, which contains the fields:
{user_name,password,name,user_level,fname,lname}

I have a registration/login process to the site, and my question is how can I make an if...
Showing results 1 to 25 of 34

 
Forum Jump

All times are GMT +1. The time now is 03:46 AM.