8,966 Posted Topics

Member Avatar for official.DJ.cabo

The error implies that the query returned an error. I suggest you do the following, and post the error message and query back here: $result1 = mysql_query($query1) or die(mysql_error() . '<br/>' . $query1);

Member Avatar for pritaeas
0
576
Member Avatar for dinhunzvi

If the text file is publicly available, you could provide a direct download link to the user. Just turn the path into a valid URL.

Member Avatar for dinhunzvi
0
275
Member Avatar for klemme

> Does catch mean, that I can avoid outputting all the ugly err messages, and perhaps log errors in a txt file or whatever else i would prefer? Basically. You can even check the error number and use it to act upon specific errors. There's also a `finally` statement (PHP …

Member Avatar for diafol
0
259
Member Avatar for sanbhu2105

> The $prod_id that you are using in the query has not ben defined anywhere before. Where is the product ID coming from?

Member Avatar for sanbhu2105
0
335
Member Avatar for Deep_Coder
Member Avatar for diafol
0
3K
Member Avatar for pritaeas

## Before You Ask ## - Engage your brain! We understand that running into a problem can turn off the rational centers of the brain, but please sit back and think for a bit about your problem before running off to find help. All too often a little common sense …

0
377
Member Avatar for AycheKay

What you can do is to add a hidden div for each button you have, which you can then show on hover. You could have something like this: <div class="button"> <a href="#">Link</a> <div class="hidden"> <img /> <p /> </div> </div> Then the jQuery would look like this: $('.button').hover( function () …

Member Avatar for pritaeas
0
272
Member Avatar for khair.ullah

Can you provide some sample data? A bit difficult with just seeing the query.

Member Avatar for diafol
0
326
Member Avatar for grouptechindore
Member Avatar for brolly234

> ads never get hide Probably in the Google script. I don't think hiding ads is allowed by the ToS.

Member Avatar for pritaeas
0
300
Member Avatar for PratikM
Member Avatar for SureEM25
Member Avatar for SureEM25
0
165
Member Avatar for furlanut
Member Avatar for jomaribartiana
Member Avatar for Yuexuan

Something like: SELECT *, SUM(`Value`) FROM `table` GROUP BY `UnitID` HAVING SUM(`Value`) >= 1000 Untested, but should get you going.

Member Avatar for Yuexuan
0
443
Member Avatar for Shaun Swales

> code which will guarentee to work This depends on your settings. IIRC sqlsrv uses windows authentication by default, which unix won't have. Have you tried `mssql_connect` instead?

Member Avatar for pritaeas
0
124
Member Avatar for Szabi Zsoldos

You can post to a page with [cUrl](http://www.php.net/manual/en/function.curl-exec.php).

Member Avatar for Szabi Zsoldos
0
391
Member Avatar for sathish_nadu
Member Avatar for pzuurveen
0
145
Member Avatar for Dani
Member Avatar for keerthibhushan
Member Avatar for turpentyne

Instead of all those expand variables, you could use an array and at the end use the `implode` function. Something like this: $where = array (); if ($continent_regions != ""){ $where[] = "plant_locations_link.continent_regions IN ('$continent_regions')"; } if ($country != ""){ $where[] = "plant_locations_link.country IN ('$country')"; } if ($state != ""){ …

Member Avatar for pritaeas
0
173
Member Avatar for barry.venter.7
Member Avatar for pritaeas
0
196
Member Avatar for rushimaadhav
Member Avatar for cngerra
Member Avatar for islam.fci.3
Member Avatar for sobias

`json_decode` has an option to return an object instead of an array which should be enabled by default.

Member Avatar for jkon
0
249
Member Avatar for sabarinadh.ch
Member Avatar for diafol
0
1K
Member Avatar for nitin1

> There is another option, but I couldn't locate it in my profile settings It's the "Receive e-mail from DaniWeb" checkbox.

Member Avatar for Dani
0
200
Member Avatar for Hazuan Nazri

Perhaps the insert is called when there is no posted form data. Check your logic.

Member Avatar for diafol
0
262
Member Avatar for aynamohol

Something like this: select stockin.serialno, sum(in_quantity) SUMIN, group_concat(in_quantity) GCIN, sum(out_quantity) SUMOUT, group_concat(out_quantity) GCOUT from stockin left join stockout on stockin.serialno = stockout.serialno group by stockin.serialno

Member Avatar for pritaeas
0
3K
Member Avatar for diana john
Member Avatar for eonejames
0
222
Member Avatar for genieuk
Member Avatar for pritaeas
0
285
Member Avatar for mbarandao

> By the way, all database connection information in the include is for system use, it is not provided to the user/account holder. If it's for system use only, why not use a single username/password combo for all databases? It's just the database name that needs to be configurable.

Member Avatar for mbarandao
0
428
Member Avatar for kiLLer.zoh_1

`name` is not given a value yet, since you did not pass any parameters to the constructor, nor did you call the parent constructor.

Member Avatar for diafol
0
171
Member Avatar for beatrixtuffy
Member Avatar for Loi-se
Member Avatar for Stuugie
0
127
Member Avatar for Smartflight
Member Avatar for ImZick

When your user logs in, store his information in a session variable. At the top of the registration script, check this session, to see if it contains a valid user (with level 5). If so, output the form, if not, redirect somewhere with an error message.

Member Avatar for ImZick
0
376
Member Avatar for JackticalNuke
Member Avatar for pritaeas
0
220
Member Avatar for t_thakar

`$.post` is a subset of `$.ajax`. As you can read on the [manual page](http://api.jquery.com/jQuery.post/): *This is a shorthand Ajax function, which is equivalent to:* $.ajax({ type: "POST", url: url, data: data, success: success, dataType: dataType });

Member Avatar for t_thakar
0
365
Member Avatar for usamaasghar.asghar

> THere is no way You should be able to run this under a priviliged user account, which is not allowed to shutdown.

Member Avatar for pritaeas
0
188
Member Avatar for santhiya.tsb
Member Avatar for santhiya.tsb
0
114
Member Avatar for hardmath

SO far I have not found anything saying it's doable. Are you sure you want this? If you have Git integration then you have versioning, which I doubt Google Docs provides at that level.

Member Avatar for mike_2000_17
0
382
Member Avatar for kiLLer.zoh_1

`static` functions cannot use `$this`, only `self`. Simple solution, remove `static`.

Member Avatar for kiLLer.zoh_1
0
299
Member Avatar for eburlea

What ZF version are you using. In the 1.X manual there's a `setMessages` method, which should enable you to set them all at once. I searched the 2.X manual, but haven't found it yet.

Member Avatar for eburlea
0
371
Member Avatar for essaydoctor

> This is what I'm interested in doing, but with HTML and/or CSS. I don't think you'll get this working without using Javascript.

Member Avatar for pritaeas
0
146
Member Avatar for rayman.shakuri
Member Avatar for abra_ka_dabra

> So i want to write a downloader of my own. What language are you using? If there is a logic to the download links, you maybe able to recreate the link you need for any date. Contact them, perhaps they will provide it.

Member Avatar for pritaeas
0
199
Member Avatar for Dani

Can't say I'm charmed with it. Personally I think the interface is very distracting. So where does the actual integration come in? Is it just the login?

Member Avatar for BigPaw
4
309
Member Avatar for fitzgibbon

The End.