Forum Replies Created

Gallard Member

So, I don’t usually provide source code as I prefer to let others do the studying themselves but just provide tips.

I assume you have your HTML code setup, if not, please learn HTML before proceeding to PHP.

Then, one you have your form pointing to the php script you can do:


some_other_page.php:


Please note this code is untried and untested, so I have no idea if this actually works (been a long time since I did non-OOP PHP).

Hope this helps and use it as a basis for growing your knowledge.

Gallard Member

You could also go with AST (Abstract Syntax Trees) where you’ll use… Well… Trees. Trees are quite interesting, and there is a variety of them. Look them up, see what they are used to do and maybe you’ll find some ideas to… Borrow.

Gallard Member

This is my function : at first factory is set to NULL and size to 0

Worker * add_workers(Worker * factory, int * size){

Worker **arr,*temp;
int i,length;

printf("Enter number of workers for adding : \n");
scanf("%d",&length);
getchar();
arr=(Worker**)malloc(length*sizeof(Worker*));
size=&length;
for(i=0;iname);
printf("Enter ID :\n");
scanf("%ld",&temp->ID);
printf("Enter number day's working in month: \n");
scanf("%d",&temp->workdays);
printf("Enter the day number : \n");
scanf("%d",&temp->wd->DayNumber);
printf("Enter the day's work hours : \n");
scanf("%d",temp->wd->WorkHours);
getchar();
arr[i]=temp;
}

}
Gallard Member

If you have a goal, then choice of language depends on it. For beginning, i would suggest Python or Java.

in reply to: Htaccess IP Redirect
Gallard Member

Isn’t that easily fixed by changing it slightly?

RewriteCond %{REQUEST_URI} /requested-page\.html$

Becomes

RewriteCond %{REQUEST_URI} ^/requested-directory/$

I’m no expert on htaccess syntax, so I could be slightly off. But the script does what you want. You only need to find how to use request_uri with folders.

Gallard Member

This can have two solutions:
1)They messed the package tree and in some days it will be fixed
2)You are building a 64bit version on a 32bit library.

The 1) auto resolves, for the 2) you have to deep reinstall mysql. You have to install it together with all its dependencies choosing the correct architecture and eliminating all the duplicated architecture files. The last part is what you were doing.

Gallard Member

what is your current experience ? any experience in html and sql ? maybe javascript ? ajax and json calls ?

thing is : there is nothing as a “simple” CMS , you will need to include password reset options, user preferences , user management, access management etc. If you are just now wanting to learn php & sql , then you might have quite a long road ahead of you,

Ruby is a language in it’s own and laravel is a framework …

Gallard Member

“How do it” C# videos by Microsoft

http://msdn2.microsoft.com/en-us/vcsharp/bb798022.aspx
Gallard Member

To make your GUI look like Windows:

String lookAndFeel = "com.sun.java.swing.plaf.windows.WindowsLookAndFeel";
try {
         UIManager.setLookAndFeel(lookAndFeel);
} catch (Exception e) {
         e.printStackTrace();
}

You need to set the look and feel before adding components. Change the long string at the top for a different look.
You -NEED- the try/catch statement with this afaik, as java checks for it on compile.

Viewing 9 posts - 1 through 9 (of 9 total)
en_USEnglish