194 Posted Topics

Member Avatar for milkman93
Member Avatar for davy_yg

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 …

Member Avatar for TonyG_cyprus
0
119
Member Avatar for Tinnin

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 …

Member Avatar for TonyG_cyprus
0
223
Member Avatar for gogs85

Google 'Free clasifieds software' you'll come up with a few. One called simply 'Classifieds' if I recall, reasonably simple to install.

Member Avatar for TonyG_cyprus
0
62
Member Avatar for Daniel Claff

@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.

Member Avatar for masterjiraya
0
271
Member Avatar for johan72
Member Avatar for beginnerpals

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.

Member Avatar for beginnerpals
0
239
Member Avatar for mogaka

@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.

Member Avatar for ajbest
0
167
Member Avatar for kiLLer.zoh_1

$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.

Member Avatar for Webville312
0
303
Member Avatar for mattsheets

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% ??

Member Avatar for TonyG_cyprus
0
403
Member Avatar for Atlanta15Braves

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!

Member Avatar for EvolutionFallen
0
248
Member Avatar for imorad87

@pixelsoul, I've a sneaking feeling its a database design he's after here. Inputs, calculations etc; too much for my ancient brain.

Member Avatar for TonyG_cyprus
0
156
Member Avatar for TonyG_cyprus

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 …

Member Avatar for TonyG_cyprus
0
159
Member Avatar for navp
Member Avatar for navp
0
313
Member Avatar for sahil.bhatia.18

There are a coluple of free sample databases out there that should give you food for thought, Sakila, Northwind and others.

Member Avatar for drjohn
0
237
Member Avatar for TonyG_cyprus

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 …

Member Avatar for Reverend Jim
0
286
Member Avatar for infoitmanoj

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.

Member Avatar for veedeoo
0
257
Member Avatar for James singizi
Member Avatar for broj1
0
198
Member Avatar for mattsheets

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')"); } ?>

Member Avatar for TonyG_cyprus
0
298
Member Avatar for spluskhan

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 …

Member Avatar for spluskhan
0
208
Member Avatar for while(!success)

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>

Member Avatar for while(!success)
0
270
Member Avatar for GlenRogers

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.

Member Avatar for GlenRogers
0
218
Member Avatar for Atlanta15Braves

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?

Member Avatar for Atlanta15Braves
0
583
Member Avatar for kindo

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?

Member Avatar for TonyG_cyprus
0
164
Member Avatar for TonyG_cyprus

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 …

Member Avatar for TonyG_cyprus
0
360
Member Avatar for happygeek

Just for info, www.filmon.com shows english tv, via internet, worldwide, and freeeee, and England WILL WIN 6N and Grand Slam!

Member Avatar for diafol
1
1K
Member Avatar for Ctechnology24

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.

Member Avatar for suresh.godavarthi.77
0
3K
Member Avatar for saucy6969
Member Avatar for davy_yg

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.

Member Avatar for davy_yg
0
124
Member Avatar for Fiorentino01^
Member Avatar for TonyG_cyprus
0
229
Member Avatar for fheppell

maybe margin: auto auto auto auto; will do it, instead of margin-left: auto; margin-right: auto;

Member Avatar for fheppell
0
208
Member Avatar for Shodow

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 …

Member Avatar for cereal
0
146
Member Avatar for NardCake

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.

Member Avatar for EvolutionFallen
0
274
Member Avatar for TonyG_cyprus

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 …

Member Avatar for TonyG_cyprus
0
221
Member Avatar for Kniggles

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

Member Avatar for Kniggles
0
481
Member Avatar for <M/>

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?

Member Avatar for <M/>
0
597
Member Avatar for cmabill

@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.

Member Avatar for TonyG_cyprus
0
271
Member Avatar for surajdgiri

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

Member Avatar for phoenix_2000
-1
353
Member Avatar for TonyG_cyprus

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'>"; // …

Member Avatar for TonyG_cyprus
0
154
Member Avatar for lewashby

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?

Member Avatar for pixelsoul
0
350
Member Avatar for rsewak

> 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 …

Member Avatar for TonyG_cyprus
0
740
Member Avatar for diether.silverious

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 …

Member Avatar for diether.silverious
0
200
Member Avatar for TonyG_cyprus

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 …

Member Avatar for pixelsoul
0
141
Member Avatar for luke.belleghem

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.

Member Avatar for Webville312
0
1K
Member Avatar for davy_yg

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".

Member Avatar for AARTI SHRIVAS
0
116
Member Avatar for TonyG_cyprus

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.

Member Avatar for TonyG_cyprus
0
123
Member Avatar for Ritesh_4

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, …

Member Avatar for Ritesh_4
0
151
Member Avatar for TonyG_cyprus

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 …

Member Avatar for mike_2000_17
2
112
Member Avatar for lewashby

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.

Member Avatar for TonyG_cyprus
0
150
Member Avatar for davy_yg

Isn't this part of the script from the question you asked before, and marked solved?

Member Avatar for TonyG_cyprus
0
127

The End.