194 Posted Topics
This is not really a problem to me, but may be a bug. On odd occasions the icons net to the forum posts change at will! This may be my connection, or something else. An example: This morning I scanned through the PHP forum, and there were about ten posts … | |
Re: I never use backticks, or quotes around field names, also make sure there are no spaces mysql_query("INSERT INTO Stock (Produk,Jumlah,Tanggal) VALUES ('PO','Jumlah','Tanggal')"); spaces will upset mysql! | |
I always try to learn one new thing each day, whether it's work (I'm a maintenance engineer), hobbies (php, sql, html) or languages, just now it's greek, as I lived in Cyprus for 8 years i'm making the effort, hard language, especially at my age, but show willing, and you … | |
Re: line 11, the <form> is in the middle of <table> so won't work. | |
Re: Check your opening and closing php tags. You have one missing. You should re-write this code referring to a good reference manual as you are doing it. | |
Re: if this is register.php change this line <form action = "register.php" method=post> to this <form action="" method="post"> also I noticed that you are double encrypting the password and salting with a random number in the 100,000 range, I would think that gives a 100,000 to 1 chance of it being … | |
Re: check out wapache, a sourceforge project, I think it will be your perfect solution, I have built some desktop apps with it, using sqlite database. It's as easy as making a website. | |
Re: @diafol, wherever *anything* came from is debatable in McD's! | |
Re: use 'include' not 'require_once' | |
Is it posible to use sqlite3 in procedural rather than object oriented mode, or do I *have* to learn PDO? | |
Re: I'll mark this solved, since I came to work, and logged in ok with the computer there (better connection), at least I know now where to look! | |
Re: Then by that definition, I'm definately scrooge-like. I'm even worse at new year, with all the insincerity that brings! | |
Re: looks like you are trying to query an array, not a database table, change '$images[3]' for the actual table name and try it. | |
Re: Use css, if(strlen($_POST['f_input'])<2)) { echo"<input type='text' class='abc' value='<?php $_POST['f_input'] ?>'>"; }elseif(strlen($_POST['f_input']>2)){ echo"<input type='text' class='def' value='<?php $_POST['f_input'] ?>'>"; } so your css would be like .abc{ border-color:red; } .def{ border-color:black; } | |
Re: Ln 29, take the double quotes off so:- if ($row['tahap']==1) Ln 31 single quotes only. | |
Re: It's the query on line 7, set variables first: $name=$_POST['name']; $name= mysql_real_escape_string($name); $pass= $_POST['password']; etc, and then the query: mysql_query("SELECT * FROM admin WHERE name='$name' AND password='$pass'"); and do the same for the next query, re-using the same vars. And you really should be hashing the password for security at … | |
Ok, so this is driving me nuts, because I can't see why it's happening. Simple code: <html> <head> <meta name='author' content='TonyG' /> <meta name='description' content='' /> <meta name='keywords' content='' /> <title></title> <link rel='stylesheet' type='text/css' href='css/style.css' media='all'/> <link rel='shortcut icon' href='favicon.ico'> </head> <body><div class='container'> <div class='header'></div> <div class='content'> <div class='navi'> <ul … | |
Re: Good Day, young apprentice! Hi, I'm php and mysql/sqlite meself, but welcome! | |
Re: RE 'php mysql query wont work properly', you're still trying to SELECT from an array rather than a database table aren't you? I don't see anywhere prior to the query where "$images[$q]" is defined ![]() | |
Re: Something strikes me as strange about your question, not to seem rude, but if the whole thing is being printed, then you are not using a browser and php interpreter. If that were the case the php would not be printed, check those things before driving yourself crazy trying to … | |
Re: You are in the wrong section, you want Internet marketing > Search Engine Optimization. there you may find what you are looking for. | |
Re: I'm not an expert by any measure, but it does seem to me that you've made your code overly complicated, simpler code makes simpler debugging, IMHO. | |
I've just been given an ex-office IBM thinkcentre A50p 8422 tower,Pentium 4 3.2 gig, no drive or memory. The problem... When I transposed my current sata drive and memory into it (windoze 7 ultimate) and powered up, I got the beeps! It seems to be, after several attempts, 3,1,4,3. I've … | |
Re: Relax, take two days from work, write some code, get this damned pc to work *properly!* and good food and beer..... simple! | |
Re: As an 'ancient' I find video tutorials difficult, much better is text you can print, and then refer to as you learn. | |
Re: Shooting in the dark, 'cause networkings not really my thing, but is it an ip address thing? checked network ipv4 props for auto ip assign? just a thought as it's only one machine, it must be that machine that has a problem. | |
Re: I may be missing something here, but souldn't there be a row in STUDENT for classes taken and some sort of relationship between tables? | |
Re: @Reverend Jim, Three bottles of Scotch... no need for the blade! | |
Re: Sorry to be negative, but it sounds to me like you're trying to turn Daniweb into an exclusive 'club', wanting only 'quality' questions. Some of the answers I read are already a bit sharp to say the least, and not everyone has the thought to look for manuals etc; first, … ![]() | |
Have you got one? A list of things you would like to achieve before you die? mine is: 1/ Write a stunning program that 600 people buy, but 60,00 pirate. 2/ Really know and be fluent in another language (Greek in my case). 3/ Visit Tibet. 4/ Win just enough … | |
Can anyone suggest a good sqlite3/php tutorial for beginners? I've been using sqlite, and now wanting to learn sqlite3, am looking for a good tutorial but the only ones I seem to find are either assuming you know version 3 already, or are for command line. | |
Re: @ MikeyIsMe, Rugby Footbal is actually the correct name for this ancient sport, which has it's origins, I belive, before football (or soccer as it's known in the U.S). | |
Re: HTMl is virtual, it is not 'written' on anything per se, you write your code using a text editor, such as notepad, and store it on the hard disc of a server as 'pages' of your website. When the site is requested by a browser, as you have done with … | |
Re: My peeve... having a snippet that simply refuses to work, and spending ages trying to find why, only to discover a stupid typo like a missing quote or something. @Rev, I hate when they get to the checkout, wait for half the store to go through, and then decide to … | |
Re: Try as I might, I cannot get to grips with either facebook, or twitter. I have accounts on both, and find them a complete *waste* of time. In less productive moments at work...... ah yes, Tea and ciggies! And I always have a usb drive with latest project in my … | |
Re: For me, if the whole world's mobile 'phone network(s) were nuked tonight, it would be ten years too late! | |
Re: @happygeek, always the same story...... invent a game, teach the rest of the world to play and love it, and sit back as they all get better at it.............. | |
Re: Nothing in the parts of europe i'm familiar with, England, france, cyprus (now), trouble is in england things are so bad economically that the 'sales' idea is now an all year round thing, instead of twice a year. Maybe the prices are too high to start with? | |
For my project, these two queries don't work. The sqlite manual says to use 'qualified-table-name' but if I do (flist.fdata) an error is returned 'no such table'. As they are below no errors are returned, but the database table is not affected. if (isset ($_POST['del'])) { $id = $_POST['id']; $titl=$_POST['titl']; … | |
Hi all,Anyone know of a decent free sqlite manager. One that will work with sqlite not sqlite3. Ive tried some and not been able to find one that works! | |
Hi, Does anyone know if Bing translator is still available, or has it gone the same way as google, and converted to 'paid'? I'm trying to use jquery translate on a website that I'm building, but despite 3 days of searching I cannot find how to get a Bing Appid … | |
I recently had to change my motherboard and re-install win 7. So far so good, I had all my program install files on a back up hdd except one, and thats where it goes pear shaped. I have rapid php, but only the files of the previously installed copy, I … | |
Hi, I have a mysql database for stock records in the pub I work in. The code below displays the list of items and sizes, what I need is to be able to update several rows by subtracting the number in the qty column from the bal column in the … | |
[B]Hi guys[/B] I'm fairly new to php but learning fast. Here's my problem. I have the code below in a website I made for my local pub, it works fine, but is ther a way to dynamically add another row to the table when the number of records displayed is … |
The End.