Jessica
Staff Alumni-
Posts
8,968 -
Joined
-
Last visited
-
Days Won
41
Everything posted by Jessica
-
Which Framework For Generating Crud On A Wampserver Setup?
Jessica replied to Jessica's topic in Frameworks
So, all the tutorials for Kohana are either broken or non-existent, and Laravel's site won't load. :/ -
One problem I see is that 1/15/2012 04:05:22 is NOT '%m/%d/%y'. 1/15/2012 would be %m/%d/%y. I've NEVER used that function so I don't know if that it is. However, you got a syntax error, and you didn't post it...why exactly?
-
Which Framework For Generating Crud On A Wampserver Setup?
Jessica replied to Jessica's topic in Frameworks
Thanks Mahngiel - I will look into those two. Which do you think would be fastest and simplest? I don't need user authentication or anything fancy - just CRUD. -
Did you read the notes on list? I wonder if the fact that getimagesize returns an array with 7 indices and you're only giving list two variables and list goes right-left, would affect it. What happens if you just print_r() the returned array from getimagesize?
-
That doesn't explain why you're using a URL instead of a FILENAME/path.
-
Why don't you just use the filename, instead of the full URL?
-
Checking Update Data If It Does Not Exist In The Database
Jessica replied to 50r's topic in PHP Coding Help
As Manixat said, put the original data in one array, the new data in another, and compare them. If they differ, add it to an array of values to update (or remove it from the new data array). -
Checking Update Data If It Does Not Exist In The Database
Jessica replied to 50r's topic in PHP Coding Help
Now your question is even less clear. You have 30 rows of data. You want people to edit only rows they can edit? What? -
Checking Update Data If It Does Not Exist In The Database
Jessica replied to 50r's topic in PHP Coding Help
If the field is the same, why does it matter if it updates it or not? Are you talking about ROWS or Fields/Columns? -
That is completely the opposite of how supply and demand works...
-
You have THOUSANDS of blogs for YOURSELF? Do you know what a blog is?
-
How I Can Make A Loop From The Values Of An Object?
Jessica replied to giwrgos's topic in PHP Coding Help
Did you try it? You're still not making sense. Is categoryid an array? If so, it should probably have a better name, but if not, why would you WANT to loop through it? -
Not a separate table - the php script that displays the messages should have options. You would select a folder, and the script would show you the messages in that folder. Common default folders would be Inbox and Sent. Also Trash sometimes. The script then uses simple logic to determine which messages to display from your single table.
-
How I Can Make A Loop From The Values Of An Object?
Jessica replied to giwrgos's topic in PHP Coding Help
foreach works on arrays and objects. If your object has an array called categoryid, you can use foreach on it. Otherwise, you need to explain what you're trying to do. You can't foreach on a single value. -
Why would the message be IN the sender's INBOX? It should be in a SENT folder. If you're showing an "all messages" view (again, like gmail), you still don't show sent messages. When you're showing the sent messages, you wouldn't bold messages they sent unless you WANT to be able to show them it hasn't been read by the reader. If you for some odd reason want to show sent messages in an inbox, you would use logic in PHP to determine the bolding - if they are the one that sent it, you don't want it bold (based on your last post), so use that logic - not the read/unread field.
-
That's what I'm confused about too - of course the sender read it, they wrote it. It should change from read to unread when the recipient reads it. I wonder if she's talking about a message thread like in Gmail?
-
That's the json? Can you post the var_dump of posts? I think within $post you have a type of photo, and you should be able to do this: case 'photo': if(is_array($post['photos'])){ foreach($post['photos'] AS $photo){ $blogroll .= "<a href='".$post['url-with-slug']."' target='_blank'>Permalink</a>"; $blogroll .= "<p>".$post['photo-caption']."</p>"; $blogroll .= "<img src=".$photo['photo-url-250'].">"; //This is the important line. - $photo not $post. } }else{ $blogroll .= "<a href='".$post['url-with-slug']."' target='_blank'>Permalink</a>"; $blogroll .= "<p>".$post['photo-caption']."</p>"; $blogroll .= "<img src=".$post['photo-url-250'].">"; } break;
-
It's just logic. You want to store if a message has been read or not. What would you add to your table? You want to store ONE THING that is a boolean. Is it really THAT HARD to figure out what you change in your table? You need to start thinking a little instead of assuming you'll find it on the internet. We are here to help but you are not doing any of this work on your own.
-
mysql_error
-
If you would do what I suggested, it'd be obvious. There is an error IN your query, which you could easily find out about by using the functions I talk about in the link I suggested you visit.
-
There is an error in your query. See the link in my signature on debugging your SQL.
-
Never ever ever do queries inside of loops! You simply need to have all of your search criteria in one query.
-
That's not what mysql_select_db is for. Did you read the manual page for that function? The manual is filled with examples on how to interact with mysql. You should move to mysqli and PDO however.
-
Your array is currently not ONE dimensional. It would be easy to make it so.
-
If you echo it outside of a textarea, yes. INSIDE a textarea it should work. Post the relevant code, not just those three lines.