Search found 100 matches

by bimo
Tue Nov 20, 2007 10:15 pm
Forum: Databases
Topic: get mysql results
Replies: 3
Views: 669

Thanks, I got it to work. geez, I must have been pretty tired. sloppy mistakes...
by bimo
Tue Nov 20, 2007 9:06 pm
Forum: Databases
Topic: get mysql results
Replies: 3
Views: 669

Thanks. That snippet is contained in a select tag. Maybe being overzealous in my attempt at brevity, I didn't include it. Sorry.

And I had tried mysql_fetch assoc, too. Thanks for the reorganization, though. After the holiday I will try it out.

b
by bimo
Mon Nov 19, 2007 11:23 pm
Forum: Databases
Topic: get mysql results
Replies: 3
Views: 669

get mysql results

Let me preface this question by saying that I haven't tried to connect to a db in almost a year and have hardly been doing any php. With that out of the way, I'm ashamed to admit it, but I can't find my results. I want to dynamically populate a select list. I'd like to know if anyone sees what this ...
by bimo
Sun Nov 19, 2006 1:04 pm
Forum: PHP - Code
Topic: array keys
Replies: 3
Views: 483

Thanks, feyd. Now i have this: $res = mysql_query($query); print(mysql_num_rows($res)); $res_names = mysql_fetch_assoc($res); foreach($res_names as $name){; print("<br/>"); print($name); } where $res is the result of a mysql_query() and am getting this 20 Thomas, Oluyemi I have tried print...
by bimo
Sun Nov 19, 2006 10:31 am
Forum: PHP - Code
Topic: array keys
Replies: 3
Views: 483

array keys

I haven't written any php in a while and the result is that now I'm beating myself up because I can't figure out why I can't pull the results out of a simple mysql db query. Does anyone see what I'm doing wrong?: $query = "SELECT DISTINCT artist FROM recordings ORDER BY rand() LIMIT $num";...
by bimo
Tue Sep 26, 2006 1:10 pm
Forum: Javascript
Topic: Could not convert JavaScript argument...
Replies: 5
Views: 1848

Excellent, that worked. Thanks for the quote clarification.
by bimo
Sat Sep 23, 2006 4:00 pm
Forum: Javascript
Topic: Could not convert JavaScript argument...
Replies: 5
Views: 1848

tried this too: if(http.readyState == 2 || http.readyState == 3 ){ var searchImg = document.createElement('img'); var sRes = document.getElementById('searchResults'); searchImg.setAttribute('src', "/design3/img/searching.gif"); searchImg.setAttribute('id', "searching"); sRes.inne...
by bimo
Sat Sep 23, 2006 3:04 pm
Forum: Javascript
Topic: Could not convert JavaScript argument...
Replies: 5
Views: 1848

Okay... I tried this if(http.readyState == 2 || http.readyState == 3){ var searchImg = document.createElement('img'); searchImg.setAttribute('src', "/design3/img/searching.gif"); searchImg.setAttribute('id', "searching"); document.getElementById(document.getElementById('searchRes...
by bimo
Sat Sep 23, 2006 12:13 pm
Forum: Javascript
Topic: Could not convert JavaScript argument...
Replies: 5
Views: 1848

Could not convert JavaScript argument...

I'm getting this error: Exception... "Could not convert JavaScript argument arg 0 [nsIDOMHTMLDivElement.appendChild]" nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS frame :: ... :: handleResponse :: line 46" data: no and this is the line that's causi...
by bimo
Fri Sep 22, 2006 7:36 pm
Forum: PHP - Code
Topic: mySQL troubles..
Replies: 4
Views: 647

first you need to open a connection to the database and select the database,

Code: Select all

mysql_connect(DB_HOST, DB_USER, DB_PASSWORD);
mysql_select_db(DB_DATABASE);
then you put the query into a variable and pass the variable to mysql_query().

b
by bimo
Fri Sep 22, 2006 12:53 am
Forum: PHP - Code
Topic: switch statement queries
Replies: 5
Views: 729

will do, thanks,
by bimo
Thu Sep 21, 2006 11:17 pm
Forum: PHP - Code
Topic: switch statement queries
Replies: 5
Views: 729

Yeah, that makes the queries much neater. thanks.

I figured out why it wasn't returning anything, though. I had the wrong array key for the returned array.

Thanks
by bimo
Thu Sep 21, 2006 10:56 pm
Forum: PHP - Code
Topic: switch statement queries
Replies: 5
Views: 729

switch statement queries

Hi. I'm having a small problem and I'd appreciate it if anyone could help. I have a form that searches a database for info (I'm pretty sure this isn't a database issue, though, because the returned query runs smoothly from MySQLQueryBrowser). The form has a select box for the type of info the user i...
by bimo
Tue Sep 12, 2006 12:56 pm
Forum: Javascript
Topic: AJAX suggest
Replies: 4
Views: 944

Nice...

thanks, kendall

-b
by bimo
Mon Sep 11, 2006 10:45 pm
Forum: Javascript
Topic: AJAX suggest
Replies: 4
Views: 944

Kendal, I thought it was creating an xml object but maybe it isn't working. Here's the code: <?php // load error handling module require_once('error_handler.php'); // load configuration file require_once('config.php'); // class supports server-side suggest & autocomplete functionality class Sugg...