Feb 26, 2013 01:23
Done. Thank you so much.
Feb 26, 2013 01:21
How on earth can I thank you enough
Feb 26, 2013 01:21
I just changed the table name
Feb 26, 2013 01:21
I cant believe it...
Feb 26, 2013 01:21
IT WORKED!!!
Feb 26, 2013 01:19
sec
Feb 26, 2013 01:18
AAAA! Wow.
Feb 26, 2013 01:17
object(db_mysql)[7]
protected 'link' => &resource(18, mysql link)
protected 'recent_link' => &resource(18, mysql link)
protected 'sql' => string 'insert into spboard (title,desc) values ('Autism','Autism is a disorder of neural development characterized by impaired social interaction and communication, and by restricted and repetitive behavior.\n')' (length=204)
public 'query_count' => int 3
protected 'error' => string '' (length=0)
protected 'errno' => string '' (length=0)
protected 'is_locked' => boolean false
Feb 26, 2013 01:17
here's what var_dump shows:
Feb 26, 2013 01:17
ok, that worked!
Feb 26, 2013 01:15
(and I'm still somewhat new at mysql)
Feb 26, 2013 01:15
I was just trying to figure out how to echo the query. The thing is that I'm using a class in a behind-file for all the db queries
Feb 26, 2013 01:14
Sorry,
Feb 26, 2013 01:07
k, sec
Feb 26, 2013 01:06
what do you mean with "what does it look like"?
Feb 26, 2013 01:05
There's something about the $desc variable thats bothering mysql, but thats the variable thats making the insert fail. I just cant figure out what the problem could be... :-(
Feb 26, 2013 01:02
hello
Feb 26, 2013 01:00
To extract the first sentence from the longer description on each line.
Feb 26, 2013 01:00
I just tried " $desc=mysql_real_escape_string(preg_replace('/(.*?[?!.](?=\s|$)).*/', '\\1', substr($dataArr[2],1)));" , didn't work...I feel like I'm going insane!
Feb 26, 2013 01:00
Mysql (planning on upgrading to mysqli, but didn't get around to it yet)
Feb 26, 2013 01:00
Explosion Pills, excuse the newbie question, but what do you mean by "DB library"?
Feb 26, 2013 01:00
The title variable isn't the problem, as long as I leave out $desc the titles insert fine. I also tried urlencode and addslashes instead of the escape function, neither one worked...
 

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
Feb 3, 2013 21:23
test
 
Aug 17, 2012 01:18
and thank you again
Aug 17, 2012 01:18
good night
Aug 17, 2012 01:18
lol
Aug 17, 2012 01:17
(I used to live in Belgique)
Aug 17, 2012 01:17
merci mon ami, et bon nuit
Aug 17, 2012 01:15
If I'm still stuck tomorrow, I'll come looking for you :-)
Aug 17, 2012 01:15
Let's see if I can solve it by adding the values toteh array in php.
Aug 17, 2012 01:14
Well, right now I'm falling asleep n my keyboard :-)
Aug 17, 2012 01:07
I just have to figure out how to apply it to my case
Aug 17, 2012 01:07
yes, definitely.
Aug 17, 2012 01:04
I see. Basically a nested array
Aug 17, 2012 01:03
where did it go :-) ?
Aug 17, 2012 01:03
woops
Aug 17, 2012 00:57
Can you explain what you mean?
Aug 17, 2012 00:54
so for each div on the page, I have to make four queries...
Aug 17, 2012 00:54
thats what I'm using now (just simplified). It shows in each div how many of each type of content there is, but I have to make a separate query for each type of content.
Aug 17, 2012 00:52
Anyway, I think I'm a little stuck. I dont see anyway I can get the data for each div in one query.
Aug 17, 2012 00:51
Likewise :-)
Aug 17, 2012 00:51
ah, ok.
Aug 17, 2012 00:49
Ah, so I'm not the only one up late :-). I'm in Israel, it's almost 4 AM. Same for you, nest pas?
Aug 17, 2012 00:48
Are you in the US?
Aug 17, 2012 00:47
This is cool, I never saw these chatrooms before
Aug 17, 2012 00:47
hello