39,320 Topics
| |
Hello i am trying to connect my mobile service with my database... this is the script public $username = "root"; public $password = ""; public $server = "localhost"; public $databasename = "rove"; public $port = "80"; public $connection; public function __construct () { $this->connection = mysqli_connect($this->server, $this->username, $this->password, $this->databasename); $this->throwExceptionOnError($this->connection); … | |
Is it good to declare a class with many methods ? Or, is it better to use flags ? Which one performs faster ? Example class Filter { public function filterspecialchar($input){;} public function filterurl($input){;} public function filteremail($input){;} } class Filter { CONST SPECIALCHAR = 1; CONST URL = 2; CONST … | |
in this double condition [else if($test1[0] == "Regular Project" && $test1[0] == "FSA Project")] is not working properly. this is the way to do . or in_array i have to use. $sql1 = "SELECT Select_Type,Prj_Id,Status FROM PROJECT_ACTIVE WHERE Memr_Id='$data[0]'"; $test = mysql_query($sql1); $test1 = mysql_fetch_array($test); /*echo "<select name='selecttype'>"; for($i=0;$i<3;$i++) { … | |
<?php session_start(); ?> line 39: <?php echo $_SESSION['banner']; ?> line 40: <?php echo $_SESSION['banner']; ?> Notice: Undefined index: banner in C:\xampp\htdocs\portal\administrator2\admin\dashboard.php on line 39 Notice: Undefined index: banner in C:\xampp\htdocs\portal\administrator2\admin\dashboard.php on line 40 How to fix the error? | |
I am using the Html2pdf(dompdf) library for codeigniter,Its working fine but i cannot get images in pdf files. this is the url where i download the library. https://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&uact=8&ved=0CCgQFjAB&url=https%3A%2F%2Fgithub.com%2Faiwmedia%2FHTML2PDF-CI&ei=wijjVID8GIqWuATqnYBY&usg=AFQjCNFGnkCMd1t5K55fApAyeca4dCE-mQ&sig2=-ix5k0Vhj81f6BkzIY5pPQ&bvm=bv.85970519,d.c2E | |
Hi, by clicking history of book, I show all book details in textbox and student details(only limited columns) in table format(which student took that particular book), Now I want to export in excel file.I am new to this concept. How to do? with examples.... | |
I am new in php and i am facing a problem in mysqli query Parse error: syntax error, unexpected ',' in php can anyone help me if you know? $query=("update company SET","(freeze_reason='.$pid.',freeze_status=1 where cid=:id"),array('id'=>$cid)); return self::query($query,$str,$params); public static function query($query,$param_string="",$param_array=array()){//used in void type query like insert,delete,update $stmt=self::$mysqli->prepare($query); array_unshift($param_array,$param_string); if(count($param_array)>1) call_user_func_array(array($stmt,'bind_param'),$param_array); … | |
How to create a online registration form for admission in college with all designs. Can anyone give me a perfect example for that | |
Hi all, I have been asked to set up a wordpress site, and are finding it hard to find in the documentation how I can do the folllowing: A main link is clicked, and only then I want to show the children underneath, if there is any. Further if a … | |
im working on a theme build and im having troubble getting the sidebars to appear on the same level as the content, as of right now they are displaying below the main content and they need to be even with the top of it.... any help would be greately appreciated. … | |
Hi I have a php file with html forms and variables in php. I generate a policy document that is displayed in the web page and is then created in PDF and emailed to the client. I create the PSF via using EZPDF but This runs slow when creating the … | |
I'm getting the following error when I add the product through Admin panel You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''1,'' )' at line 1 | |
Hello, I call php from js file with parameter date. Date has other format when it run in IE and Mozzila. Whats problem ? IE : Tue Jun 18 19:00:00 UTC 0200 2013 Mozille : Thu Jun 20 2013 18:30:00 GMT 0200 (Central Europe Standard Time) | |
I have a question I have been struggling with for a while, I think I might be taking the wrong approach or not understanding the basics. But I am looking for a solution, so if I have it the "wrong way" please let me know. I am building a login/registration … | |
| |
I need some assistance with creating a dropmenu that pulls a database field and displays the rest of information underneath it so i can print it. I am only having issues with after selecting the info in the field, the information doesn't change. <?php mysql_connect('host', 'user', 'password'); mysql_select_db('databasename'); $sql = … | |
I have one website which was created in Wordpress - and being hosted in Linux server. Now I want to transfer that website with new domain name to windows server. How to do it can anyone help me to redirect it. Or should I use 301 redirect to website | |
Hi All. For some odd reason it feels like this should be an extremely easy principle but yet I cannot seem to do this properly. I know that there might be other ways to accomplish this but for the sake of my current project, i require this. What i need … | |
Hello, I posted a similar issue earlier - I fixed that issue that was throwing error messages and now my data from a form is being dumped to my table, well, most of it. It is not recording the Username or Password fields and I have absolutely no idea why … | |
I have forum v bulletin I need to redirect a visitor to example.php page .. automatically after a short delay,countdown when he clicks the download attachment already upload at my server or external link posted in my forum . Is there any possible way to do that in a .htaccess … | |
When I or user logs on it checks what permissions it has. And then on a form if has not got permission throws error. Example: <?php class Users_groups extends CI_Controller { public function update() { if (($this->input->server('REQUEST_METHOD') == 'POST') && $this->validateForm()) { // Modal stuff } } public function index() … | |
Hi, I'am newer in PHP development.I have a question please,Is there any way to create a web application with AngularJS, HTML5, and CSS3 as front end, and NodeJS as back end ,and PHP5 as a the restful web service? thanks for Help | |
Hello, Am new in angularjs. I want to restrict user from inserting HTML tags in textarea by using ng-pattern in blade.php, i had written `{{ Form::textarea('localAddress', null, ['size' => '35x4',"ng-pattern"=>'(.*?)<.*?>(.*?)','name'=>'local_address','ng-model' => 'employee.employee_personal_details.local_address','required'=>true]) }}}` but < brackets are giving me angular js error `{{ Form::textarea('localAddress', null, ['size' => '35x4',"ng-pattern"=>'<("[^"]*?"|'[^']*?'|[^'">])*>','name'=>'local_address','ng-model' => 'employee.employee_personal_details.local_address','required'=>true]) … | |
How to convert Only lakhs & Crores Like 426000 => 4.26 Lakhs | |
HI All , i have an offer table like offer_id , user_id , no_of_clicks , price...etc i want to fetch records and show to user like "best selling offer" , "value for money". best selling offer means the offer which sell more and displaying those offers to users. but what … | |
Hello: Before I post code I will say that last year I hired a programmer to build one feature for my project. Today upon further inspection of the database/tables I am receiving errors that I have never received and I am at a loss as to their actual meaning. I … | |
Hi i m trying to update records via array and i m getting this error .. Notice: Uninitialized string offset: 1 in C:\wamp\www\routephp\search_results.php on line 142 <?php if(isset($_GET['van'])){ $van=$_GET['van']; $van = preg_replace("/[^0-9]/", '', $van); } ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Route Database</title> <link rel="stylesheet" type="text/css" href="css/style.css"> <script type="text/javascript"> … | |
column count doesn't match value count at row 1 $objhelperClass->insert(PRODUCT,"`catid`,`subcat`,`pname`,`price`,`sort_order`,`description`","'".$_POST['cat']."','".$_POST['subcat']."','".$_POST['pname']."','".$_POST['amount']."','".$_POST['sort']."'"); $m=$objhelperClass->select(PRODUCT,"1","max(`id`)"); $pid=$m['max(`id`)']; if(is_array($patas)) { foreach(array_combine($patas,$thumbs) as $val => $val1) { //echo $val; $objhelperClass->insert(IMAGES," `image`,`thumb`,`pid`,`link` ","'".$val."','".$val1."','".$pid."' "); } } | |
I just downloaded WAMP 64 bit. Successfully installed. Everything went fine. Problem is, I don't know where to go. Where do I put my codes? Online resources I have read says just create a directory in the root folder or something. Does that mean create a folder in the "www" … |
The End.