aquilax 7 Junior Poster in Training

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 < >

aquilax 7 Junior Poster in Training

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

aquilax 7 Junior Poster in Training

There are only two variables in your RegExp:

^([^/]+)/([^/]+)$

Use this to get three segments:

^([^/]+)/([^/]+)/([^/]+)$
aquilax 7 Junior Poster in Training

Yes it is possible to use external JS on blogspot. You can add it in JS Widget or in the template code.

aquilax 7 Junior Poster in Training

If you want to store the result into empty table:

INSERT INTO Users 
SELECT userid, count(*) 
FROM ratings 
GROUP BY userid
aquilax 7 Junior Poster in Training
aquilax 7 Junior Poster in Training

Try this one:

SELECT Score FROM scores ORDER BY row_id DESC LIMIT 1;
aquilax 7 Junior Poster in Training

Use this code:

$a = array_map(create_function('$x', 'return sprintf("%02s", $x);'), range(1,31));
aquilax 7 Junior Poster in Training

Controller is CI_Controller in CodeIgniter 2.

http://codeigniter.com/user_guide/installation/upgrade_200.html

aquilax 7 Junior Poster in Training

Glad I could help

aquilax 7 Junior Poster in Training

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");
    }
?>
aquilax 7 Junior Poster in Training

Got it :)

__contrcuct() should be __construct()

aquilax 7 Junior Poster in Training

No you have the extension. Did you try to login to the mysql server ?

aquilax 7 Junior Poster in Training

Check my last comment.

aquilax 7 Junior Poster in Training

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.

aquilax 7 Junior Poster in Training

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 :

http://www.php.net/manual/en/book.mysql.php

aquilax 7 Junior Poster in Training

Either use new form for each row, or change the field names for each row.

aquilax 7 Junior Poster in Training

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);
?>
aquilax 7 Junior Poster in Training

Does this file exist?

/mounted-storage/home36c/sub003/sc29343-BHKZ/progekt.com.utpal/helora/login/logIn.php

Note the filename case logIn.php

aquilax 7 Junior Poster in Training

Set the correct mysql encoding: Connection Character Sets and Collations

aquilax 7 Junior Poster in Training

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)" />
aquilax 7 Junior Poster in Training

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";
  }
}
aquilax 7 Junior Poster in Training

Try to set the width of the table. Something like:

.Divscroll table{width:200%}
aquilax 7 Junior Poster in Training

Just use:

if ($pubinfo_username == $_SESSION['username'])

I don't see why binary compare is required in this case.

aquilax 7 Junior Poster in Training
$_SESSION['level'] = 'whatever';
$_SESSION['email'] = 'whatever';
tstory28 commented: This solved my issue of saving multiple values to the session. +2
aquilax 7 Junior Poster in Training

Just noticed the typo INSERTO should be INSERT.

aquilax 7 Junior Poster in Training

Try to execute the query manually in mysql. It may be unique field index, wrong field name that's preventing inserting new value.

aquilax 7 Junior Poster in Training

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.

aquilax 7 Junior Poster in Training

Notice the CSS it changes the class rather than the id;

<style>
 .cont1 {background-color:red;}
 .cont2 {background-color:green;}
</style>
aquilax 7 Junior Poster in Training

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 …
aquilax 7 Junior Poster in Training

Change c.setAttribute('id',id + no); TO c.setAttribute('id',id + no + 'text');

aquilax 7 Junior Poster in Training

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');

aquilax 7 Junior Poster in Training

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>
aquilax 7 Junior Poster in Training

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')
aquilax 7 Junior Poster in Training

Can you provide URL?

aquilax 7 Junior Poster in Training

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>
aquilax 7 Junior Poster in Training

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 - …
aquilax 7 Junior Poster in Training
karthik_ppts commented: useful post +5
aquilax 7 Junior Poster in Training

Generate PDF with PHP then print it

aquilax 7 Junior Poster in Training

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.

aquilax 7 Junior Poster in Training

Or you can use wildcard sub-domain and process the name in php

aquilax 7 Junior Poster in Training

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.

aquilax 7 Junior Poster in Training

Hacker News clone or stackoverflow clone. Both are quite challenging and useful.

aquilax 7 Junior Poster in Training

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.

aquilax 7 Junior Poster in Training

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.

aquilax 7 Junior Poster in Training

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()'))?>
aquilax 7 Junior Poster in Training

You can include it in the array:

<?=form::dropdown(array('name' => 'category_id', 'class' => 'input-select', 'onclick' => 'yourFuncion()'), $categories, $members['category_id'])?>
aquilax 7 Junior Poster in Training

You can include it in the array:

<?=form::dropdown(array('name' => 'category_id', 'class' => 'input-select', 'onclick' => 'yourFuncion()'), $categories, $members['category_id'])?>
aquilax 7 Junior Poster in Training

Something like that ?

<form method="get" action="http://google.com">
<input type="submit" value="Go" />
</form>
aquilax 7 Junior Poster in Training