|
As the exception says you need to instantiate a transaction in your code (which you aren't doing at this moment). That will fix your issue.
|
|
|
|
|
Hi all,
I want to show a video to the clients, the video is on youtube but youtube website is blocked in some countries.What should I do to make those people able to watch the video.Do I have to consider two different links one for youtube and one for another website?
Is there any code that can identify the video would n't be displayed for some certain users and automatically direct the user to another website?
Thanks
|
|
|
|
|
|
Usually this is handled at the client side with proxy servers.
Users throughout the world in countries with restricted internet access use proxy servers to get around the restriction because the data passes through an unblocked intermediate webserver.
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "As far as we know, our computer has never had an undetected error." - Weisert | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Hi,
I would like to ask how can I use a $_SESSION["domain_name"] with window.location so this:
$('#btnBizHome').click(function() { window.location = 'passwordreset'; });
will look like this:
$('#btnBizHome').click(function() { window.location = $_SESSION["domain_name"] + 'passwordreset'; });
How can I do that?
Thanks,
Jassim
Technology News @ www.JassimRahma.com
|
|
|
|
|
Hereafter please post all your PHP questions in PHP forum[^](which is suitable one).
Thank you.
|
|
|
|
|
Your twelfth question in as many days. Don't you think a bit of learning would be of benefit?
Veni, vidi, abiit domum
|
|
|
|
|
Try this out
$('#btnBizHome').click(function() { window.location = <?php echo $_SESSION["domain_name"] ?> + 'passwordreset'; });
|
|
|
|
|
I am trying to have a share feature for the current page in my project but I am getting:
An error occurred. Please try again later.
can any one help please..
here is the page where you can try to share on facebook (using the Select an action) button:
http://www.xoompage.com/profile?id=347692ca-47a8-11e3-bea0-782bcb3e3838[^]
and here is the href for the facebook share:
https://www.facebook.com/dialog/feed?app_id=256274477853888&display=popup&caption=&link=&redirect_uri=
Technology News @ www.JassimRahma.com
|
|
|
|
|
Can You let me know how your share need to be..?
For a basic share it is very easy you can give image title etc in the below code
$imageforfb ="Some image path";
$titlefor_fb="Some title for the page";
encodeURIComponent(location.href) = will automatically get the url of ur page
<a href="#" class="facebook social-provider-icon"
onclick="
window.open(
'http://www.facebook.com/sharer/sharer.php?s=100&p[url]=' + encodeURIComponent(location.href) + '&p[images][0]=<?php echo $imageforfb; ?>&p[title]=<?php echo $titlefor_fb; ?>',
'facebook-share-dialog',
'width=626,height=436');
return false;">
</a>
Just use this
|
|
|
|
|
Have a look at this link.
|
|
|
|
|
If you see this link now:
http://www.xoompage.com/profile?id=347692ca-47a8-11e3-bea0-782bcb3e3838[^]
the dropdown button is working fine but when I click on or MouseOver it and when the list appears it will move some elements on the page (e.g. profile photo).
I contacted the developers who said it's because the dropdown is inside a td and I should take it our of the td
Is there any solution? taking it out of the td is a major change.
I want the list to appear over the content without having to move other elements.
Please help..
Thanks
Jassim
Technology News @ www.JassimRahma.com
|
|
|
|
|
HELLO
I am new to PHP and web based environment (noob), previously i was facing a problem with my code which is i cannot update the mysql table row when checkbox is checked... the idea is when checkbox is checked, then the value is +1. This is somehow likely to update the row on the table..
here is the code: (sorry if the code are messy because i also find the code in internet and edit it)
PHP code:
<html><body>
= mysql_connect(= array(= $_POST[= array();
= 1;= 0;= "UPDATE admin SET candidate1=candidate1 +1 WHERE candidate = candidate1.
mysql_query($sql,$con) or die('<br/>Error reading database: '.mysql_error($con));
header("
</body></html>
AND HERE IS THE INDEX:
VotePage.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>VOTING PAGE</title>
<script language="JavaScript" type="text/javascript">
function checkTheBox() {
var flag = 0;
for (var i = 0; i< 4; i++) {
if(document.form1["candidate[]"][i].checked){
flag ++;
}
}
if (flag != 5) {
alert ("PLEASE SELECT 5 CANDIDATE ONLY");
return false;
}
return true;
}
</script>
</head>
<body>
<center>
<div class="checkbox" data-toggle="false" data-min="2">
<table width="800" height="600" bgcolor="#28b6ee" border="0" align="center">
<h1>LIST OF CANDIDATE</h1>
<form name="form1" method="Post" action="CheckCandidate.php">
<tr width="800" height="600" >
<td width="160" height="50">
<img src="Voter.jpg" alt="Vote 1" align="top">
<input type="checkbox" name="candidate[]" value="1" />
</td>
<td width="160" height="50">
<img src="Voter.jpg" alt="Vote 2">
<input type="checkbox" name="candidate[]" value="1" />
</td>
<td width="160" height="50">
<img src="Voter.jpg" alt="Vote 3">
<input type="checkbox" name="candidate[]" value="1" />
</td>
<td width="160" height="50">
<img src="Voter.jpg" alt="Vote 4">
<input type="checkbox" name="candidate[]" value="1" />
</td>
<td width="160" height="50">
<img src="Voter.jpg" alt="Vote 5">
<input type="checkbox" name="candidate[]" value="1" />
</td></tr>
<tr>
<td width="160" height="50">
<img src="Voter.jpg" alt="Vote 6">
<input type="checkbox" name="candidate[]" value="1" />
</td>
<td width="160" height="50">
<img src="Voter.jpg" alt="Vote 7">
<input type="checkbox" name="candidate[]" value="1" />
</td>
<td width="160" height="50">
<img src="Voter.jpg" alt="Vote 8">
<input type="checkbox" name="candidate[]" value="1" />
</td>
<td width="160" height="50">
<img src="Voter.jpg" alt="Vote 9">
<input type="checkbox" name="candidate[]" value="1" />
</td>
<td width="160" height="50">
<img src="Voter.jpg" alt="Vote 10">
<input type="checkbox" name="candidate[]" value="1" />
</td>
</tr>
</table>
</div>
<div>
<table align="center">
<tr >
<td align="center" width="800" height="50">
<input type="Submit" name="Submit" value="Submit" onclick="checkTheBox();" />
</td>
</tr>
</table>
</div>
</table>
</div>
</form>
</center>
</body>
</html>
I'll BE GLAD IF THERE IS SOME ONE CAN SPEND SOMETIME TO LOOK AT THIS PROBLEM..THANK YOU
modified 20-Nov-13 0:45am.
|
|
|
|
|
There are a lot of mistakes, some trivial, some logical, some syntatic, and there are others just did not make sense. Just to mention a few:
for the html part:
1. The values of checkboxes are all 1, in that way, we would not be able to know which ones are being voted.
2. The checkTheBox function only check up to 5 selections but there are 10 checkboxes and yet the subsequent code that followed is suggesting that one can only vote exactly 5 candidates. I am confused.
3. ...
for the php part:
1. The $values is never used after the foreach.
2. The sql statement does not make sense.
3. The header is incomplete and in the wrong place.
4. ...
May I take a look at the database table admin, what are the fields and their data types?
I will try to suggest sometime if it is not too time consuming.
modified 20-Nov-13 12:29pm.
|
|
|
|
|
Did you try with the checkbox value="true" ?? i think it should be working if this is the only problem of your code...
|
|
|
|
|
|
|
Try asking in the support forum[^] for that project.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
i typed
firefox -P in run but it open firefox home page
|
|
|
|
|
You might have better luck on the Mozilla support site[^]. However, a quick search turns up this article[^], which suggests that Firefox is still running in the background.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
thanks that's helped me firefox was working in the background
|
|
|
|
|
|
i'm really worried that if i enable GZIP Compression many consideration 1-
Older browsers
2-
CPU-load also i wanna i ask should compress minified css and js ????
|
|
|
|
|
|
i searched google before i ask that question i need developers whom already work with gzip advice me
|
|
|
|