39,316 Topics

Member Avatar for
Member Avatar for SoMa_2

I want to display images based on what user checked from number of checkboxs. I'm trying this code, but it not working <!Doctype html> <html><body> <form method="post" action="" id="myForm"> <div class="opt-first"> <h1><b>Subject</b></h1> <input type="checkbox" value="Account/Finance" name="subject[]" /> Account/Finance<br /> <input type="checkbox" value="Marketing" name="subject[]" /> Marketing<br /> <input type="checkbox" value="" name="subject[]" …

Member Avatar for diafol
0
1K
Member Avatar for elamigosam

hello, I am having issues inserting comma separated values to my database, this is what I have: $invoiceProducts = "14:12,"; // eventualy the 14:12, will multiply to other values 43:2,34:1,45:1, etc $invoiceProducts = addslashes($invoiceProducts); //stripslashes() to remove the slashes tried with and without stripslashes. $stmt = $conn->prepare("INSERT INTO invoices (invoiceActive, …

Member Avatar for elamigosam
0
319
Member Avatar for SoMa_2

this code will display all courses user has <h1>YOUR COURSES</h1> <form action="delete.php" method="POST"><ol> <?php $con=mysqli_connect("localhost","FYP","123","FYP"); $sql= mysqli_query($con, "SELECT C_Code FROM F_COURSES WHERE F_ID=".$_SESSION['userid']); while($row = mysqli_fetch_array($sql)){ echo "<li name='course'>".$row['C_Code']."<input type='submit' value='Delete'>";} ?></ol></form> I need when user click on delete button that course delete from F_courses <?php session_start(); if (! empty($_SESSION['logged_in'])) …

Member Avatar for broj1
0
379
Member Avatar for 080346

Hello every body i have searched a lot to get the script that convert .swf files into .flv mp4 but i always found software's that do this not a script. Actually m making a web based application that do this but don't find anything good... Some Suggestions, help, links please... …

Member Avatar for edisath
0
225
Member Avatar for davy_yg

Hello, I am looking for a good bootstrap test page. Any idea? I mean after people builds websites with boostrap they're going to need a test page to test their home page in various screen resolution. Is there any test page like that?

Member Avatar for cereal
0
72
Member Avatar for Kannu_1

how to make multilevel menu like .A .B .C .D C & D is the sub-menu of B , B is the sub-menu of A A is main-menu

Member Avatar for diafol
0
213
Member Avatar for Soeung Sovath

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <platformCore:searchResult xmlns:platformCore="urn:core_2012_2.platform.webservices.technoplat.com"> <platformCore:searchRowList> <platformCore:searchRow xsi:type="tranSales:TransactionSearchRow" xmlns:tranSales="urn:sales_2012_2.transactions.webservices.technoplat.com"> <tranSales:basic xmlns:platformCommon="urn:common_2012_2.platform.webservices.technoplat.com"> <platformCommon:tranId> <platformCore:searchValue>17678</platformCore:searchValue> </platformCommon:tranId> </tranSales:basic> </platformCore:searchRow> <platformCore:searchRow xsi:type="tranSales:TransactionSearchRow" xmlns:tranSales="urn:sales_2012_2.transactions.webservices.technoplat.com"> <tranSales:basic xmlns:platformCommon="urn:common_2012_2.platform.webservices.technoplat.com"> <platformCommon:tranId> <platformCore:searchValue>17705</platformCore:searchValue> </platformCommon:tranId> </tranSales:basic> </platformCore:searchRow> <platformCore:searchRow xsi:type="tranSales:TransactionSearchRow" xmlns:tranSales="urn:sales_2012_2.transactions.webservices.technoplat.com"> <tranSales:basic xmlns:platformCommon="urn:common_2012_2.platform.webservices.technoplat.com"> <platformCommon:tranId> <platformCore:searchValue>17777</platformCore:searchValue> </platformCommon:tranId> </tranSales:basic> </platformCore:searchRow> </platformCore:searchRowList> </platformCore:searchResult> </searchResponse> </soapenv:Body>

Member Avatar for diafol
0
301
Member Avatar for Fachather

I am developing a website for my small online business when my friend suggested me Yii framework. On researching about the same, I found from this source ( http://probytes.net/services/yii-development/ ) that it has many advantages compared to other development frameworks. But I am not sure about finalizing it. Can anybody …

Member Avatar for edbr
0
75
Member Avatar for Driton_1

i am getting that error when i try to insert a record. this is my code <?php include "config.php"; include "header.php"; ?> <a href="index.php" class="btn btn-success btn-md"><span class="glyphicon glyphicon-arrow-left" aria-hidden="true"></span> Back</a> <?php if(isset($_POST['bts'])): if($_POST['nm']!=null && $_POST['ln']!=null && $_POST['gd']!=null && $_POST['tl']!=null && $_POST['ar']!=null){ $stmt = $mysqli->prepare("INSERT INTO personal(name,lname,gender,telp,address) VALUES (?,?,?,?,?)"); $stmt->bind_param('ssss', …

Member Avatar for Driton_1
0
4K
Member Avatar for chichi9

so i am trying to output course information when the course number is selected and the button is clicked. here is the html <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Course Info</title> </head> <body> <h1>Course Information Search</h1> <form action="" method="post"> <select name="course" id="course"> <option value="420-121">420-121</option> <option value="420-122">420-122</option> <option value="420-123">420-123</option> <option …

Member Avatar for chichi9
0
316
Member Avatar for berserk

I have found several different methods for doing this online but for some reason i just cant get any of them to work for me, it may be they way im calling them or something but it also might involve my lack of expereince with JS but regardless I have …

Member Avatar for AleMonteiro
0
5K
Member Avatar for ramsiva

I am not getting while clicking on image my code $pdf->Image('logo.png',10,20,33,0,' ','http://www.fpdf.org/'); working but I want to display the local file. Mean click on image it will go the the file path. Below code is not working $pdf->Image('a.jpg',20,65,20,0,'','searchstudentavailability.php');

Member Avatar for broj1
0
229
Member Avatar for Kristiano

Hi, I have been searching and trying for days now but still cant get this to work. Id like to group my result from a SQL call into a multidimensional array. The columns that are extracted are Timestamp, room, device and value and gets sorted accordingly. As long as the …

Member Avatar for diafol
0
2K
Member Avatar for Priti_P

hello, i tried with below code but its not working for me. I am send it to gmail. is there anything which i have missed out? $subject = "Happy Work Anniversary !" ; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $link = public_path() . …

Member Avatar for pritaeas
0
206
Member Avatar for adebayo.sas

In the course of installing adquick 2.4 as instructed. I came across this error Parse error: syntax error, unexpected '''' (T_CONSTANT_ENCAPSED_STRING), expecting identifier (T_STRING) in C:\xampp\htdocs\ads\install\index.php on line 1226. I HAVE JUST BOLDED THE LINE 1226 FOR EASY REFERENCE IN THE CODE. <? function startparsing () { $content = '' …

Member Avatar for pritaeas
0
2K
Member Avatar for vivosmith

Would it be inserting this as a type? 'application/x_bittorrent' or is there more to it to allow torrent uploads?

Member Avatar for AleMonteiro
0
171
Member Avatar for KazumaKarasu

I hvae been working on this code for hours and can't figure out how to delete information from a database. It is currently claiming that result and checkbox aren't variables... I have looked at countless websites but can't seem to get this to work. Thank you ahead of time. <head> …

Member Avatar for jj.dcruz
0
440
Member Avatar for phpcake

I have website that enables user to select favourite websites, date of visiting the website, comments like how satisfied with the website they visited on that day. Initially there are four rows are hard coded and inserted into the mysql database. Then there is a add button enabling user to …

Member Avatar for lps
0
330
Member Avatar for jonlloydd

I currently have two tables in a database. One for products and one for product options. My product table allows a product to have 4 different option for example size and color etc. My options table gives each option an option ID. So for the option color - red, green, …

Member Avatar for diafol
0
174
Member Avatar for Kristiano

Hi, I have been searching and trying for days now but still cant get this to work. Id like to group my result from a SQL call into a multidimensional array. The columns that are extracted are Timestamp, room, device and value and gets sorted accordingly. As long as the …

Member Avatar for Kristiano
0
191
Member Avatar for phoenix254

I have been trying to google and find out how to make a .php script that will make a an automatic slideshow of images from a folder, I've only managed to get the pictures to automatically show up on the php page, but I can't figure out how to make …

Member Avatar for phoenix254
0
119
Member Avatar for vivosmith

<?php if (isset($_POST['submited'])) { if (isset($_FILES['upload'])) { $allowed=array('image/JPEG','application/x-bittorrrent'); if (in_array($_FILES['upload']['type'],$allowed)) { if(move_uploaded_file($_FILES['upload']['tmp_name'] , "../upload/$_FILES['upload']['tmp_name']")) { echo'Your file has been successfully uploaded!'; } else { echo'Please upload a torrent file!'; } } } if ($_FILES['upload']['error']>0){echo 'An error has occured.';} if (file_exists ($_FILES['upload']['tmp_name']) && is_file( $_FILES['upload']['tmp_name'] ) ){ unlink ($_FILES['upload']['tmp_name'] ); } …

Member Avatar for vivosmith
0
2K
Member Avatar for Niloofar24

Hi. I want to set `read more` for my cms posts. The code i found was `<?php the_content( $more_link_text , $strip_teaser ); ?> ` but still don't know how and where to use it. Any suggestion?

Member Avatar for Niloofar24
0
528
Member Avatar for anandatheerthan

I wanted to chain 3 selects and I got it working using this code. http://jsfiddle.net/FJFFJ/1/ The issue I now have is, how do I fetch the selected values from each dropdown in PHP? For example, the above creates 3 select boxes when the page is opened. When I click on …

Member Avatar for phpcake
1
4K
Member Avatar for phoenix254

HI I want to make an image slider where show user uploaded images from his directroy his directory or folder. [Image slider like this.](http://postimg.org/image/hl3pdp3mr/)

Member Avatar for phoenix254
0
4K
Member Avatar for Njegos

Hello All, We have created classified software for real estate market. We could say that software is now ready for additional niche markets. Markets that we are intend to market: car/bike, boats, pets etc Real Estate version: http://www.cubescripts.com/real-estate-script It is made in PHP and revision tracking is done through the …

Member Avatar for Njegos
0
245
Member Avatar for afaaro

Hi every one I need to retrieve categories and subcategories by category type this my data category_id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, category_parent INT(11) UNSIGNED NOT NULL DEFAULT '0', category_name VARCHAR(255) NOT NULL DEFAULT '', category_type VARCHAR(30) NOT NULL DEFAULT 'news', like News++++++ category1 category2 subcategory1 Video++++++ category3 category4 category5 …

Member Avatar for afaaro
0
354
Member Avatar for ramsiva

I want to insert into DB 000001 and 000002 and .... but inserting 1 and 2.. any body help me to solve this problem my code is $b = mysql_query("SELECT MAX(app_number) FROM tb2_payment ")or die(mysql_error()); while($row_b = mysql_fetch_array($b)){ $app_number=$row_b['MAX(app_number)']; if($app_number=="") { $app_number2=000001; } else { $app_number2=$app_number+1; } } echo $app_number2;

Member Avatar for ramsiva
0
184
Member Avatar for AntonyRayan

<?php include("connect.php"); $cat_id=$_REQUEST['cat_id']; $search_key=$_REQUEST['search_key']; if($search_key != "") { $sql=mysql_query("SELECT * FROM tbl_products WHERE title LIKE '%$search_key%' OR short_descrp LIKE '%$search_key%' OR description LIKE '%$search_key%'")or die(mysql_error()); $count=mysql_num_rows($sql); if($count > 0) { while($row_city=mysql_fetch_array($sql)) { //echo $row_city['title']."<br>"; //echo $row_city['short_descrp']; ?> <div class="section group"> <div class="city"> <div style="float:left"> <img src="images/member_posts/<?=$row_city['image1'];?>" title="<?=$row_city['title'];?>" height="100" width="160" > …

Member Avatar for jj.dcruz
0
249
Member Avatar for edbr

im sure im missing something obvious, i just cant see it any more. i had a fail on a site as i tried live, i tried to break the problem down i found the error as below with a foreach and an if condition. This is working fine on my …

Member Avatar for edbr
0
956

The End.