39,402 Topics

Member Avatar for
Member Avatar for PhilipRaj

<?php include ('main_config.php'); //get all web settings $web_settings = array(); <?php include ('main_config.php'); //get all web settings $web_settings = array(); try { $db = new PDO($mysql_host_db, $mysql_user, $mysql_pass); $query = "SELECT * FROM t_lfs_web_settings"; //$result = $db->query($query); $result = $db->prepare($query); $result->execute(); foreach($result as $row) { echo $row['gld'].'<br />'; echo $row['gname'].'<br …

Member Avatar for minitauros
0
130
Member Avatar for Nilesh_3
Member Avatar for aneeqtariq_143

i want to create a form for my client. My client require to create a dynamic for him. suppose, i want to insert 1 record in main table of mysql, and record multiple records in secondary table which has reference key of main table. I dont know how many records …

Member Avatar for diafol
0
7K
Member Avatar for asaidi

Hi sorry about i m stucked in foreach loop <?php error_reporting(0); $mysqli = new mysqli("localhost", "root", "root", "route"); if ($mysqli->connect_errno) { printf("Connect failed: %s\n", $mysqli->connect_error); exit(); } $array = $_POST['arrayorder'];====>array of id s sent from form $jour=$_POST['day'];======>array of days $c=array_combine($array,$jour); print_r(array_values($c)); if ($_POST['update'] == "update"){ //in my foreach i want …

Member Avatar for asaidi
0
353
Member Avatar for baloch123

Hi Hope,everyone is doing good out there. I need some help regarding which strategy to use for one of my projects. Here are the project details I want to generate PDF forms, by gathering data from user.There are different questions to ask and based on each answer,we will ask next …

Member Avatar for baloch123
0
740
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
285
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
56
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
194
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
114
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
196
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
164
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
465
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
86
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
121
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
96
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
209
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
216
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
479
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
82
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
277
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
259
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
226
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
261
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
226
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
233
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
159
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
245
Member Avatar for asaidi

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

Member Avatar for asaidi
0
5K
Member Avatar for Apurva1026

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."' "); } }

Member Avatar for hericles
0
534
Member Avatar for markdean1989

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

Member Avatar for pixelsoul
0
132
Member Avatar for Samyx

Hi guys, I am trying to create a login page using apache mod_auth_form to authenticate users. Once the user is authenticated he/she should be able to access the main page. # my public directory: # C:/webroot/ regtrack_newSG.php # my protected directory: # C:/webroot/myapp/ regtrack_studysiteone.php # my password file: C:/Apache24/passwd/passwords # …

Member Avatar for cereal
0
2K
Member Avatar for enterdani

The code works to send the email with link included bu the URL does not open. Can anyone help? //Send Email For Account Confirmation $s_web="http://".$_SERVER[HTTP_HOST]; $message="Please activate your account by running this link:"."\n\n"; $message.=$s_web.'/confirmaccount.php?code='.$encryptpass.'&id='.$id."\n\n"; $headers = 'From:'.$s_mail."\n" . 'Reply-To:'.$s_mail."\n" . 'X-Mailer: PHP/' . phpversion(); mail ($emailaddress,'New Account Confirmation',$message,$headers); } mysql_close($connect);

Member Avatar for pixelsoul
0
401
Member Avatar for AntonyRayan

Hi every one, I want to take a photo by using webcam , and I want to store it in db and finally I want to view it. How to do? Its urgent.

Member Avatar for almostbob
0
105
Member Avatar for subbu_1

'HTML' form <form action="result.php" method="POST"> <input type="search" name="query" size="10" id="searchfield" title="searchfield" /> <input type="submit" name="Search" value="" alt="Search" id="searchbutton" title="Search" /> </form> result php file <?php @session_start(); include 'connections.php'; if (isset($_POST['query']) && $_POST['query'] != "") $query = $_POST['query']; $min_length = 1; if(strlen($query) >= $min_length) { $query = htmlspecialchars($query); $query = mysql_real_escape_string($query); …

Member Avatar for subbu_1
0
528
Member Avatar for darrylnuyda

Hi everyone, Can you help me ?? how to install a laravel-master PHP Framework, Using the XAMPP? I tried to install but I failed. Also, watching youtube video tutorials but their example is WAMPP server. In my part Im capable in XAMPP cause this is my practice in my web …

Member Avatar for Le_1
0
1K
Member Avatar for UK-1991

Hello, I have created a page for users to view their status reports but I have created 2 dropdown 1 for month second for year i want that user click on the month it show only that months status not for the whole table status and at the end of …

Member Avatar for diafol
0
180
Member Avatar for markdean1989

Hi guys, I just thought of starting PHP as my web scripting language but I don't know which applications I should be downloading. The online resource that I was reviewing says I need to install; PHP Web Server MySQL Can somebody tell me where to get these stuff? (all those …

Member Avatar for markdean1989
0
209
Member Avatar for janicemurby

hya i have created a table of multi checkbox group and added a [] at the end of the name in html now when i check a selection of boxes i just get array echoed what do i do to sort it out and get the list of items that …

Member Avatar for cereal
0
184
Member Avatar for Sophia_1

Hi,tried to update the improvement_plan table with the records below but unable to do so, as the records are not updated. When i click submit button, no records are saved. Please advise? Thanks. <?php error_reporting(E_ALL ^ E_NOTICE); mysql_connect("localhost","user",""); mysql_select_db("p1"); $table="improvement_plan"; if(isset($_POST['submit'])){ // echo $_SESSION['Picid']; echo $_SESSION['Progressid']; foreach($_POST['Ipid'] as $value) { …

Member Avatar for Sophia_1
0
229
Member Avatar for osagie.odigie.148

Good day all ! i have a multi-dimensional array. the array was carefully built from my xml structure. here's it : array (size=1) 'Articles' => array (size=4) '@About' => string 'programming' (length=11) '@compile' => string 'pro' (length=3) 'Article' => array (size=3) 0 => array (size=6) ... 1 => array (size=6) …

Member Avatar for diafol
0
362
Member Avatar for Olivier_1

Hi, i'm trying to implement a flot.js graph using a custom php array as data. Here is what i've done : <?php foreach ( $dynamic_prices as $limit => $price ): $coordonnees[] = array($limit,$price); endforeach; ?> <?php echo json_encode(($coordonnees), JSON_NUMERIC_CHECK); ?> This code outputs : [[5,9],[6,8]] is it the right format …

Member Avatar for Olivier_1
0
261
Member Avatar for davy_yg

Hello, How to place quote (' ') between Lesson 3 ? define('SUCCESS_URL','add_material.php?class_name=Lesson 3'); Thanks before, Davy

Member Avatar for diafol
0
129

The End.