T_top_bg_middle  
T_header_left
T_logo_msbware
Home Articles Portfolio References Contact
T_header_right
 

Articles » [Error for vector(entity:article..name): Invalid entity vector specified: article..name]

Written by: [Error for vector(entity:article..author): Invalid entity vector specified: article..author] Bookmark and Share


Comments

Pedro said on Feb 19, 2009 - 10:00 AM...

hello,
its helps me a lot. :)

i´m sorry my mistakes in type, because i´m from portugal

but i have a doubt.
i implemented in my website this script but just can edit one page, the ones who have the variable $data on database.

this tutorial shows how to work only with one record in the database.
how can i work with more records/pages?

Thanks,
Pedro
vamsi said on Feb 27, 2009 - 12:51 AM...

Nice Article. Please keep posting! Expecting more articles on mysqlstored procedures too. Let me bookmark u!
Robin said on Mar 15, 2009 - 12:20 AM...

Hello, thanks for your help.

i am in front of one error due to :

if ($_POST['submit_form'] == 1) {


it says : "Notice: Undefined index: submit_form in I:\Program Files\EasyPHP 2.0b1\www\index.php on line 9"

Do you know where it comes from???

thanks
Robin said on Mar 15, 2009 - 12:23 AM...

After some researches thanks google i found the solution to fix it,

just replace the line by :

if (isset($_POST['submit_form'])) {
siddharth said on Mar 16, 2009 - 2:33 AM...

Hi.. Thanks for your help.

This is working fine for inserting and retrieving data from database.
But one problem I am facing is, its not displaying the edited text color after saving. Its displaying the default black color of the text.

Please help me how to fix this..

Thanks & Regards,
Siddharth
Ahmad Abubakr said on Apr 20, 2009 - 3:27 AM...

Hey,

Thanks for this article it is very practical and get thing up and running. Thank you again

Yours
amber gifts said on May 4, 2009 - 11:25 AM...

informstive and helpful article
faizan said on May 5, 2009 - 7:00 AM...

for colur in out put put this code in where u make file after fopen

$string = str_replace("\"","", $string);
$string = str_replace("\\","\"", $string);

this code solve your problem...
Nihat said on May 19, 2009 - 8:22 PM...

Hi Michael, Thank you for a very usefull article. Would you mind of explaning of the colur issue more clearly.

Thank you.
Rob Miller said on May 25, 2009 - 7:02 AM...

Cool site.
4l3x said on Jun 10, 2009 - 2:44 PM...

Thanks Michael for this great howto!

To Nihat: What faizan means (i guess) is :

$data["data"] = str_replace("\"","", $data["data"]);
$data["data"] = str_replace("\\","\"", $data["data"]);

added after the line :

$data = mysql_fetch_array($query);

It worked for me!
Pedro said on Jun 19, 2009 - 8:34 AM...

413x and nihat:
thanks alot for solving this problem My problem was not only the color letters, it whas basicly everything that wasn't a simple text. I needed to put pictures, links, etc.. and it gave me he code full of "/" and never showed up like it was ment to, but whith this fix, everything is working fine.

thanks guys.....
Salim said on Jun 25, 2009 - 6:22 AM...

Oh it was very much helpful for me.

Is there any way to hide some component
gary_h said on Jun 25, 2009 - 1:12 PM...

Rather than str_replace, try stripslashes().
As in:
$data['data'] = stripslashes($data['data']);
gary_h said on Jun 25, 2009 - 1:23 PM...

Salim, what component would you like to hide, the Toolbar icons?

If so then edit the fckeditor/fckconfig.js file by adding a ToolbarSets with a unique name (under the Default and Basic ones):
FCKConfig.ToolbarSets["Salim"] = [
    ['Source','-','Save','NewPage','Preview'],
    ['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
    ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
    '/',
    ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
    ['OrderedList','UnorderedList','-','Outdent','Indent','Blockquote'],
    ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
    ['Rule','Smiley'],
    '/',
    ['FontName','FontSize'],
    ['TextColor','BGColor'],
    ['FitWindow']      // No comma for the last row.
] ;

You can add/substract whatever features suit you.
Then add a line to the script like this:
$oFCKeditor = new FCKeditor('fcktext');
  $oFCKeditor->BasePath = "/includes/FCKeditor/";
  $oFCKeditor->Value    = $data["data"];
  $oFCKeditor->Width    = 540;
  $oFCKeditor->Height   = 400;
  $oFCKeditor->ToolbarSet = 'Salim';
  echo $oFCKeditor->CreateHtml();


If that's not what you're talking about, then nevermind.
Ady65 said on Jul 8, 2009 - 2:57 AM...

Great tutorial. I'm currently building a news section to my site and need the function to add, edit and delete an article. Is there a way to adapt this code so I can add new articles and then have access to edit them. Also is it possible to have more than one entry field but only one submit button that uploads all the entry fields. I have a form with four fields but don't want a button at the end of each one. If been trying without success to achieve this. Any help or pointers in the right direction would be gratefully recieved. Thanks
symon00 said on Aug 13, 2009 - 9:03 AM...

Hi!
Very good article! Thank you very much!
symon00
xDDDDD said on Sep 21, 2009 - 11:18 PM...

jjojojo
ns31 said on Oct 19, 2009 - 11:18 AM...

really useful article - have been browsing the web for a while now trying to find something so clear. superb thanks
cancel said on Oct 19, 2009 - 2:05 PM...

great one :)

cheers ;)
nju said on Oct 22, 2009 - 8:29 PM...

Anyone knows how to remove the fckeditor and display the content we typed in on the same web page?

Thanks in advance.
Ray Komar said on Apr 1, 2010 - 6:34 PM...

Thanks for the info.. I was able to create an update page for a jobs site for a friend with the site info.

I just pulled it straight from the database with a select * query and used this

$oFCKeditor->Value = $myrow["Jobpost"] ;

hope that helps someone...
ashi gulati said on Aug 28, 2010 - 2:46 PM...

thanx it really helped me a lot...
zaheer said on Sep 16, 2010 - 3:18 AM...

Cart.ferprobt
confiq said on Mar 24, 2011 - 6:56 AM...

What with this?
[code]
$var1 = $var2 = false;
[/code]
If i want 2 vars to have same value?
Web promoter said on May 13, 2011 - 7:03 AM...

Great one

I like this

Web promoter
http://www.web-softsolution.com
Prabhakar said on Jul 22, 2011 - 4:24 PM...

Thanks a lot.
Its a very good article on fckeditor-php-mysql
softdev said on Dec 15, 2011 - 9:58 PM...

how can i put a message after saving?
mast3r_illusion said on Jan 16, 2012 - 10:05 PM...

Also another binary operator is the Concatenation Operator, this operator combines strings with variables or other strings. Or variables with stings or other variables. This operator i identified with the period: (.)
Example: echo "The stack begins with ".$lamp_l;
(Where $lamp_l = "linux")
So basically we are echoing: The stack begins with linux.
Victor said on May 7, 2012 - 3:51 AM...

@gary_h: Thanks! i can configure my toolbars now.


Post Your Comments

Bookmark and Share
*Your Name:
Your Email Address:
Your email address will not be posted anywhere on this site and will not be sold or given to anybody.
*Comments:

You can use the following to highlight your php code (be sure to include
the <? ?> tags!)

[CODE]
(code goes here)
[/CODE]

Verification: