This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| global $wpdb; | |
| $result = $wpdb->get_results('SELECT * FROM wp_frm_items LIMIT 10'); | |
| foreach( $result as $results ) { | |
| echo ("<li>" . $results->name ."</li>"); | |
| } | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Template Name: General Template | |
| * Description: Used as a page template to show page contents, followed by a loop | |
| * through the "General" category | |
| */ | |
| // Add our custom loop | |
| add_action( 'genesis_loop', 'cd_goh_loop' ); | |
| function cd_goh_loop() { | |
| $args = array( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // https://premium.wpmudev.org/blog/wordpress-theme-customization-api/ | |
| $wp_customize->add_section( | |
| 'mytheme_footer_options', | |
| array( | |
| 'title' => __( 'Background Video URL', 'zerif-lite' ), | |
| 'priority' => 1, | |
| 'capability' => 'edit_theme_options', | |
| 'description' => __('Change footer options here.', 'zerif-lite'), | |
| ) | |
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| int main () | |
| { | |
| FILE * MyFile; | |
| char string[1000]; | |
| MyFile = fopen ("F:\\myfile.txt","r+"); | |
| while(! feof(MyFile)) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| int main () | |
| { | |
| FILE * MyFile; | |
| char string[1000]; | |
| MyFile = fopen ("myfile.txt","r+"); | |
| while(! feof(MyFile)) | |
| { | |
| fscanf(MyFile,"%s",string); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| int main () | |
| { | |
| FILE * MyFile; | |
| MyFile = fopen ("F:\myfile.txt","a"); | |
| if (MyFile!=NULL) | |
| { | |
| fputs ("Writing to a file using 'fopen' example.",MyFile); | |
| fclose (MyFile); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| int main () | |
| { | |
| FILE * MyFile; | |
| char string[10]; | |
| MyFile = fopen ("myfile.txt","a"); | |
| fputs ("Writing to a file using fopen. \n",MyFile); | |
| fclose (MyFile); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| int main () | |
| { | |
| FILE * MyFile; | |
| char string[10]; | |
| MyFile = fopen ("myfile.txt","w"); | |
| fputs ("Writing to a file using fopen.",MyFile); | |
| fclose (MyFile); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| typedef struct nodes { | |
| int val; | |
| struct nodes * next; | |
| struct nodes * prev; | |
| } node; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include<stdlib.h> | |
| #include<stdio.h> | |
| typedef struct nodes { | |
| int val; | |
| struct nodes * next; | |
| } node; | |
| void main() { | |
| node * curr, * head; |
NewerOlder