Jump to content

christalix

Member
  • Posts

    5
  • Joined

  • Last visited

Posts posted by christalix

  1. ok, thefirst correction l will do in your code is to change the position of the require.

     

    case 'formAdd':

    require_once("menu_adding_form.php");

    break;

     

     

    should be:

    <?php

    require_once("menu_adding_form.php");

     

    then switch something eg. switch($v){

     

    case 'formAdd':

     

     

     

    break;

     

     

    }

    ?>

     

     

    If u need more assist let me know..

  2. Well, l will try that at the job place tomorrow. it is like the $value is the parent and under the $value are the children $value2.

     

     

    So if there are no $value2 in $value, then deleting should be able with else not able to be deleted.

     

    It is mostly on this parent and children databse.

     

    The $value and $value2 calues are in the databse which ar ebeing called out with the foreach loop............>

     

    I will try !!

  3. if l wll be you, l will use a javascript.

     

    define something like

    $ready=;

     

     

    then use javascript code and refer the $ready in the javascript.

     

    It is very easy. If you can not handle it, let me know and l will post you a full written java script code!

     

     

    However, your warning seems like you have two

     

    if(isset($_POST['xxxx'])) {

    header("Location: url");

     

     

    if this is the case, do well to delete one since the error message is telling you that, the header has already sent a location and you are trying to overwrite on the older one....

     

     

     

     

     

    "Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\vhosts\qwebdesign.net\httpdocs\admin\index.php:15) in C:\Inetpub\vhosts\qwebdesign.net\httpdocs\admin\user_manager.php on line 319"

     

    check the line 319 of the user_mnager.php and the line 15 of the index.php. There is a conflict......>the index.php header you are trying to write has already been sent by the user_manager.php. And l bet you have included one of them in the other.

     

     

    Best Regards

  4. Hello,

    Sorry to bother you guys.

     

    If l have a variable called $value and this value fetches array from my database.

     

    ex.

     

     

    $xyz=mysql_query("SELECT contentext FROM blablabla WHERE parent is NUTLL);

     

    foreach($xyz as $value =>$key){

    echo $value[1][0]['contenttext'];

    //where 0 is my error messages and 1 is my reuslt

    }

     

    then, l have

     

    $xyz2=mysql_query("SELECT contentext FROM blablabla WHERE is_campaign is NOT NULL AND parent IS NOT NULL);

     

    foreach($xyz2 as $value2 =>$key2){

    echo $value2[1][0]['contenttext'];

    }

     

     

     

    So now if l am working on two different delete buttoms. I will like the delete.gif to be red if nothing is in the $value.

     

    l went this way:

     

    if(is_num($value > 0){

     

    echo " you can not delete since the $value has a $value2 contents in it";

     

    }else{

    echo " You can delete this $value 2 since it contains no $value content";

     

    }

     

     

     

    This is not working mich for me.

     

    Any tip on doing this ?

     

     

    Thanks

×
×
  • Create New...