39,393 Topics

Member Avatar for
Member Avatar for chrisschristou

hello dear friend. on my page i have a form with data with submit bouton when user click on insert data insert into a table all work fine i would like to redirect user to other page after insert into the i use this code $insertGoTo = 'order-line.php'; if (isset($_SERVER['QUERY_STRING'])) …

Member Avatar for shitanshu_1
0
3K
Member Avatar for Borzoi

I think I am missing something obvious here but I can't see what. I am pulling information from another file using `file();` which works as expected - putting each line in to an array. The file contains some HTML tags but is just a text file (not a full web …

Member Avatar for Borzoi
0
435
Member Avatar for PhilipRaj

Hi Gentlemen Please help the following code shoots error, my purpose is to view the table value for checking purpose, but it fires error, <?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 = …

Member Avatar for ezekel
0
183
Member Avatar for PhilipRaj

the following is the error message, Undefined index: gld in F:\xampp\htdocs\lfs\site_globalfn.php on line 14

Member Avatar for almostbob
0
98
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 minitauros
0
915
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
351
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
283
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
54
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
195
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
163
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
460
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
95
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
208
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
214
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
476
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
80
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
276

The End.