Check the first comment here http://www.php.net/manual/en/function.domxml-open-mem.php
It shows how to capture the error in PHP.
The tags should be encoded if you want them in the text with < >
Check the first comment here http://www.php.net/manual/en/function.domxml-open-mem.php
It shows how to capture the error in PHP.
The tags should be encoded if you want them in the text with < >
xmllint does a great job if you're using linux
Otherwise save the text as something.xml and open it with the browser.
In the example you have some tags that are never closed: Company ConfNr Phone
There are only two variables in your RegExp:
^([^/]+)/([^/]+)$
Use this to get three segments:
^([^/]+)/([^/]+)/([^/]+)$
Yes it is possible to use external JS on blogspot. You can add it in JS Widget or in the template code.
If you want to store the result into empty table:
INSERT INTO Users
SELECT userid, count(*)
FROM ratings
GROUP BY userid
Try this one:
SELECT Score FROM scores ORDER BY row_id DESC LIMIT 1;
Use this code:
$a = array_map(create_function('$x', 'return sprintf("%02s", $x);'), range(1,31));
Controller is CI_Controller in CodeIgniter 2.
http://codeigniter.com/user_guide/installation/upgrade_200.html
Glad I could help
The error is in the db.php class:
<?php
//my database class
class Db {
// make sure we dont connnect database to every function
public $mysql;
function __construct(){
$this->mysql = new mysqli('localhost','root','password','db') or die ("problem");
}
?>
Got it :)
__contrcuct() should be __construct()
No you have the extension. Did you try to login to the mysql server ?
Check my last comment.
Check if you have the mysqli module installed (with phpinfo()) also check if you can actually connect to mysql with the given user/pass/database.
Yup:
The mysqli extension allows you to access the functionality provided by MySQL 4.1 and above.
http://www.php.net/manual/en/intro.mysqli.php
I think you can use the mysql extension in php 3.0 :
Either use new form for each row, or change the field names for each row.
Test with this code:
<?php
//my database class
class Db {
// make sure we dont connnect database to every function
public $mysql;
function __contruct(){
$this->mysql = new mysqli('localhost','root','password','db');
if (mysqli_connect_error()) {
die('Connect Error (' . mysqli_connect_errno() . ') '
. mysqli_connect_error());
}
}
}
$db = new DB();
var_dump($db->mysql);
?>
Does this file exist?
/mounted-storage/home36c/sub003/sc29343-BHKZ/progekt.com.utpal/helora/login/logIn.php
Note the filename case logIn.php
Note that you can still type 033+2323 in the field:
<script type="text/javascript">
function zz(txt){
var txt1 = txt.value.replace(/[^0-9\+]/g, "");
document.getElementById('aa').value = txt1;
}
</script>
<input name="phone" type="text" id="aa" onblur="zz(this)" />
Can't see what's the point of using arrays here:
$action = $_POST['action'];
if ($action == 'Submit') {
if(strpos($item_value."*".$amount_value, $targetstring) !== FALSE) {
print "<td><input type=text name=$item_name value=$item_value></td>";
print "<td><input type=text name=$amount_name value=$amount_value></td>";
} else {
print "<td><input type=text name=$item_name value=$item_value style=\"background-color: Yellow;\"></td>\n";
print "<td><input type=text name=$amount_name value=$amount_value style=\"background-color: Yellow;\"></td>\n";
}
}
Try to set the width of the table. Something like:
.Divscroll table{width:200%}
Just use:
if ($pubinfo_username == $_SESSION['username'])
I don't see why binary compare is required in this case.
$_SESSION['level'] = 'whatever';
$_SESSION['email'] = 'whatever';
Just noticed the typo INSERTO should be INSERT.
Try to execute the query manually in mysql. It may be unique field index, wrong field name that's preventing inserting new value.
Looks to me like JS or file path problem. CodeIgniter uses the real directories/files if they exist otherwise it's up to the router.
Notice the CSS it changes the class rather than the id;
<style>
.cont1 {background-color:red;}
.cont2 {background-color:green;}
</style>
I see now. Ok this is my first example modified to change the background:
<head>
<style>
.cont1 {background-color:red;}
.cont2 {background-color:green;}
</style>
</head>
<body>
<script type="text/javascript">
var tooltip=function(){
var id = 'tt';
var top = 3;
var left = 3;
var maxw = 300;
var speed = 10;
var timer = 40;
var endalpha = 95;
var alpha = 0;
var tt,t,c,b,h, no;
var ie = document.all ? true : false;
return{
show:function(v,w,no){
if(tt == null){
tt = document.createElement('div');
tt.setAttribute('id',id);
t = document.createElement('div');
t.setAttribute('id',id + 'top');
c = document.createElement('div');
c.setAttribute('id',id);
b = document.createElement('div');
b.setAttribute('id',id + 'bot');
tt.appendChild(t);
tt.appendChild(c);
tt.appendChild(b);
document.body.appendChild(tt);
tt.style.opacity = 0;
tt.style.filter = 'alpha(opacity=0)';
document.onmousemove = this.pos;
}
tt.setAttribute('class', no);
tt.style.display = 'block';
c.innerHTML = v;
tt.style.width = w ? w + 'px' : 'auto';
if(!w && ie){
t.style.display = 'none';
b.style.display = 'none';
tt.style.width = tt.offsetWidth;
t.style.display = 'block';
b.style.display = 'block';
}
if(tt.offsetWidth > maxw){tt.style.width = maxw + 'px'}
h = parseInt(tt.offsetHeight) + top;
clearInterval(tt.timer);
tt.timer = setInterval(function(){tooltip.fade(1)},timer);
},
pos:function(e){
var u = ie ? event.clientY + document.documentElement.scrollTop : e.pageY;
var l = ie ? event.clientX + document.documentElement.scrollLeft : e.pageX;
tt.style.top = (u - h) + 'px';
tt.style.left = (l + left) + 'px';
},
fade:function(d){
var a = alpha;
if((a != endalpha && d == 1) || (a != 0 && d == -1)){
var i = speed;
if(endalpha - a < speed && d == 1){
i = endalpha - a;
}else if(alpha < speed && d == -1){
i = a;
}
alpha …
Change c.setAttribute('id',id + no); TO c.setAttribute('id',id + no + 'text');
Here is the portion of the code:
tt = document.createElement('div');
tt.setAttribute('id',id + no);
t = document.createElement('div');
t.setAttribute('id',id + 'top');
c = document.createElement('div');
c.setAttribute('id',id + no);
b = document.createElement('div');
This tt.setAttribute('id',id + no); and this c.setAttribute('id',id + no); set the ID for the divs.
I suggest you change: c.setAttribute('id',id + no); to c.setAttribute('id',id + no + 'text');
ttcont2 is repeated twice, That's why the background is doubled:
<div id="ttcont2" style="opacity: 0.95; display: block; width: 89px; top: 491px; left: 84px;">
<div id="tttop"></div>
<div id="ttcont2">Daily Gopher</div>
<div id="ttbot"></div></div>
It shows 500 Internal Server Erorr now but from what I saw, You're not passing the third paramether to the show method, which should set the id name, as in here:
tooltip.show('About Us', 89, 'cont1')
Can you provide URL?
Try with the following example:
<?php
session_start();
if ($_GET['get']){
echo "resp:".$_SESSION['v'];
die();
}
$_SESSION['v'] = 'SECRET CODE';
?>
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
</head>
<body>
<a href="#" onclick="get();">click</a><br />
<script type="text/javascript">
function get(){
$.get('?get=1', function(data) {
alert(data);
});
}
</script>
</body>
I'm not sure if I understood you correctly, but you can try this example:
<head>
<style>
#ttcont {
display:block;
background: url(imgs/bars/3.png) top right no-repeat;
}
#ttcont2 {
display:block;
background: url(imgs/bars/2.png) top right no-repeat;
}
#ttcont3 {
display:block;
background: url(imgs/bars/1.png) top right no-repeat;
}
</style>
</head>
<body>
<script type="text/javascript">
var tooltip=function(){
var id = 'tt';
var top = 3;
var left = 3;
var maxw = 300;
var speed = 10;
var timer = 40;
var endalpha = 95;
var alpha = 0;
var tt,t,c,b,h, no;
var ie = document.all ? true : false;
return{
show:function(v,w,no){
if(tt == null){
tt = document.createElement('div');
tt.setAttribute('id',id + no);
t = document.createElement('div');
t.setAttribute('id',id + 'top');
c = document.createElement('div');
c.setAttribute('id',id + no);
b = document.createElement('div');
b.setAttribute('id',id + 'bot');
tt.appendChild(t);
tt.appendChild(c);
tt.appendChild(b);
document.body.appendChild(tt);
tt.style.opacity = 0;
tt.style.filter = 'alpha(opacity=0)';
document.onmousemove = this.pos;
}
tt.style.display = 'block';
c.innerHTML = v;
tt.style.width = w ? w + 'px' : 'auto';
if(!w && ie){
t.style.display = 'none';
b.style.display = 'none';
tt.style.width = tt.offsetWidth;
t.style.display = 'block';
b.style.display = 'block';
}
if(tt.offsetWidth > maxw){tt.style.width = maxw + 'px'}
h = parseInt(tt.offsetHeight) + top;
clearInterval(tt.timer);
tt.timer = setInterval(function(){tooltip.fade(1)},timer);
},
pos:function(e){
var u = ie ? event.clientY + document.documentElement.scrollTop : e.pageY;
var l = ie ? event.clientX + document.documentElement.scrollLeft : e.pageX;
tt.style.top = (u - h) + 'px';
tt.style.left = (l + left) + 'px';
},
fade:function(d){
var a = alpha;
if((a != endalpha && d == 1) || (a != 0 && d == -1)){
var i = speed;
if(endalpha - …
You can try google chart api: http://code.google.com/apis/chart/interactive/docs/gallery/orgchart.html
Generate PDF with PHP then print it
Only HTML, no. You'll need some server language to connect to the excel table using ODBC for example and pull the data from there.
Or you can use wildcard sub-domain and process the name in php
Yes it can be done. But still it's not a good idea. Better create some API for managing client orders. It will give you better flexibility and maintainability.
Hacker News clone or stackoverflow clone. Both are quite challenging and useful.
Generally it depends on your choice of database.
One possible solution is to give them INSERT only rights to the orders table and filter the SELECT with a view to show them only their orders. This should work if they don't need to update the orders.
Other solution is to have dedicated table for the clients order, but this will make your job more difficult.
The first way is the correct one. The second select is not filled because onclick is never called. To fill it you should check with javascript if an element is selected from the first select box and fill the second one.
After looking in the documentation, looks like the syntax for form:dropdown is:
form::select($name, $values_array, $selected_id, $properties_array);
<?=form::dropdown('category_id', $categories, $members['category_id'], array('class' => 'input-select', 'onclick' => 'yourFuncion()'))?>
You can include it in the array:
<?=form::dropdown(array('name' => 'category_id', 'class' => 'input-select', 'onclick' => 'yourFuncion()'), $categories, $members['category_id'])?>
You can include it in the array:
<?=form::dropdown(array('name' => 'category_id', 'class' => 'input-select', 'onclick' => 'yourFuncion()'), $categories, $members['category_id'])?>
Something like that ?
<form method="get" action="http://google.com">
<input type="submit" value="Go" />
</form>