Posts by Ana Carolina Ribeiro • 451 points
22 posts
-
1
votes1
answer427
viewsQ: Set image height and width
I have this PHP code, I am uploading photos and saved them in a folder called 'photo' of my computer, I needed to be able to define the image with width and height of 1000 px and 72dpi, beyond the…
phpasked Ana Carolina Ribeiro 451 -
-1
votes1
answer35
viewsQ: Doubt with facebook API
I’m using the facebook comment api, but it’s not responsive, when the screen is small wanted the width of the box to be different, how can I do that?
-
2
votes1
answer54
viewsQ: Doubt with facebook API
I have a blog and want to create a button to like/share the blog posts on facebook. Put the option for the person to like and share the post on top of the blog comments. You can do this?
-
7
votes1
answer20447
viewsQ: Problem with facebook API
On the site, I’m using the facebook API to login, only when I try to login through the facebook button appears this message: Unable to load URL: The domain of that URL is not included in the…
-
0
votes1
answer14
viewsQ: Problem deleting a field from the table
When I try to delete a row from my table, it returns me this error ERROR: update or delete on table "menu" violates foreign key constraint "fk_menu_id" on table "view_menu" DETAIL: Key…
-
0
votes2
answers77
viewsQ: Variable returning Undefined
I have this chunk of code and the inputs, when I click to edit the city and click to save works normal, now if I don’t change the city, it passes as Undefined and can not save. How can I do so when…
phpasked Ana Carolina Ribeiro 451 -
1
votes1
answer41
viewsQ: Doubt with Join
I have the table address where do I select: SELECT street, number, city_id,town FROM address WHERE address_id = :address And on the table city have the city_id and I have the link. I need to get…
databaseasked Ana Carolina Ribeiro 451 -
0
votes0
answers33
viewsQ: Problem with validation
I have this input in php: <input id="complement" class='input-without-icon' type="text" placeholder="Complemento/Referência" value='<?php echo $Menu->getAddressComplement() ?>' /> I…
-
5
votes1
answer3135
viewsQ: Allow only numbers in an input
I have two input fields, latitude and longitude. In it I should only allow the input of numbers, sign - and . how can I make a function for that?
javascriptasked Ana Carolina Ribeiro 451 -
2
votes1
answer33
viewsQ: Problem with date!
I have this piece of code: if ($informations->fundation_date != $dateFoundation) { echo 'estou no echo diferente do date'; $alter .= 'fundation_date/'; } else { echo 'esta igual date'; }…
phpasked Ana Carolina Ribeiro 451 -
1
votes3
answers399
viewsQ: Doubt about C pointers
void imprime (char *v, int n) { char *c; for (c = v; c < v + n; v++) printf ("%c", *c); } I have this function, but I don’t understand what exactly she’s doing and how the pointers behave in this…
-
0
votes1
answer53
viewsQ: Give Insert in another table
if (isset($_POST['menu'])) { $menu = $_POST['menu']; $delivery = null; if (isset($_POST['delivery'])) { $delivery = $_POST['delivery']; } $cards = null; if (isset($_POST['cards'])) { $cards =…
phpasked Ana Carolina Ribeiro 451 -
0
votes1
answer261
viewsQ: How to force my variable in php?
if ($stmtMoreInformations->execute()) { $stmtUpdateMoreInformations = $conn->prepare("UPDATE menu SET only_delivery = :delivery, card_on_delivery = :delivery, wifi = :wifi, live_music =…
phpasked Ana Carolina Ribeiro 451 -
1
votes0
answers32
viewsQ: How to use Join in UPDATE?
This is my command: UPDATE address SET lat = :latitude, lng = :longitude WHERE menu_id = :menu Only that menu_id is not from the same table. How can I do?…
-
1
votes2
answers52
viewsQ: Refresh page if successful
This is my php code: if(isset($_POST['menu'])){ $menu = $_POST['menu']; $dateFoundation = $_POST['date']; $cnpj = $_POST['cnpj']; $latitude = $_POST['latitude']; $longitude = $_POST['longitude'];…
-
0
votes0
answers38
viewsQ: My field dates this Undefined
My date field in php when I give Alert appears as Undefined, how to fix? var menuid = $("#menuid").val(); var date = $("#fundation-date").val(); var cnpj = $("#cnpj").val(); var latitude =…
-
7
votes2
answers566
viewsQ: Insert into multiple input fields in different tables
I have the date fields, CNPJ, latitude, longitude, site, facebook, on the same screen, only are 3 different tables, how do I give the insert in them from the same button?? What do I use to save the…
-
1
votes0
answers202
viewsQ: Validation Issues with jQuery Mask
I have this in my javascript file but I don’t know why it’s not working in my fields. $(document).ready(function () { $("#number").mask('00000'); $("#open-hour").mask('00:00');…
jqueryasked Ana Carolina Ribeiro 451 -
0
votes1
answer1290
viewsQ: How to validate CNPJ
I have this Submit from my form that comes from php, wanted to validate two fields within it the of cnpj and date. How to do? $("#more").submit(function repeatLink (event) { event.preventDefault();…
javascriptasked Ana Carolina Ribeiro 451 -
0
votes1
answer134
viewsQ: How to call onblur from that Ubmit?
$("#more").submit(function (event) { event.preventDefault(); alert('estou aqui'); var link = $("#link").val(); var date = $("#date-foundation").val(); var…
javascriptasked Ana Carolina Ribeiro 451 -
1
votes1
answer61
viewsQ: Validation input problem
I have a form in php where I have some fields (input) and a Submit button to send. One of the inputs does the javascript checking if it has equal link or not, if it has equal link it should not…
-
1
votes1
answer493
viewsQ: Take a facebook profile picture and save it to my database?
I’m already able to login with facebook but I don’t get the photo of the person, how to do this? I saw some things like ''https://graph.facebook.com/ID_user/picture But how can I use it?…