Search found 108 matches

by ekosoftco
Mon Feb 04, 2008 1:28 pm
Forum: PHP - Code
Topic: showing all results in a table
Replies: 3
Views: 122

Re: showing all results in a table

i got it. im retarded i put the </table> inside of the loop, just needed to move it out of the loop.
you helped me see that xD
thanks!
by ekosoftco
Mon Feb 04, 2008 1:09 pm
Forum: PHP - Code
Topic: showing all results in a table
Replies: 3
Views: 122

Re: showing all results in a table

i close the loop right after calling the $title array, i only put $dept and $title once b/c its an array and shows them all up, just only one goes in the table :(
by ekosoftco
Mon Feb 04, 2008 11:33 am
Forum: PHP - Code
Topic: showing all results in a table
Replies: 3
Views: 122

showing all results in a table

what im trying to do is put all the results in a table. its only putting the first result in the table, and then putting the other two under it out of the table. here is the code <?php ob_start(); session_start(); include('../pageedit/conf.php'); echo "<table border=1><tr><td>Department</td><td...
by ekosoftco
Sat Feb 02, 2008 9:23 am
Forum: PHP - Code
Topic: need correct position
Replies: 5
Views: 1381

Re: need correct position

instead of doing a loop in a loop would indexing inside the loop change anything?
by ekosoftco
Fri Feb 01, 2008 10:13 pm
Forum: PHP - Code
Topic: need correct position
Replies: 5
Views: 1381

Re: need correct position

ive tried a few more things, like moving around the while($row) stuff but to no prevail. anyone plz any other ideas?
by ekosoftco
Fri Feb 01, 2008 12:25 pm
Forum: PHP - Code
Topic: need correct position
Replies: 5
Views: 1381

Re: need correct position

ok, i tried that, this is the code im using to do it. <?php ob_start(); session_start(); include('../pageedit/conf.php'); $connection = mysql_connect($host, $user, $pass) or die ('Unable to connect'); mysql_select_db($db) or die ('Unable to select database!'); $query = "SELECT department, title...
by ekosoftco
Fri Feb 01, 2008 9:56 am
Forum: PHP - Code
Topic: need correct position
Replies: 5
Views: 1381

Re: need correct position

anyone have any ideas? ive tried putting it all in the loop in php, including the js, but that changed nothing
by ekosoftco
Thu Jan 31, 2008 10:28 am
Forum: PHP - Code
Topic: need correct position
Replies: 5
Views: 1381

need correct position

I've been working on this a while :( i have a code where if you click on a title it will show up the desc and stuff, and i got it to work with a few different codes, but the problem i have now is not it showing up the right stuff, but showing it up in the right place. i have 3 different titles, and ...
by ekosoftco
Thu Jan 24, 2008 10:38 am
Forum: PHP - Code
Topic: Showing all results
Replies: 6
Views: 176

Re: Showing all results

gotcha ;)
i think ill take the ajax road. appreciate it.
by ekosoftco
Thu Jan 24, 2008 12:29 am
Forum: PHP - Code
Topic: Showing all results
Replies: 6
Views: 176

Re: Showing all results

ok, i have this code <script type="text/javascript"> <!-- function clearcell() { document.getElementById("information").innerHTML ='<div> *</div>'; } function description() { document.getElementById("information").innerHTML ='<div><?php echo "Description: " . ...
by ekosoftco
Wed Jan 23, 2008 6:39 pm
Forum: PHP - Code
Topic: Showing all results
Replies: 6
Views: 176

Re: Showing all results

awsome it worked, thank you! i do have one more question though on another part of the code. where you see it pull up the div in the html, i cant figure out how to pull it up for each title. it only works on the first one, no matter which link you click for the title, and it only shows up under the ...
by ekosoftco
Wed Jan 23, 2008 3:05 pm
Forum: PHP - Code
Topic: Showing all results
Replies: 6
Views: 176

Showing all results

I have a code where it takes all results from an employment table and puts them into html tables. Im using java to make it where you click on the title and the rest of it shows up. my problem is when it supposed to echo all the results, it picks the newest one only, instead of sorting and showing al...
by ekosoftco
Sun Dec 16, 2007 9:41 pm
Forum: Databases
Topic: finding newest id
Replies: 3
Views: 948

didnt even think about that, since they are already in date order. thanks youre a lifesaver. now i can sleep :D
by ekosoftco
Sun Dec 16, 2007 8:03 pm
Forum: Databases
Topic: finding newest id
Replies: 3
Views: 948

finding newest id

ok, i have a code for a news system, and what im trying to do is echo New by the newest post, so the new news is marked new. ive tried using a query for max(id), but it will only show the newest news and thats it. i need it to still show all the others as well. this is the code im using right now. $...
by ekosoftco
Mon Dec 10, 2007 9:08 pm
Forum: Javascript
Topic: div tag
Replies: 9
Views: 3977

im retarded. i had 2 breaks in echo in my php. oooppss my bad. xD
let this be a lesson, look at your script better, or youll post and get headaches like me.