require("BD_con/conexion.php"); ?> $sql = "SELECT * FROM company_texts WHERE company_id = '$company'"; //$result = mysql_query($sql) or die(mysql_error()); $result = mysqli_query($con,$sql) or die(mysql_error()); //if ( mysql_num_rows($result) > 0 ){ // while ( $row = mysql_fetch_array( $result ) ){ if ( mysqli_num_rows($result) > 0 ){ while ( $row = mysqli_fetch_array( $result ) ){ $company_id = str_replace("´","'" , $row['company_id']); //echo 'COMPANY ID'.$company_id; $thankyou_text_premio = str_replace("´","'" , $row['thankyou_text_premio']); $wellcome_title_1 = str_replace("´","'" , $row['wellcome_title_1']); $wellcome_text_1 = str_replace("´","'" , $row['wellcome_text_1']); $wellcome_title_2 = str_replace("´","'" , $row['wellcome_title_2']); $wellcome_text_2 = str_replace("´","'" , $row['wellcome_text_2']); $wellcome_text_3 = str_replace("´","'" , $row['wellcome_text_3']); $total_reviews_title_1 = str_replace("´","'" , $row['total_reviews_title_1']);//echo 'total_reviews_title_1: '.$wellcome_title_1; $total_reviews_text_1 = str_replace("´","'" , $row['total_reviews_text_1']); $total_reviews_text_2 = str_replace("´","'" , $row['total_reviews_text_2']); $write_reviews_title_1 = str_replace("´","'" , $row['write_reviews_title_1']); $write_reviews_text_1 = str_replace("´","'" , $row['write_reviews_text_1']); $thankyou_title_1 = str_replace("´","'" , $row['thankyou_title_1']); $thankyou_text_1 = str_replace("´","'" , $row['thankyou_text_1']); $thankyou_text_2 = str_replace("´","'" , $row['thankyou_text_2']); $thankyou_title_1_B = str_replace("´","'" , $row['thankyou_title_1_B']); $thankyou_title_2 = str_replace("´","'" , $row['thankyou_title_2']); $thankyou_text_1 = str_replace("´","'" , $row['thankyou_text_1']); $sorry_1_text = str_replace("´","'" , $row['reward_1_text']); $sorry_title_1 = str_replace("´","'" , $row['sorry_title_1']); $sorry_text_1 = str_replace("´","'" , $row['sorry_text_1']); $img_sorry = str_replace("´","'" , $row['img_sorry']); $improvements = str_replace("´","'" , $row['improvements']); $reward_2_text = str_replace("´","'" , $row['reward_2_text']); $reward_2_reward = str_replace("´","'" , $row['reward_2_reward']); $reward_2_logo = str_replace("´","'" , $row['reward_2_logo']); $reward_3_text = str_replace("´","'" , $row['reward_3_text']); $reward_3_reward = str_replace("´","'" , $row['reward_3_reward']); $reward_3_logo = str_replace("´","'" , $row['reward_3_logo']); $reward_4_text = str_replace("´","'" , $row['reward_4_text']); $reward_4_reward = str_replace("´","'" , $row['reward_4_reward']); $reward_4_logo = str_replace("´","'" , $row['reward_4_logo']); $reward_5_text = str_replace("´","'" , $row['reward_5_text']); $reward_5_reward = str_replace("´","'" , $row['reward_5_reward']); $reward_5_logo = str_replace("´","'" , $row['reward_5_logo']); $reward_6_text = str_replace("´","'" , $row['reward_6_text']); $reward_6_reward = str_replace("´","'" , $row['reward_6_reward']); $reward_6_logo = str_replace("´","'" , $row['reward_6_logo']); }} ?>