Posts by Bruno Gibellino • 1,110 points
56 posts
-
1
votes2
answers413
viewsQ: How to add css to all elements whose id contains "..."?
I have several elements whose id contain, for example, "elem", may be "%elem" or "elem%", may have characters before the String elem as after or before and after ("%elem%"). And I would like to add…
-
1
votes1
answer201
viewsQ: How to style various elements with different styles in the Hover
I have a div with several links, like this: Where in the hover of div (wrapper) did only underline the bold text (title) but when doing hover in tags underlined the respective tag and did not…
-
0
votes3
answers2682
viewsQ: How to do horizontal scroll with screen size Divs
I have 4 div's who would like to put a scroll horizontal to navigate them but the div's are the size of the screen (and I want you to have the full size of the screen). I managed to do an example…
-
2
votes2
answers247
viewsQ: How to change the color of a div Parent relative to the size of the Childs
I have a div parent and 4 div's child and would like to change the color of border of div parent relative to the size of div child. To exclaim better put down an image with an example of what I…
-
1
votes1
answer100
viewsQ: How to make animation occur multiple times
I have a project that I’ve imported animate.css so that the transitions would be funnier, but one of them only occurs to me once. var check = true; $(document).ready(function(){ $(".p2").hide();…
-
0
votes1
answer40
viewsQ: Keep div on screen
I’d like to know how to make a div lively (I have function JQuery keydown that moves a div) but the div comes off the screen and I’d like it to be only 20 px of the margins. I have already put this…
-
0
votes1
answer24
viewsQ: Make several div’s Fixed
How to make so that when a div disappears all "stay in the place" in which they are. I leave below an example to be more enlightening. $(document).ready(function(){ $("button").click(function(){…
-
1
votes1
answer32
viewsQ: Add a div in the middle of an image
I have been studying Parallax, with ideas to use in future projects but I have a problem that left me stuck. I leave down my test example: body, html { height: 100%; } .parallax { /* The image used…
-
0
votes0
answers33
viewsQ: How to get the real path to a file
I upload files to a folder, which works when running in eclipse. But when I try to upload through some browser, I am not allowed due to the security of it. My question is, is there any way to get…
-
1
votes1
answer593
viewsQ: Read from a txt file via fscanf using vector
I have the following while(!feof(f)){ (*ptr).push_back(carro()); fscanf (f, "%d", (*ptr)[add].id); fscanf (f, "%s", (*ptr)[add].marca); add++; } Where *ptr is &vector, a vector of a car struct,…
-
2
votes0
answers385
viewsQ: move_uploaded_file does not move files
I have a form (in php, I wanted to ask if it works without problem? ) to insert images (the path of them) and when I enter the notification appears that were inserted in the database but the image…
-
1
votes2
answers36
viewsQ: Search only data from two tables with different id’s
Good, I have 2 tables: Cars: id; model; Comb; price; Carros_img: id; id_fk; (Foreign key of Cars) img; I do this research: SELECT DISTINCT carros.id, carros.modelo, carros_img.img, carros_desc.comb,…
-
0
votes2
answers59
viewsQ: Accentuation of the database not accepted on the site
I have a text in the database but the site does not assume the accentuation of type ã, á, ç and puts in place of those letters some strange characters: My database is with latin1_swedish_ci grouping…
-
1
votes0
answers30
viewsQ: How to use Range Slider for images
I have a car sales site to do, but I’m having a hard time with the filters where I need the maximum price and the minimum price, so I did a range slider for the first time but I can’t get it to…
-
3
votes2
answers109
viewsQ: How to show latest date data?
I have a Tabela1: ID Auto_increment; varchar; date; I would like to show only the data with the latest date. How do I?
-
2
votes1
answer324
viewsQ: How to do While from one table and show data from another?
I have two tables: Tabela1: Id int A_I; Modelo varchar; Tabela2: Id int A_I; Id_fk int (foreign key da tabela1); cor; And wanted to do a Tabela1 while but show table data2. <?php include…
-
-3
votes1
answer267
viewsQ: Add a value to while in php
I have the following code: <?php $con = mysqli_connect("localhost","root","","gibellino"); mysqli_set_charset($con,"utf-8"); $result = mysqli_query($con,"select * from index_img"); while($row =…
-
-2
votes4
answers2938
viewsQ: Link without using href
Is there any way to use links without the tag <a href>. For example <a href="exemplo">exemplo</a> there’s another way to do this?
-
1
votes1
answer199
viewsQ: how to put text in while in php just once
I have an image gallery made with fancybox that all the images that appear come from the database. the gallery is something thus. I have this: <div id="exterior"> <?php $con =…
-
3
votes2
answers836
viewsQ: Pop-up gallery of images
I have in an HTML file this: And I wanted when you click on one of the images to pop up a slide of images, like a gallery. Something like this http://www.monocapa.pt/portfolio.php, someone knows how…
-
3
votes1
answer572
viewsQ: How to use two css files in an html
How can I use two CSS files in an HTML file, but one of the CSS files is only used in one div. I have a CSS file to style the page, but I needed another CSS file to style a div in the middle of the…
-
1
votes5
answers3255
viewsA: Carrousel in php and mysql
Well, this answer is for those who want to make a carousel but do not know how many and which images they will put, or in other words to make a carousel with images from the database. I will explain…
-
1
votes1
answer54
viewsQ: Textbox with editing
I have a textbox And I wish I could edit the text on it. For example, I wish that on the website I could write in the textbox the following text: "This is a test!" And that could do, by clicking…
-
1
votes1
answer134
viewsQ: Problems with html formatting
I have an image upload with text on a website and after inserting shows the images and text. The upload saves the images in a folder and yours path in the database. It’s supposed to look like this:…
-
2
votes1
answer45
viewsQ: Use 2 fonts in a sentence
I have a website that the client asked me to use a type of source for some things and another type for others. And he asked the mail to be all typed (type1) but this type is not @ so he asked the…
-
1
votes2
answers2057
viewsQ: Upload images to Codeigniter
Good, At first I wanted to say that I don’t understand anything, but I really don’t know anything about Codeigniter. But the site is so done and asked me to add an image upload. And so I did, but…
-
5
votes5
answers3255
viewsQ: Carrousel in php and mysql
I have an "upload of files" and I needed to show them on a Carousel. The image path is stored in the database and the images in a folder, of course. I have the following code: <div…
-
-1
votes3
answers7829
viewsQ: Put external font on website
I have a font that I need to put on the site (edosz.ttf), I have been searching and I ended up with this code: @font-face{ font-family: "edosz"; src: url('edosz.ttf'); } but I can’t! Someone could…
-
-1
votes1
answer74
viewsQ: File Upload
I am new to php and database and have never uploaded files. I have read and advise only to store the path of a file in the database and not the file itself. I was advised to see in…
-
1
votes1
answer271
viewsQ: Insert current date in Database
I have a database with a table Noticias with: Id (Primary key and auto_increment) News (varchar, where I write the news) Date(where the current date has to be, only dd/mm/yyyy) but I never messed…
-
2
votes4
answers306
viewsQ: How to link to table?
I have a Table in PHP and in each tr I need a link <?php $con = mysqli_connect("localhost","root","", "saber"); mysqli_set_charset($con,"utf8"); $result = mysqli_query($con,"select id,nome,vista…
-
1
votes3
answers751
viewsQ: Problems with uploading images in PHP
I never touched uploading files and today I really need to do it. I have a code to test, to then use it on the site. Here’s the HTML: <html> <body> <form action="inserir.php"…
-
3
votes3
answers406
viewsQ: Parse error: syntax error, Unexpected {
I have a PHP file to check if SESSION is defined: <?php session_start(); if(isset($_SESSION['user']){ echo "<script>document.location.href='../areaprivada.html';</script>"; } else{…
phpasked Bruno Gibellino 1,110 -
2
votes1
answer50
viewsQ: form does not insert into database
I have a HTML with that code: <div class="row"> <form method="post" action="php/mensagem.php" accept-charset="utf-8"> <div class="row"> <div class="col-lg-6 col-md-6 col-sm-12…
-
1
votes1
answer64
viewsQ: Script Problem with PHP Checking Session
I have a form but it is hidden only when clicking a button located on the Nav is called that function: <script> function verifLog(){ <?php session_start(); if (isset($_SESSION['user'])){…
-
1
votes3
answers1096
viewsQ: Send mail with form data
I have a form in a file html and needed to click on Submit the data were sent to an email. I tried to put on form, action="mailto:....", which was the only solution I could find, but when I clicked…
-
2
votes1
answer50
viewsQ: How to get variable from an HTML form?
I have an HTML file (html1) to fill user and pass, and call a PHP file (php1) to authenticate the values. But I need the user in another PHP file (php2) how to call the value of user in the php2…
-
0
votes0
answers35
viewsQ: Error sending email through the mail function
I need to make one form that send a message to a mail. I already used "mailto:...." but when I went to test I was always opening the outlook. So he went to research and I ended up with this code on…
-
1
votes1
answer59
viewsQ: Problems with connection to the database
I have an error that could not connect to database on line 125 in the file I will leave here. 'Cause they handed me a website but I don’t understand anything about you. I have to call (for testing)…
-
1
votes1
answer62
viewsQ: PHP Database Search
I have a database with 3 tables and I need to know if in table A (for example) the field guy for 0 will fetch data from table B, if for 1 will fetch data from table C. And I have the following code…
-
1
votes1
answer642
viewsQ: Error "trying to get Property of non-object" when using ipinfo.io
I’m relatively new with PHP and I started going through a site. And I found the following code that was going wrong: <?php function ip_details() { $json = file_get_contents("http://ipinfo.io/");…
phpasked Bruno Gibellino 1,110 -
2
votes1
answer50
viewsQ: Problems with **UL inline**
Good, I have a problem making one ul inline thus because every time I try to hr and vertical-align always comes out of place. This is the result you give me: ul { list-style-type: none; margin: 0;…
-
6
votes2
answers1068
viewsQ: 2 Foreign key in one field
Good, I have 3 tables: Athlete Id (Pk) Name Athlete Id (PK) Name Nfed Escorts Id (PK) Name Type Athlete (FK) The field Athlete on the table Escorts is the Id table Athlete and table Athlete. How do…
mysqlasked Bruno Gibellino 1,110 -
0
votes1
answer65
viewsQ: Difficulty with Encoding
Good, I have a file PHP with encoding UTF-8. And the text with accents in the part HTML they look like they should, but when I go to the database. Encoding of the database Data from the database…
-
1
votes3
answers866
viewsQ: Image with horizontal hr centered vertically in half
Good, I have here a problem that in putting one <h1> followed by an image and a <hr> as in the following image. With the following code: <div id="bola"><h4 style="text-align:…
-
1
votes2
answers90
viewsQ: Search for two Mysql tables in php
I have two tables that are: Registration Dorsal(id auto_increment Primary key); Name; Team; Classification Place(id auto_increment Primary key); Dorsal (Foreign key); and the following code in PHP:…
-
1
votes3
answers878
viewsQ: image and hr side-by-side
I want an image (the yellow curve at the bottom) and an hr that way: And I have the code like this: <div> <img src="http://culturalis.pt/wp-content/uploads/2015/06/curva.png"…
htmlasked Bruno Gibellino 1,110 -
2
votes1
answer1369
viewsQ: How to log in and maintain the session?
I have a page HTML with an administration button before you have a login popup and the php from that login to is in another file. And I wanted to know how to do so that if he accepts the login, he…
-
1
votes1
answer828
viewsQ: Counter variable PHP
Good staff, I have a form in a file PHP to fill a leaderboard. And wanted my form asks itself something like, "Athlete’s number in the ___" position, where the number of the position in the __. For…
-
2
votes1
answer51
viewsQ: Header does not work
Boa Pessoal, I have a php file that is named after filling a form in an html file. The function of this php file is to add data to the database and after inserting it has the following code:…