39,321 Topics

Member Avatar for
Member Avatar for muralibobby2015

Hello, I have html table which displays content from email. this email content can be from any email client(browser , outlook ,thunderbird...). if this html is malformed it creates a mess in my html table. for eg: if the email content has any unclosed tags or malformed table in it …

Member Avatar for diafol
0
305
Member Avatar for davy_yg

If I turn on : <?php $group_level = 'intermediate 1'; ?> Then it does lock the $group_level to intermediate 1. groupinfo_edit.php <tr> <td>Level</td> <td> <?php //$group_level = 'intermediate 1'; ?> <?php $row2 = mysql_query("SELECT * FROM `level`") or die(mysql_error()); echo '<select name="group_level">'; while($data2 = mysql_fetch_array($row2)){ echo '<option value="'.$data2['level _name'].'"'; if($group_level …

Member Avatar for pritaeas
0
206
Member Avatar for malatamil

validation for particular fields like input name="",textarea,select name="". <form method="post" id="myform" name="myform"> <tr><td width="170"><div align="left">Company Name<span style="color:#F00;">*</span> :</div></td><td width="317"> <input type="text" name="companyname" placeholder="Company Name" value="<?php echo ucwords(strtolower(mysql_real_escape_string($_POST['companyname']))); ?>"/></td></tr> <tr><td><div align="left">Contact Person Name<span style="color:#F00;">*</span> :</div></td><td> <input type="text" name="conactperson" placeholder="Contact Person Name" value="<?php echo ucwords(strtolower(mysql_real_escape_string($_POST['conactperson']))); ?>"/></td> </tr> </form> company name is mandatory …

Member Avatar for malatamil
0
434
Member Avatar for blueguy777

i've two files one is send-data.php which contains html form and another one is receive-data.php, i am converting the form value as session value into second file and printing using echo. but it's not printing the output. //send-data.php <?php session_start(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html …

Member Avatar for blueguy777
0
737
Member Avatar for blueguy777

I'm trying to pass the ac_no contained in my database table to a form that's displayed within a Bootstrap Modal upon clicking a button. My code is as follows. <?php $mydata = mysql_query("SELECT * FROM slabpay WHERE ac_no='$ac_no'"); while($record = mysql_fetch_array($mydata)) { $id=$record['id']; ?> <tr class='fired' id='<?php echo $record['id']; ?>'> …

Member Avatar for blueguy777
0
3K
Member Avatar for davy_yg

http://localhost/squprime/administrator/admin/%3Cbr%20/%3E%3Cb%3ENotice%3C/b%3E:%20%20Undefined%20variable:%20student_id%20in%20%3Cb%3EC:%5Cxampp%5Chtdocs%5Csquprime%5Cadministrator%5Cadmin%5Cadd_student_progtab.php%3C/b%3E%20on%20line%20%3Cb%3E164%3C/b%3E%3Cbr%20/%3E/squprime/administrator/admin/add_student_progtab.php?student_id= Undefined variable student_id, I wonder why? That url appears after I press save. add_student_progtab.php <?php // Check if session is not registered, redirect back to main page. // Put this code in first line of web page. session_start(); if(!isset($_SESSION['username'])) { header("location:index.php"); exit; } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML …

Member Avatar for scudzilla
0
249
Member Avatar for Samyx

Hello Everyone, I am trying to export data directly from the database to a downloadable Excel spreadsheet, the formatting is showing. However, the data is not displaying. Can anyone help me? Also, when opening the spreadsheet it gives me the message "We found a problem with some content in 'FileName'. …

Member Avatar for Samyx
0
370
Member Avatar for toxicandy

I have a basic query I was working on with optional search parameters. The query code is: $query = $db->prepare("SELECT * FROM VolunDB " . $whereClause . " 1 = 1"); $query->execute(); $result = $query->fetch(PDO::FETCH_OBJ); $table = $result->fname . " " . $result->lname; and $whereClause equals: WHERE general = General …

Member Avatar for diafol
0
422
Member Avatar for Ehsan_4

How to merge or join or map two arrays fetched from mysql db array full_name and array email to create one recipient list to be bcc for php mailer and then be able to use something like: $email= array(); $full_name= array(); while loop starts array_push($email, $row['email']); array_push($full_name, $row['full_name']); loop ends …

Member Avatar for Ehsan_4
0
173
Member Avatar for RAPIDFIRE0311

I can not get the values from the javascript add row to go dynamically as a row into MySql only the form values show up as the form below as one row. I made it as an array, but no such luck, I have tried this code around a multitude …

Member Avatar for Taywin
0
215
Member Avatar for chaitu11
Member Avatar for pritaeas
0
63
Member Avatar for joshl_1995

Hello Community, I was wondering if there is a way to filter through an email to get all the details. Such as from, to, subject, body and a few other details but you get the idea. At the moment I just have a bunch of text but I want to …

Member Avatar for joshl_1995
0
730
Member Avatar for Clarkeez

Ok so I have this code to submit form to php without reloading page. It works perfectly, and makes sense. form.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>JQuery Form Example</title> <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"></script> <script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery.validate/1.7/jquery.validate.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#myform").validate({ debug: false, rules: { name: "required", …

Member Avatar for udara86
0
778
Member Avatar for santunu23

This is my script when any registed user click on checkbox then he insert tbl1 table and we set a cookie and run events after 36 minute event will run and insert data in to another table called tbl2 my code is <form action="course01.php" method="POST"> <input type="checkbox" name="chk1" value="701" />I …

Member Avatar for cereal
0
202
Member Avatar for santunu23

is it possible to run a php script using mysql event if so how to do that i mean syntex thanks in advance.

Member Avatar for pritaeas
0
188
Member Avatar for santunu23

this is a php script for import .sql file in mysql but suddenly it doesn't work what i am doing wrong browser show false messege <?php //ENTER THE RELEVANT INFO BELOW $mysqlDatabaseName ='trigger'; $mysqlUserName ='username'; $mysqlPassword ='mypassword'; $mysqlHostName ='localhost'; $mysqlImportFilename ='event.sql'; $command='mysql -h' .$mysqlHostName .' -u' .$mysqlUserName .' -p' .$mysqlPassword …

Member Avatar for almostbob
0
165
Member Avatar for rrajeswari03

I am looking for some help on makings a dynamic organisation chart in PHP.Does anyone know where I could find a PHP class to generate organizational charts?

Member Avatar for almostbob
0
115
Member Avatar for malatamil

here i have rc.RelatedCatagory like this (Flex Printing, Offset Printers, Digital Printers, Id Card Printers, Graphic Designers,News Papers) if i get this ($subcatagory = $_GET['subcatagory'];) from first page value as (Flex Printing), then i want to display only (Flex Printing ) companies. how to match with that value one by …

Member Avatar for almostbob
0
315
Member Avatar for Acurapassion

Hey guys, so I'm considering moving my mysql scripts to be compliant with PHP 5.5 and above (mysqli). Is it a pretty staightforward transition? Can functions basically just be replaced with the new verions, or are there other things that have to be done as well? Also, I'm interested to …

Member Avatar for Taywin
0
172
Member Avatar for dlaniger

Hello, I have PHP 5 and Apache 24 installed. PHP doesn't appear in my Control Panel as an installed program. I have tried to Use **PHPIniDir c:/php** in my httpd.exe file and also **LoadModule php5_module "c:/php/ext/php5apache2_4.dll"** both of which crash the Apache server. I have searched Google for an answer …

Member Avatar for dlaniger
0
196
Member Avatar for gilgil2

Hi, I am having trouble with this page, it is completely blank. I have turned on error reporting but nothing happens, does anyone know what has happened to it? It has worked previously so maybe I have changed something but not sure what. <?php session_start(); ob_start(); if(!isset($_SESSION['authenticated'])) { header ("Location: …

Member Avatar for gilgil2
0
260
Member Avatar for chaitu11

I have a (2gb)txt file which has thousands of queries, i need to read those file queries and split those queries into n no. of txt files..and save them in a folder... can any one post an example or guide

Member Avatar for chaitu11
0
238
Member Avatar for Keyra Lee

hi guys...i need help from u guys..my prob is about select option..i'm not good in english. hopefully u guys would understand my english..:(..please help me..:'(..im still new in php.. i want to select a state then a branch will auto will appear if related..i only want if one state is …

Member Avatar for urtrivedi
0
1K
Member Avatar for scarcella

Hi guys, so I need to know how to add Products programtically without getting this error. Fatal error: Call to a member function getPosition() on a non-object in \app\code\core\Mage\Bundle\Model\Product\Type.php on line 854 This is my code: class TCK_Forty_CartController extends Mage_Core_Controller_Front_Action { public function addAction() { $prdId = $this->getRequest()->getParam('product'); $cart = …

Member Avatar for veedeoo
0
461
Member Avatar for davy_yg

Hello, I am trying to find a way to push the admin footer down. How? admin/access.php <button type="button" onClick="parent.location='edit_teacher_access.php'">Add Teacher</button><br><br> <h3>Teacher Access:</h3><br> <table id="admintable" border="1" cellpadding="2" cellspacing="0" width="700px"> <tr> <th>Name</th><th>Username</th><th>Password</th><th>Access Level</th> </tr> <?php $i=0; while ($data = mysql_fetch_array($result)){ $result2=($i%2)?'#DFA09D':'white'; //echo "<tr bgcolor='$result2'>"; //echo '<td>'.$data['page'].'</td>'; //echo "<td><a href='post.php?post_id=".$data['post_ID']."'><img src='../images/post.jpg'></a></td>"; //echo '</tr>'; …

Member Avatar for veedeoo
0
186
Member Avatar for davy_yg

Hello, I am trying to record a birthdate. I am looking for the right variable to do that. The only option in mysql database xampp is datetime: yyyy-mm-dd hh:mm:ss While I would like it to be: dd-mm-yyyy ? How? If I input the data dd-mm-yyyy will my database adapt to …

Member Avatar for diafol
0
231
Member Avatar for siddiquedu

This the following code for member_account.php in the member_profile.php there is a link for member_account.php, after I login then i can see all information and in the headbar it shows username,account logout home link. but whenever i click to account I can see only logout and home link (i made …

Member Avatar for siddiquedu
0
219
Member Avatar for berrykid

Hi all, i am hoping i will be able to get some quick help here. Ok i am basically building a web application where the user will be able to add,update,delete and edit fields in a database. So far i am on the Update part. I have a page called …

Member Avatar for dipalinigade
0
3K
Member Avatar for centenond

hi, im just moving all my website that i created from localhost with xampp, i created links like http://website.com/folder/ and when i was working in localhost it worked, it get the index from that folder, but now i pas it to my website and wont work like that, is only …

Member Avatar for centenond
0
245
Member Avatar for itexamstube

i want to develop my website so i want to know what programming language is the best PHP or VB.NET?

Member Avatar for rubberman
0
478

The End.