Gil Carvalho

Ranch Hand
+ Follow
since Dec 10, 2013
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Gil Carvalho

Hi

I need some help regarding this subject

I need a variable Date who return me today's date in yyyy-MM-dd

I need another variable Date who retursn Date from today + 7 days

The examples seen doesn't help me

Regards
7 years ago
Hi

Thanks for your help
I'm not sure if it is what you want but here is the image



This is the main file

The code



But my preferences is inside the xml folder, not layout folder

8 years ago
Hi

I'm having problems regarding the use of preferences in fragment.
the image shows the problem



This is my main xml



Wich includes another layout



and this one the content



Everything is working fine but when i use this code to load preferences i have that issue



Any help??

Thanks
8 years ago
Hi

I'm having problems regarding the layout presented with this fragment.
The list start behind the navigation drawer...

This is my fragment code



And this is my layout



8 years ago
Hi

Can someone help me with this code, i can't call my function from ajax

This is the ajax code




and this is my class function


8 years ago
PHP
Hi

Thank you again
Now, yes, i have this working
One question more

i put this



But in my function i don't get the response



Why is that?

Thanks again for your help

Best regards
8 years ago
PHP
Hi

Thanks again....no, that nsert doesn't either but i found something interesting
All the post variable ara correct, with the right values but inside the for check the debug
$hora has 1,2,3,4

when i use the variable
$horas = hora[i]

I have only one value...

Whats wrong?

Thanks
8 years ago
PHP
Hi

Thanks
No, this is not the problem

id_ocup is aoto increment

The value $hora is sent from ajax with 1,2,3,4
But when inserted i just have the 1?

The problem is here is this code

8 years ago
PHP
Hi

Thank you for your help

I put the line but i still not receive the data into my database, check image


The url passed is

dia=5&sala=2&hora%5B%5D=1&hora%5B%5D=2&num=2

But you can see, i have null in all records

So, whats wrong??

8 years ago
PHP
Hi

I have this javascript


and this html


I can't record thos options in my table

this is my php script



The script add only id_dia, id_sala in database, not the values of the multiple selector.

any help?
8 years ago
PHP
Hi

I need some help
I would like to check if room is available before the user save it.

This is my code


And this is my layout

But before that i would like to kown if it isn't already taken like when i register in a website and the username is checked if not in use..any help?

Thanks

8 years ago
This is the result of this query(image)


This is caused by an if statement i need in my java code
I must check if school booking has a equipment or just a classroom
This is my book table(image)

So i an user book just a classroom without equipment the result is null in idequipamento field if he books with equipment i have the id of that equipment

Example

idreserva idutilizador idsala idtempoInicio idtempoFim data idequipamento
--------- ------------ ------ ------------- ---------- ---------- -------------
116 1223 4 13 14 2015-03-20 1
125 1 1 11 11 2015-03-20 5
126 1 1 11 11 2015-03-20 (NULL)
127 1261 1 11 11 2015-03-20 6
128 1261 1 13 14 2015-01-26 3

So i want to my query checks if i have an "Null" value it open a java window, if i don't have open me another one.



Thank you

Yes, i understand but i need that Inner Join, who gonna gives me the name..

Any solution for that?
Hi

Can somenone help me with this query



Nothing is showed.....any help?

Thanks
Hi

Thanks for your reply
Well, i don't know why is nif.
But what i'm seeing the nif is too get a number of 9 digits.
The code was mi«odified..the orignal is this one but doesn't accept letters, this one accept letters but no numbers

The original is here

https://www.acesso.gov.pt/autentica_static/scripts/app.js?cb=2.2.3.2085

Is this one