194 Posted Topics
| |
Re: change *only* the required vars as per the list. for the extensions, scroll down the php.ini file until you find the list, enable by removing the semicolon (;) in front, if not already enabled. The config.inc.php file referred to is in the vTiger source dir, browse to the place yu … | |
Re: My trade is engineering. When I was an employer, I had several job applicants with quite impressive CV's but unfortunately (for them) zero experience.The only qualification worth having, IMHO, is from the U of L (University of Life) and they're not on paper, and cannot be bought. Work hard, study … | |
Re: Google 'Free clasifieds software' you'll come up with a few. One called simply 'Classifieds' if I recall, reasonably simple to install. | |
Re: @Pdprince, please don't hijack someone elses thread, start your own, also post some code that you have been working on so we can help. | |
Re: And anyway, your link just comes back to this page. | |
Re: Im only a beginner myself, but until someone better qualified answers, I can see spaces where I don't think they should be '" .$_POST['field1'][$i]. "', I think should be '".$_POST['field1'][$i]."', ect, and this VALUES " . implode(", ", $insertArr); I think should be VALUES(". implode(", ", $insertArr)); Hope it helps. | |
Re: @mogaka, sorry but we don't just write code for you, we help you to write your own, with help and direction, and a link to relevent manuals where needed. | |
Re: $path = "d:/xampp/htdocs/upload/images/" .$_FILES['photo']['name']; you have an extra space there, before the .$files $path = "d:/xampp/htdocs/upload/images/".$_FILES['photo']['name']; might do it. Mysql's funny about things like that. | |
Re: So lets get this right and clarify, are you saying for instance if the total No of employees is 100, and the total No of surveys is 50, you want an answer of 50% ?? | |
Re: My My, thats complex. I do all of that with 3 lines, having previously created the db. <?php include('php/config.php'); include('php/connect.php'); mysql_query("UPDATE admin SET hits=hits+1"); ?> Works for me! | |
Re: @pixelsoul, I've a sneaking feeling its a database design he's after here. Inputs, calculations etc; too much for my ancient brain. | |
I'm trying to get to grips with this create view thingy, but can't see it. This creats my view mysql_query("CREATE VIEW list AS SELECT AlbumId,Title FROM album, LEFT JOIN artist ON album.artistId = artist.ArtistId ORDER BY album.Title")or die ("no dice pal ".mysql_error()); that works, and creats it fine. But when … | |
Re: Well, you haven't closed the style tag for a start, so thats a start. | |
Re: There are a coluple of free sample databases out there that should give you food for thought, Sakila, Northwind and others. | |
Whilst thinking up a new hobby project, I got to thinking back to the family's first computer, and the games we played on it. Younger members will likely get lost here, but here goes. Our first was a secondhand Vic20, and this would be about 30 years since, with a … | |
Re: No need for all the '$_POST's' in the update when you've set the variables just above, doubling up on work, use title='$title',firstname='$firstname' etcetera. | |
![]() | Re: Post all your code relating to this using the 'code' link, then we can help. |
Re: Something along these lines covers it (much shortened code, of course) <?php $query=("SELECT * FROM db") while($row=mysql_fetch_array($query)){ $group=$row['groupname']; } echo" <form action='' method='post'> Group<input type='text' name='group' value='".$group."'> <input type='submit' name='send' value='Send'> </form>"; if(isset($_POST['send'])){ $group=$_POST['group']; mysql_query("INSERT INTO db(group) VALUES('$group')"); } ?> | |
Re: Think about the way you want it to perform *before* you write any code. The customer selects a product and is presented with a form to select grade. Grade is selected and a table is presented with price and ordering info. Separate the queries. 1st, form with search and search … | |
Re: Give the table a class and style it accordingly. <style> .tables{ border:#0920D6; border-collapse:collapse; text-align:left; } </style> <table class='tables'> <tr> <td></td> </tr> </table> | |
Re: As far as I can see from the latest version of phpmyadmin, the operations panel, mentioned in the post referred to, only alters the start no. of the AI. You could do something like $id=mysql_insert_id $newid=$id+2 query=insert newid,etc if you follow. | |
Re: I'm not expert, but you're opening the db with mysqli and your queries are mysql, There's a starting point for debug. Is this both files combined? you said you had 2 Are you getting any errors? | |
Re: Sorry to appear rude, but you are, of course, having a laugh if you expect anone to wade through all that. Is there a question here, or are you trying to hack google? | |
I noticed recently a few posts turning up on otherwise solved or old (more than 6 months) threads. Is it not possible to prevent anyone from adding to threads more than a certain length of time old, or solved? I do sometimes look at solved or old threads to glean … | |
Re: Just for info, www.filmon.com shows english tv, via internet, worldwide, and freeeee, and England WILL WIN 6N and Grand Slam! ![]() | |
Re: You have posted in a 1 year old *solved* discussion, and are unlikley to get replies. I quickly scanned your code and didn't see any glaring errors, but I'm assuming your '$link' connects with 'dbconfig.php'. Check that first. | |
Re: Works fine for me in chrome, all zoom levels. | |
Re: Because both links are within the languages div. <html> <head> <title></title> </head> <body> <div id="languages"><a href="../index.php" style="text-decoration:none">ID</a> | <a href="index.php">EN</a></div> </body> </html> works. | |
Re: Can you post the code? We can then see any maybe problems. | |
Re: maybe margin: auto auto auto auto; will do it, instead of margin-left: auto; margin-right: auto; | |
Re: Change the semi-colon in between for a comma, make sure the column names in the first query are *exactly* the same as in mysql i.e same case throughout, mysql gets funny about that, otherwise, just make the update a separate query. I'm also assuming that you have a connect earlier … | |
Re: I always use an optimiser for web pictures. Reduces the file size without reducing the actual size or loosing quality. Free Web Resizer my fave. <edit> Sorry, misleading you... that prog's for resizing not optimising. I use paint shop pro 9 for optimising. | |
I have to resurrect the article that I marked solved this am, 'cause it ain't! My code is: <?php if(isset($_POST['chest'])){ $pin=$_COOKIE['registered']; $game=$_POST['item']; foreach($game as $rep){ $link=sqlite_open('data/'.$pin.'.sqlite ',0666,$sqliteerror); sqlite_query($link,"INSERT INTO holding (item) VALUES('$rep')"); sqlite_query($link,"UPDATE players SET points = points+10"); header('location:entrance.php'); } } include('php/head.php'); ?> <div class="game"> <p><u>Chest</u></p> <p> The chest has … | |
Re: My ten cents... there seem to be a lot of element values without quotes, with or without, but keep it constant, makes easier reading/debugging | |
Re: Apropo of nothing, but just as an adendum to this thread, if you check my ip address it will be Nicosia, Cyprus, when I am in fact in Limassol, 75km further south. I don't think they are generally that accurate, are they? | |
Re: @akhtarswapan, Google 'basic html tutorial' and 'basic css tutorial' All the info you need to get stsrted is there. Just don't try to run before you can walk. | |
Re: It's a missing closing brace or semi-colon somewhere I reckon, if you go through and check witha good editor you should be able to find it. Just quickly skimming, I notice 2 errors: line 280 **what?** = $PAGE_CODE and line 293 **what?** = $PATH | |
Hi guys, I've hit a wall again with this code and I'm sureit's something simple I'm doing wrong, I just can't see it. <?php include('php/head.php'); // form action $asset=$_POST['asset']; $item=$_POST['item']; $link=sqlite_open('data/3002.sqlite ',0666,$sqliteerror); sqlite_query($link,"INSERT INTO holding(item) VALUES('$item')"); sqlite_query($link,"DELETE FROM '$asset' WHERE item= '$item'"); // open page display div echo"<div class='image_pane'>"; // … | |
Re: Just to throw in my dime's worth, I noticed you have an extra <form> opening tag on line 8 of the above code, that will negate the line 7 tag with the correct action and method in, won't it? | |
Re: > When is sitting behind a computer all day good for you? Don't let "being good for you" get in the way of having a bit of fun. Well said that man! In my lifetime I've heard it said by some expert or the other, at various times, that nearly … | |
Re: Try: <table border="1" width="400" align="center" class="table"> <tr> <th>Product ID</th><th>Items</th><th>Price</th><th>Added</th><th>Action</th> </tr> <tr> <td><?php echo $id ?></td><td><?php echo $product_name; ?></td><td><?php echo $price;?></td> <td><?php echo $date_added; ?></td> <td><?php echo "<a href='inventory_edit.php?pid=$id'>edit</a> •" ?><?php echo "<a href='inventory_list.php?deleteid=$id'>delete</a>"; ?></td> </tr> </table> should be near the mark also use .table{ border-collapse:collapse; border:#0920D6; } in your css … | |
Hi guys' I'm having trouble with this code <?php $link=sqlite_open('data/3001.sqlite ',0666,$sqliteerror); $comp=sqlite_query($link,"SELECT * FROM assets WHERE asset='chest'"); while($ent=sqlite_fetch_array($comp)){ $item=$ent['content']; $asset= "array(".$item.")"; echo $asset; } $saved=array('food','knife'); $left=array_diff($asset,$saved); echo $left; ?> the echo $asset line displays "array(array(food,knife,scarf,torch,key)" but I get an error Warning: array_diff() [function.array-diff]: Argument #1 is not an array in … | |
Re: My way would be to put the placeholder as default, and change it only by uploading a logo, instead of the other way round, which is what you seem to be doing. | |
Re: Look at your form again. Your action is "contact2.php" so, when the submit image is clicked, the validation code at the top of the page is ignored and the content of the form is sent to the target of the "action". | |
Might be my connection / browser, but the navbar at the top of the page with categories has today gone two lines! Community Centre is under Hardware and Software pushing 'where we are' to the right, there seems to be a blank rectangle next to Business Exchange now. | |
Re: Here's some css .top{ background-image: url(images/top.png); background-position: center; background-repeat: no-repeat; height: 80px; } .mid{ background-image: url(images/mid.png); background-position: center; background-repeat: repeat-y; } .bottom{ background-image: url(images/bottom.png); background-position: center; background-repeat: no-repeat; height: 80px; } crop your image into 3 using a graphics package, name them file them and bob's your uncle! Oh yes, … | |
Don't you find it frustrating when someone starts a thread and requests help with code that they obviously haven't checked? "I've created this code" really gets up my nose when the comment lines( such as '// enter your words here') show that it's just been copied from somewhere. Download a … | |
Re: I saw a jquery script to do just that a while ago, can't remember what it's called though, sure to find it on google. Update: just found META name='viewport'. It's actually for mobile device scaling but it should work. Google it and there are lots of explanations. | |
Re: Isn't this part of the script from the question you asked before, and marked solved? |
The End.