39,323 Topics

Member Avatar for
Member Avatar for socialmd

This is the report.php view [CODE] if(isset($_POST["addReport"])) { $report = new Report(); $report->employee_id = $_POST["employee_id"]; $report->date = $_POST["date"]; $report->job_id = $_POST["job_id"]; $report->description = $_POST["description"]; $report->attachment = file_get_contents($_FILES['attachment']['tmp_name']); for($i = 0; $i < count($_POST['date_range']); $i++) { $report->request_date[$i] = $_POST["request_date"]; } for($i = 0; $i < count($_POST['date_range']); $i++) { $report->quantity[$i] = $_POST["quantity"]; …

Member Avatar for Ashvin_1
0
5K
Member Avatar for shubham2488

Hello i need help, I am creating a small social networking website in which i want dat a user can upload music files as well with some descriptions ,the description and file path should be stored in database and the mp3 file should be stored in a seprate folder i …

Member Avatar for diafol
0
279
Member Avatar for yungdizzy260

for some strange reason when the audio upload form submits apprently it does not get the audio file input i can not figure this out will some one please shed some light?!!!

Member Avatar for diafol
0
53
Member Avatar for SimonIoa

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

Member Avatar for SimonIoa
0
191
Member Avatar for terryds

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 …

Member Avatar for diafol
0
111
Member Avatar for malatamil

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++) { …

Member Avatar for malatamil
0
6K
Member Avatar for davy_yg

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

Member Avatar for OsaMasw
0
194
Member Avatar for Anuj877

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

Member Avatar for cereal
0
2K
Member Avatar for AntonyRayan

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

Member Avatar for AntonyRayan
0
161
Member Avatar for Anil_8

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

Member Avatar for pritaeas
0
455
Member Avatar for AntonyRayan

How to create a online registration form for admission in college with all designs. Can anyone give me a perfect example for that

Member Avatar for AntonyRayan
0
84
Member Avatar for klemme

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 …

Member Avatar for lps
0
120
Member Avatar for daniel.conlinjr.1

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

Member Avatar for lps
0
93
Member Avatar for fabzster

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 …

Member Avatar for fabzster
0
7K
Member Avatar for Apurva1026

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

Member Avatar for diafol
0
205
Member Avatar for luma64

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)

Member Avatar for diafol
0
211
Member Avatar for frankchester

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 …

Member Avatar for diafol
0
471
Member Avatar for polodon242
Member Avatar for polodon242

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

Member Avatar for polodon242
0
6K
Member Avatar for Apurva1026

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

Member Avatar for mattster
0
78
Member Avatar for crazyvonzipper

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 …

Member Avatar for pritaeas
0
274
Member Avatar for mattyd

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 …

Member Avatar for diafol
0
257
Member Avatar for mohd_3

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 …

Member Avatar for diafol
0
224
Member Avatar for harishprakash
Member Avatar for riwakawd

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() …

Member Avatar for riwakawd
0
259
Member Avatar for kalcio

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

0
225
Member Avatar for Priti_P

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]) …

Member Avatar for diafol
0
228
Member Avatar for Vinson
Member Avatar for mangel.murti

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 …

Member Avatar for diafol
0
155
Member Avatar for mattyd

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 …

Member Avatar for mattyd
0
238

The End.