8,966 Posted Topics

Member Avatar for sundog1

You can change line 56/57 to: if (!string.IsNullOrEmpty(textBox1.Text)) { Attachment data = new Attachment(textBox1.Text); message.Attachments.Add(data); }

Member Avatar for sundog1
0
199
Member Avatar for hajjo
Member Avatar for hajjo
0
96
Member Avatar for beholdafrica
Member Avatar for xNZxAssAssiNx

It's more likely to be an issue with your code, as the query itself is correct (as you tested).

Member Avatar for pritaeas
0
212
Member Avatar for kx220

> if you enter the right username and wrong password, it'll post wrong password vice versa Are you sure you want to do this? It's a potential vulnerability if an attacker can see which one was entered incorrectly.

Member Avatar for jkon
0
234
Member Avatar for f2key
Member Avatar for mohsin.javaid.73

If you tell us what language you are using, then we will move your question into the right forum.

Member Avatar for mohsin.javaid.73
0
209
Member Avatar for kiail

> I'm seriously having issues Issues with what? Specify what you want and what the problem is.

Member Avatar for Taywin
0
182
Member Avatar for diafol

> I can't see how PDO::exec() can work with params Because it can't ;) prepare/execute/rowCount is the way to go.

Member Avatar for diafol
0
1K
Member Avatar for jacob21

If your MySQL server is on a (shared) webhost, you may not have permissions to change any settings. Contact your host. Timing from a PHP script is inaccurate, because it will include the time of data transfer (very variable).

Member Avatar for pritaeas
1
167
Member Avatar for momonq1990

Just create a valid HTML file, but keep in mind that the images need to be attached, or you need to specify valid publicly accessible URLs.

Member Avatar for momonq1990
0
187
Member Avatar for rpv_sen

> If i am posting one article in my cms, it will also post in my twitter account Which CMS is that? If it is your own, see Twitter API.

Member Avatar for pritaeas
0
293
Member Avatar for owenransen

Can you explain how your program is going to interact with the cloud? It will be easier to make a statement if we know what is happening between them. On Azure you have webroles, worker roles, databases, storage and queues. All is easily accessible through the [SDK](http://www.windowsazure.com/en-us/develop/net/). Next to that …

Member Avatar for owenransen
0
247
Member Avatar for garyjohnson
Member Avatar for garyjohnson
0
136
Member Avatar for <M/>

The ultimate point of this website is to help others. If you are unwilling to share your problem publicly, there is no real reason to help you to a solution.

Member Avatar for <M/>
1
162
Member Avatar for andyy121

Split a string into an array, split at every one or more whitespace. See [the manual](http://php.net/preg_split).

Member Avatar for andyy121
0
158
Member Avatar for cssweb
Member Avatar for Reverend Jim
Member Avatar for kitschkath

The database connection has nothing to do with his problem. These kind of output errors are often caused by hidden unicode characters in the source script. If `mysql_query` would crash due to errors, the script stops and nothing after it would be outputted.

Member Avatar for kitschkath
0
253
Member Avatar for BobbyHz1987

Why not ask for references [here](http://www.daniweb.com/business-exchange/show-off-your-projects/threads/435304/google-maps-tool).

Member Avatar for pritaeas
0
120
Member Avatar for LukeWhitworth

There are security rules in place (in your browser) that would prevent a website to open an application on your computer.

Member Avatar for pritaeas
0
169
Member Avatar for plmexico79

If you provide an id for each input, they will be easier to target in jQuery. So, it's not required, but will make your coding simpler.

Member Avatar for pritaeas
0
346
Member Avatar for samith.dilhara

Is there a reason you want it like that? Not sure if there is an option to render it like that, but you can always put it in a variable and do a (regex) replace.

Member Avatar for Airshow
0
192
Member Avatar for JorgeM

Looks indeed like the initial loading of the images. No longer an issue once the website/images are cached.

Member Avatar for JorgeM
0
379
Member Avatar for sanjeewa.abeywardana
Member Avatar for momonq1990

> i think the code is working You think? Make sure. Then try to explain the problem you are having in more detail. "It's not working" without explanation or code is just too vague.

Member Avatar for momonq1990
0
617
Member Avatar for Shodow
Member Avatar for Riu 2009
Member Avatar for waseem.usman.92
Member Avatar for diafol
0
247
Member Avatar for napninjanx
Member Avatar for joy foo
Member Avatar for mart4494
Member Avatar for jim.baird.7311

Perhaps you uploaded your file in ascii mode, instead of binary. I shouldn't be a problem really.

Member Avatar for pritaeas
0
40
Member Avatar for riahc3

Start over in C#. If you are looking for an easy fix, although there may be code converters, I would not trust them.

Member Avatar for pritaeas
0
66
Member Avatar for thewilf

> Am I correct in how this works? Yes. > send multiple records to the web service Call the web method for every record. Or create a webmethod that allows to input an array of records.

Member Avatar for pritaeas
0
101
Member Avatar for pritaeas

Below is a documented code example showing how to use the [PDO](http://php.net/pdo) classes/objects to connect and query your database (and check for errors). If there are any questions, or you want to see different features, let me know. UPDATE: I've encountered a problem with PDO and bit fields (MySQL). If …

Member Avatar for sammry
2
3K
Member Avatar for LastMitch

Where do the dollar signs come from in this snippet? //show previous slide with caption function prevSlide($slides) { $slides.find('img:last').text(this.alt).prependTo($slides); showSlide($slides); } PHP uses them in front of variables, Javascript doesn't.

Member Avatar for LastMitch
0
457
Member Avatar for xxhaissamxx

`header` doesn't work if you already outputted html (your form), before calling it.

Member Avatar for xxhaissamxx
0
152
Member Avatar for rotten69

There are two options (Javasccript, not really PHP). 1. Simplest: the full text is already in a div, but hidden, and clicking the link will just display that div. 2. Clicking the link does an AJAX call to a server side script to get the full article, and replaces what's …

Member Avatar for JorgeM
0
148
Member Avatar for garyjohnson

It should be included, but it may not be loaded. If you click the wamp icon then you can enable it using the menu.

Member Avatar for LastMitch
0
145
Member Avatar for mmcdonald

Instead of echo'ing, store it in a variable. You can use that in your insert query.

Member Avatar for mmcdonald
0
145
Member Avatar for mokong
Member Avatar for JorgeM
0
141
Member Avatar for sasibuddy
Member Avatar for davy_yg

http://dev.mysql.com/doc/refman/5.1/en/rename-database.html Check your syntax.

Member Avatar for davy_yg
0
225
Member Avatar for saadi06
Member Avatar for pritaeas
0
41
Member Avatar for mo_anees
Member Avatar for divyakrishnan

That will only work if running in (Fast)CGI. See the last entry in [this thread](http://www.daniweb.com/web-development/php/threads/73804/how-to-get-server-address-using-php).

Member Avatar for pritaeas
0
200
Member Avatar for McLaren

Personally, I would not trust the skills of anyone having certifications of these sites. If you really want one, take one from a trusted source like MySQL (or whichever you prefer). You need to invest more (money and time), but you'll be recognized.

Member Avatar for mokong
0
136
Member Avatar for ZER09

This should work: DirectoryIndex index.html index.php Try without the `IfModule` first.

Member Avatar for lps
0
89
Member Avatar for Qyla21

You're not going to get working code. If you show what you have, we can push you in the right direction.

Member Avatar for nuraqilah.ahmadkhairi.7
-1
193

The End.