Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. You could definitely do all of that in SQL. Once you have the array of each of the words, you could use IN(). In your example you're multiplying by 1, so it's pointless. You also called this "addition", did multiplication, then asked for something unrelated. It doesn't hold 17 integers, it holds the result of several computations. You're talking about using it as an array, and the help you got used it as a string, and you thought that would work. It's impossible to tell what you really want from the code you show us.
  2. Like I said, the problem is the comma. Look at the generated SQL. It's missing the last_name as author part.
  3. You either have to join 4 times (which is what I would do, as long as you can do an inner join), or use PHP to logically create the array you want. How did you think you would get the data?
  4. The problem is probably the placement of your comma. However you really should know by now and I've seen you be told: Post the exact entire error, and post the section of code not just one line, since errors can be from the previous line.
  5. Twice already in this and the other thread, you've been asked to explain the overall goal. If you do that, we can help. Otherwise you're going to get piecemeal advice which won't improve the overall program.
  6. This won't work if it's more than one digit. Rather than doing it the way you are, if your data is already in a DB, there are easier ways to work with the data,.
  7. So right now all you're getting is the titles, you still need to join to the other table to get the people.
  8. Maybe your query failed? I am not familiar at all with CI, so I can't help with that part.
  9. Stop suppressing errors, and start capturing and displaying them. Why are you CREATING A NEW TABLE?? Edit: also turn on error reporting, you have a ton of errors.
  10. In the query, order by date. Then when looping through, store the last date you showed and the current date. When they no longer match, start a new row and output the date.
  11. Is not possible. What it could look like is: $array = array(); $array[1] = array( 'title'=>'Title One name', 'champion'=>'Jeff' 'contender1'=>'kevin' 'contentder2'=>'brian' 'contender3'=>'will' ); Or even like this if you want: $array = array(); $array[1] = array( 'title'=>'Title One name', 'data'=>array( 'champion'=>'Jeff', 'contender1'=>'kevin', 'contentder2'=>'brian', 'contender3'=>'will' ) ); For now, do a print_r($query->result); so we can see what you DO have. However, it'll probably be easiest to just use the result as it comes out of the DB, and modify your code that USES it.
  12. http://api.jquery.com/slideDown/
  13. What if the integer is more than one digit? Again, you need to move this data into a database!
  14. The or 'DataCenter' line does nothing. it doesn't "work" it just didn't throw up an error.
  15. I don't understand how someone has over 500 posts and doesn't know what a signature on the forum is. *SMH*
  16. You already have the strings as the keys. if(isset($sentiments[$word])){ } Also, you should really move this data into a database.
  17. Then you don't need $tweet_words at all. What are you trying to do?
  18. Give us a sample of the arrays. You'll probably have to loop through the one array. You might be able to use array_intersect tho.
  19. Is the matching value the KEY or the VALUE of the associative array? Post a sample of the arrays.
  20. I love sim games, that does sound pretty cool to have a new sim city.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.