Forum: PHP May 7th, 2008 |
| Replies: 6 Views: 344 Re: array_search always coming up null I ended up solving it. array_push() was the magic function here. It was pretty complicated, but this made it work:
$ngclasses = mysql_fetch_array($result);
while(list($ngc) =... |
Forum: PHP May 6th, 2008 |
| Replies: 6 Views: 344 Re: array_search always coming up null I tried using $ngclasses = mysql_fetch_array($result); but array_search($cid, $ngclasses) is still coming up null. Am I using array_search wrong?
------------------
Another issue is that this chunk... |
Forum: PHP May 6th, 2008 |
| Replies: 6 Views: 344 |
Forum: PHP May 6th, 2008 |
| Replies: 6 Views: 344 array_search always coming up null I'm trying to make a class registration page, but for some reason, when I dump my query results into an array and use array_search on it, array_search comes up null. Any ideas?
<?php
/* -... |
Forum: MySQL May 6th, 2008 |
| Replies: 1 Views: 374 Insert doesn't do what it's supposed to I have a ton of inserts in an sql file that look like this:
INSERT INTO grades (GWid, classid, semester, year, grade, required)
VALUES(100000089, 'CS210', 'B', 'fall', '2006', 'yes');
but when I... |
Forum: C++ Apr 28th, 2008 |
| Replies: 1 Views: 213 Adding element to a vector crashes it? I'm trying to write a data structure for a basic 3D engine, but for some reason it always crashes when I try to add an index to the polygon vector. Anyone know what may be going on? Thanks
#include... |
Forum: C++ Feb 7th, 2008 |
| Replies: 0 Views: 397 OpenGL Program with Bizzaro Behaviour I'm learning OpenGL for a class and for the lulz and I'm trying to write a program that does the following:
-Open a 500x500 window with a 10x10 grid of black squares with a 1 pixel white border... |
Forum: Java Sep 30th, 2007 |
| Replies: 0 Views: 427 Bizzare logic error This compiles, runs fine, and generally works, except for one thing. The contains() method doesn't work properly. For some reason table.contains(key) isn't returning the right value, which is thereby... |
Forum: Java Sep 16th, 2007 |
| Replies: 2 Views: 479 Rusty at Java Hey everyone. This is pretty lame of me having to do this, but I haven't done Java for about a year and this algorithms class I'm taking assumes we remember all the details. Anyway, I'm trying to... |