Same thing, every possible field is completed, but only the idCliente field, which comes from the javascript, is missing...
Also, whenever I open that popup, it refreshes my page, even though I never told it to do so. Can that be a problem?
Search found 19 matches
- Thu Nov 19, 2009 2:17 pm
- Forum: PHP - Code
- Topic: Popup values showing up, but they get blanked out
- Replies: 5
- Views: 224
- Thu Nov 19, 2009 1:39 pm
- Forum: PHP - Code
- Topic: Popup values showing up, but they get blanked out
- Replies: 5
- Views: 224
Re: Popup values showing up, but they get blanked out
Those lines just bring the data that needs to be displayed to the parent page, and the parent page shows those data correctly, so I don't think that the problem is there...
Gonna try to test it on another server, will post the results.
Gonna try to test it on another server, will post the results.
- Thu Nov 19, 2009 12:24 pm
- Forum: PHP - Code
- Topic: Popup values showing up, but they get blanked out
- Replies: 5
- Views: 224
Re: Popup values showing up, but they get blanked out
Thanks, here's the code. Be advised, this is not the prettiest thing you'll ever see, I still need to learn A LOT about PHP. incluir.php (include.php) <HTML> <HEAD> <TITLE>Cadastro de Contato</TITLE> <link rel="stylesheet" type="text/css" href="../_css/style_menu.css&quo...
- Thu Nov 19, 2009 11:55 am
- Forum: PHP - Code
- Topic: Popup values showing up, but they get blanked out
- Replies: 5
- Views: 224
Popup values showing up, but they get blanked out
So guys, this is my problem. I'm trying to make a registration page for my company so they can manage the costumers more effectively. I already have a database crowded with costumers, and I need to query that database so I don't need to type all of the data again. I made a button that opens another ...
- Thu Nov 19, 2009 11:50 am
- Forum: PHP - Code
- Topic: Running my first PHP page.
- Replies: 3
- Views: 138
Re: Running my first PHP page.
Since you're new to the language, I recommend downloading EasyPHP , which is as light as it can get and demands little, if not none, customization from the user to get up and running. It comes with PHP, Apache and a MySQL service so you can get started with your pages. I don't remember if you will g...
- Tue Oct 13, 2009 9:28 am
- Forum: PHP - Code
- Topic: Combobox values sometimes doesn't insert into MySQL
- Replies: 0
- Views: 218
Combobox values sometimes doesn't insert into MySQL
Hello people! I'm having a problem here. I've moved into a project where the previous developer had established 3 files: a HTML, a PHP and two JSs. -- The HTML defines the layout of the page, with the fields and such. -- The PHP defines what is going to happen, which function is gonna be activated, ...
- Fri Jul 17, 2009 7:24 am
- Forum: PHP - Code
- Topic: Returning a BLOB image
- Replies: 11
- Views: 2580
Re: Returning a BLOB image
I know that it isn't the proper way, that's why I'm trying to retrieve them in PHP so I can undo the mistakes of the database. We have almost 10 years of images regarding problems from costumers that we need to store, and since then we store them in that blob field. My mission is to do it, but I got...
- Thu Jul 16, 2009 4:26 pm
- Forum: PHP - Code
- Topic: Returning a BLOB image
- Replies: 11
- Views: 2580
Re: Returning a BLOB image
Well... I got something different now. I get that download pop-up when I execute the page. At least now it gives me the "broken image" icon on the html page. Here's the code: <?php if (empty($_GET['id']) || !is_numeric($_GET['id'])) { echo 'A valid image file id is required t...
- Thu Jul 16, 2009 8:25 am
- Forum: PHP - Code
- Topic: Returning a BLOB image
- Replies: 11
- Views: 2580
Re: Returning a BLOB image
...And that leads me to the problem of the page showing only its URL.
I really don't know what would be the problem. Every example I try to do shows that, and I just don't know what can be done about it.
I really don't know what would be the problem. Every example I try to do shows that, and I just don't know what can be done about it.
- Wed Jul 15, 2009 1:54 pm
- Forum: PHP - Code
- Topic: Returning a BLOB image
- Replies: 11
- Views: 2580
Re: Returning a BLOB image
I looked into google for some other code and I found this one: <?php ini_set ("display_errors", "1"); error_reporting(E_ALL); $id = $_GET['id']; if(($id != "") && ($id == $_GET['id'])) { require_once('connect.os.php'); ...
- Wed Jul 15, 2009 9:54 am
- Forum: PHP - Code
- Topic: Returning a BLOB image
- Replies: 11
- Views: 2580
Re: Returning a BLOB image
Yes, the connect.os.php file is just a file with all the info from our server to connect to the website. After doing your modifications, I still can't display the image. When I change the file type to png, it says that the image has errors and cannot be displayed. If I just comment those lines, it w...
- Tue Jul 14, 2009 4:14 pm
- Forum: PHP - Code
- Topic: Returning a BLOB image
- Replies: 11
- Views: 2580
Re: Returning a BLOB image
Well, I did that, and all that it returned was the address of the website. Could that be a problem because I'm running tests on a localhost (127.0.0.1)? Do you think that it will behave any better if I try to run it on the server? Here's the code after the modifications: <?php include 'conne...
- Tue Jul 14, 2009 3:13 pm
- Forum: PHP - Code
- Topic: Returning a BLOB image
- Replies: 11
- Views: 2580
Returning a BLOB image
I'm trying to get an image stored on a MySQL database in a BLOB to show up on the webpage. Here's the code I got so far: <?php include 'connect.os.php'; $id = $_GET["id"]; $sSQL = "SELECT imagem FROM osfoto WHERE oscodigo = $id"; $result = mysql_query(...
- Wed Jul 01, 2009 3:32 pm
- Forum: PHP - Code
- Topic: Displaying an image that is stored within MySQL
- Replies: 6
- Views: 341
Re: Displaying an image that is stored within MySQL
Hmmm, it didn't work. Still echoes those weird digits.
And my company already implemented the system (wich we are porting to .PHP) that way, so taking that out of it is a no-go.
And my company already implemented the system (wich we are porting to .PHP) that way, so taking that out of it is a no-go.
- Wed Jul 01, 2009 12:47 pm
- Forum: PHP - Code
- Topic: Displaying an image that is stored within MySQL
- Replies: 6
- Views: 341
Displaying an image that is stored within MySQL
So, I want to display an image that is stored in a MySQL table through a Medium BLOB field. I believe it isn't the same way as displaying an image that is on a folder, so I'm here to ask that.
How can I do it?
How can I do it?