|
What kind of doc you want to print without displaying the print dialog? Do you want to print the current page? a PDF file?
|
|
|
|
|
i am learning php from [http://www.lynda.com/PHP-tutorials/php-with-mysql-essential-training/435-2.html]. When i am at the "Building a Content Management System" part, i am having some trouble.
This is the mysql database:
mysql
this is the php code:
php code
i can't understand line 19,30
|
|
|
|
|
|
In addition to Richard's comment, I'll point out that mysql functions have been deprecated.
You should instead be using the PDO or mysqli extensions. (They sanitize user-input and help protect your databse)
For more info, see here: http://bobby-tables.com/[^]
Make it work. Then do it better - Andrei Straut
|
|
|
|
|
I just constructed a reporting system using PHP and MYSql, it worked fine on my WAMP but since making it live sometimes it throws an error and won't allow anyone to insert data.
I think it's because multiple people are trying to enter data at the same time or it could be just on my end.
Is there a way to handle the traffic? I was looking at "deadlock" and found this:
$retry=0;
$notdone=TRUE;
while( $notdone && $retry<3 ) {
try {
$transaction->begin();
$do_all_the_transaction_stuff();
$transaction->commit();
$notdone=FALSE;
} catch( Exception $e ) {
// here we could differentiate basic SQL errors and deadlock/serializable errors
$transaction->rollback();
$retry++;
}
}
if( 3 == $retry ) {
throw new Exception('Try later, sorry, too much guys other there, or it's not your day.');
}
I tried to implement it but it ended up sending 11,000 copies of the information entered into the form.
How do I use this? I have four fields i'm trying to enter data to.
Thanks for any and all help,
to be honest I don't even know if I'm on the proper track or not...
Rob
|
|
|
|
|
I'm loading some html as a text string, and displaying it in an ASP.Net page.
The html has a link in it, and the link isn't clickable. It is decorated link a link, but the cursor doesn't change to the finger.
What would be causing that?
EDIT ==================
Well, I tried pasting the code into the aspx file, and that didn't help UNTIL I moved it to be before a series of canvas tags. But any link that follows the canvas tags don't work.
EDIT ==================
The problem was that the canvases were too big, thus somehow masking the link tag.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
modified 11-Apr-13 9:45am.
|
|
|
|
|
Please post the offending code.
"It's true that hard work never killed anyone. But I figure, why take the chance." - Ronald Reagan
That's what machines are for.
Got a problem?
Sleep on it.
|
|
|
|
|
See my updated post (2nd edit).
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|
Have you tried enclosing the link(s) within <p></p> tags?
I've seen similar quirks with large tables.
"It's true that hard work never killed anyone. But I figure, why take the chance." - Ronald Reagan
That's what machines are for.
Got a problem?
Sleep on it.
|
|
|
|
|
I have a form with many dropdowns and text boxes and a file upload.
I want to display the file path as soon as it uploaded without refreshing the entire form.
I am able to upload the file but the file path doesnot get displayed in the label.
however after refreshing the entire page i get the file path displayed in the label
Please help me
|
|
|
|
|
Please do not cross post.
Frazzle the name say's it all
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
John F. Woods
|
|
|
|
|
Hi,
Everyone please tell me in which way i can list all content of a doc file or pdf file in a PHP page.
|
|
|
|
|
Hi
I am trying to develop a webpage that will display images that are stored on a server and then allow the user to right click on the image and save it to their local disk.
This should be simple but the images on the server are not stored using the standard .jpg extension even though they are jpeg images, they have .d01 extensions and I have no control of this. In IE7 when you right click on one of these images the "Save Picture As" option does not work, it just says "System can't find specified file", oddly the Email Picture option does work.
Is this something which is peculiar to IE7 and can I get around it in some way. Unfortunately due to restrictions on company PCs I can't update IE or install other browsers.
Regards
Andrew
|
|
|
|
|
When I put my video file which is wmv about 4M on my web server directly and using html embed wmp to display the video, it seems very slow or even not displaying the video.
Any suggestion so my large video file could be played on website without waiting for a very lone time WITHOUT using streaming server?
Is that convert video to flv and played by flash player a good solution?
Many thanks.
modified 4-Apr-13 23:49pm.
|
|
|
|
|
Without streaming, the entire video will need to download before it starts to play.
I don't understand why streaming is not an option here. It is generally built into the web server. You might not want to host a separate server just to host media content, but streaming should be possible. What type of server is the site hosted on?
|
|
|
|
|
Thank you.
I want to have streaming technique on my site but I am using a web hosting which do not provide streaming server, just simple web server only.
Please advise if I still can do streaming using web server?
|
|
|
|
|
Take a look at this article how-do-i-set-up-streaming-video-or-music
"It's true that hard work never killed anyone. But I figure, why take the chance." - Ronald Reagan
That's what machines are for.
Got a problem?
Sleep on it.
|
|
|
|
|
Thank you.
Infact I would like to embed the video on my website.
Is it possible to embed the video using wmp then when user click on play button no waiting time?
|
|
|
|
|
There should only be a small delay when streaming.
The link I gave you explains that the metafile is the only file sent to the client, for it to locate the media you wish to stream over a network.
I have only ever used Audio streaming, and that didn't require streaming services on the web server. Maybe someone else can verify whether video is any different.
"It's true that hard work never killed anyone. But I figure, why take the chance." - Ronald Reagan
That's what machines are for.
Got a problem?
Sleep on it.
|
|
|
|
|
Ok, I will wait for anyone for help.
Really appreciated for answering me, thank you.
|
|
|
|
|
I'm a C/C++/C# developer and I've worked with Java/XML for Android as well. If I want to learn to create web-apps, where's the best place to start?
I know the basics of CSS / HTML. A some-day goal: create an application online that could plot / modify different functions or signals.
Looking to open this up as a general discussion, not start a war.
|
|
|
|
|
You know C# and you say you also know HTML and CSS.
Jump right in and start doing an ASP.Net project with your C# skills to develop a web site. You didn't mention javascript so I would recommend that you pick that up as a definite skill.
as if the facebook, twitter and message boards weren't enough - blogged
|
|
|
|
|
Hello, I recently found on GitHub this framework, any one here knows how to use it?
|
|
|
|
|
Hi everybody!
I have proplem, so please help me.
Now, i have casestudy.
The first, go to http://www.webservicex.net/ws/default.aspx[^] and chose one webservice are public. same http://www.webservicex.net/ws/WSDetails.aspx?WSID=60&CATID=4[^]
and see the text below
WSDL Schema Location
http://www.webservicex.net/sendsmsworld.asmx?WSDL
flow the link, i save wsdl file from Service Description. next i using Axis 2 Generator to generato WSDL file to java code, i have stub, .
The main, i want to using class i ve generator, add to my project and using method, call services. and make application...but my project not run, now i want to know, what type of the project to add codes behinds, and how project run!.
thank!
|
|
|
|
|