- Strength to Increase Rep
- +4
- Strength to Decrease Rep
- -1
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
file read and compare with array values and remove the row values from file fopen("sample.txt",'rb'); read the first column content from file and compare with array value,if it matches then remove the entire row from file. |
|
?mr1=60,60,60,60,60&mr2=90,90,9&0,90,90&mr3=30,30,30,30,30 from the URL it should remove & ifit is there inbetween numbers(ie 90,90**,9&0**,90,90) and ignore this & if it is there like(60,60,60,60,60**&mr2** ). if **after &** mr2 or mr1 or mr3 then it should take the param value ,if it is inbetween should **remove &** only how to use … |
|
Hi all, can anyone help me to do the arrangements. if the URL is like example.com?mr3=50,50,50,50,50&mr2=90,70,70,70,70&mr1=90,90,90,90,90 then i want to arrange in the order ?mr1=90,90,90,90,90&mr2=90,70,70,70,70&mr3=50,50,50,50,50 Thanks in advance. |
|
while running the phpunit project am getting error like "cannot open file src/autoload.php". i tried with this reference https://phpunit.de/getting-started.html. In cmd i used the below command line >> phpunit --bootstrap src/autoload.php tests/MoneyTest please anyone help me to solve this issue. |
|
I want to upload file using php ajax then insert all the data such as chapter name, lesson name and id on database. How can i do that? pls help me guys. Thank you :) |
|
i have a URL like this example.com/index.php?param1=10,20,30,40,50¶m2=50,60,70,80,90,10¶m3=40,50,60,70,80 Using PHP,javascript,JSON i did this pentagon radarchart. If the values are changing then the pentegon image also will be change. and if the parameters limit is 3 only. if it is 1 parameter then the respective parameter values will display. By using the … |
|
my website is like domain.in if i open this website the innerlinks are showing like domain.in1/. My domain is registered in godaddy.com, and their is no source link like domain.in1/about/. so please anyone help me to solve this issue. |
|
in wordpress i have a Menu like Blog..( http://www.example.in/blog/), if i click blog its going to http://www.example.in/blog/ page, but i want to redirect this to blog.example.in. And in godaddy.com i created subdomain as blog.example.in under parent domain example.in i tried to change the blog file url link in wordpress, but … |
|
upload.php <form name="selectionForm" method="POST" action='query.php'> echo "<select name='$q2['type']'>"; //echo "<select name='selecttype'>"; echo "<option value='Regular Project'>Regular Project</option>"; echo "<option value='FSA Project'>FSA Project</option>"; echo "</select></td>"; echo "<input type='hidden' name='mid' value='$q2[0]'>"; echo "<td width='140'><textarea rows='2' name='comments[]' cols='20' ></textarea></td>\n"; echo "</tr>\n"; </form> query.php $selecttype = $_POST['selecttype']; instead of calling 'selecttype' i want to call … |
|
In this each member has 3 type of project selection. if one member has selected "regular Project" then remaining types should be displayed in dropdown for each member. But here i tried with this code.. example i have 6 members, then 6 members can have 3 type of selections.. if … |
|
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++) { … |
|
i have two tables. in 2nd table i assigned the 1st table primary key as foreign key. i have two options edit and delete. i can't delete foreign key value and also primary key value in 2nd table. |
|
mail is not getting to my inbox. while submit the form am getting message as mail has been sent, but after sending i checked my mail am getting mail in spam,how can i get the mail into inbox. index.html <form method="post" name="sentMessage" action="mail/contact_me.php" id="contactfrm" role="form" enctype="multipart/form-data"> <div class="col-sm-4"> <div class="form-group"> … |
|
in this query format i want to display the Memr_Name. how can i get the values from this query $qryStr = mysqli_prepare($connection, "SELECT Memr_Name, MEMBER.Memr_Id from MEMBER, VOLUNTEER ". " WHERE MEMBER.Memr_Id = VOLUNTEER.Memr_Id AND VOLUNTEER.Batch= ? ". " AND VOLUNTEER.Task_Id = 'COR_GNRL' AND ". " VOLUNTEER.Chapter_Id = ? ORDER … |
|
after login i want to display logout and username. but here if i login again its showing login. please some help me index.php <?php session_start(); $city=$_SESSION['city']; $userl = $_SESSION['username1']; <?php if(!isset($userl) == '') { ?> <div class="header_nav_left">Welcome <?php echo $userl; ?> | <a href="logout.php" id="clicklogin" title="Logout" onClick="NewWindow(this.href,'loginwindow','500','500','no','center');return false" onFocus="this.blur()">Logout</a></div> <?php … |
|
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 … |
|
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 … |
|
i want to display last 3 months of data. but this query is not working. it showing empty results. please some one help me. $sql8 = mysql_query("SELECT `orderlist_id`, `brandname`, `packsize`, `quantity`, `mrp`, `ourRate`, `Sum`,user_id,userName,date FROM `orderlist` WHERE `user_id`='$userid' AND `userName`='$usern' AND date=DATE(NOW()) - INTERVAL 3 MONTH"); $i=0; while($row8 = mysql_fetch_array($sql8)) … |
|
i have a add to cart website, in that am getting some problem. if i choose available pack size is 100 Grm,quantity-1 and i add to cart this product. again if i choose different product name,pack size is 200 Grm,quantity-2 and add to cart its changed to 200 Grm for … |
|
after login if i click logout (logout.php) its nor redirecting to login page. its stuck in logout.php page. logout.php <?php session_start(); session_destroy(); if(!$_SESSION['username']){ header("Location: login.php"); } ?> index.php <?php include("config.php"); session_start(); $usern = $_SESSION['username']; //if(!isset($_SESSION['sess_user_id']) || (trim($_SESSION['sess_user_id']) == '')) { if(!$_SESSION['username']){ header("location:login.php"); } ?> <div class="cssmenu"> <ul> <?php if($usern){ ?> … |
|
i want to display 3 data per row and n number of rows. someone help me to do this. <div class="top-box"> <?php include("config.php"); $sub2_category_id = $_GET['sub2product_id']; $sub2_category_name = $_GET['sub2product_name']; echo '<h2 class="head">'.$sub2_category_name.'</h2>'; $sql = mysql_query("SELECT p.`product_id`, p.`brand_name`, p.`brand_path`, p.`sub2_category_id`, p.`sub_category_id`, p.`main_category_id`, p.`date`,ba.`brand_amount_id`, ba.`available_pack`, ba.`mrp_amount`, ba.`our_price`, ba.`product_id` FROM `product` p JOIN … |
|
i want to download images to folder from database. my database table has 2 fields imagename,imagepath. thanks in advance |
|
i have a table fieldname like companyname and Created Date shown in below image. in that i want to display data's date wise ASC or DESC, like that if i click companyname the data's will show ASC and again if click will show DESC order format. and here i added … |
|
downloadsingledata_csv.php <?php /*mysql_connect("mysql1408.opentransfer.com", "A894703_Allspa13", "Beauty_13") or die(mysql_error()); mysql_select_db("A894703_beautyspa") or die(mysql_error());*/ $id = $_GET['id']; include('db.php'); $count = 0; $sqlquery = "SELECT s.Companyname,s.ContactPerson,s.EmailId,s.Url,cp.`city_id`, rc.`RelatedCatagory`,ck.MainCatagory,st.state FROM `spa` s left join relatedcatagories rc on rc.spaid=s.id left join catagorykeywords ck on ck.id=rc.mainCatagoryid left join subcatagorykeywords sub on sub.id=rc.RelatedCatagory left join city_place cp on cp.spaid=s.id left … |
|
please help me out by giving a very easy code |
|
<td>Upload your pic</td> <td><input type="file" name="1234" value=""></td> <?php $img =$_POST['1234']; $sql="UPDATE users SET FirstName='$FirstName' , LastName='$LastName', UserName='$UserName' $sql_pass,Email='$Email' , Gender='$Gender',PicUrl='$img' WHERE UserId='$User_ID'"; ?> want to save in image folder also |
|
<?php include"header.php"; if(empty($_SESSION['UserName'])){ header("Location: http://localhost:1234/city"); exit;} $result = mysql_query("SELECT * FROM menu"); echo "<td><a href='http://localhost:1234/city/menu_update_insert.php'> <img src='images/create.png'>Add New Record</a> </td>"; echo "<table border='0'> <tr class='tableheader'> <th>PageName</th> <th>MenuName</th> <th>ParentMenuId</th> <th>LinkWidth</th> <th>OtherUrl</th> <th>Status</th> <th>CreatedDate</th> <th>OnMainMenu</th> <th>FooterMenu</th> </tr>"; while($row = mysql_fetch_array($result)) { echo "<tr class='tablerow'>"; $rpId=$row['PageID']; $result1=mysql_query("SELECT * FROM page WHERE ID=$rpId "); … |
|
hi i have a problem while installing joomla lacally. i tried following procedure http://magazine.joomla.org/issues/issue-mar-2013/item/1110-free-e-book-%E2%80%93-introducing-joomla-30-made-easy after fill all the fields click install button its tooks more time but still not installed. am getting problem in create databae tables is stil loading. |
|
if i click Brochure i want to display one popup box in that will display one form after submitting the form brochure.php page will show.in that page i need to download some files.problem is while clicking Brochure its showing popup box if i close are submit the form again that … |
|
i need two popup box like this. <div class="pro_img"> <img src="web_img/IGN-GRAND.png" alt="Project Image" width="211" height="162" border="0"> <a href="#" onclick="popup('popUpDiv')"><br> DOWNLOAD</a> </div> <div id="popUpDiv" style="display: none;"> <a href="#" onclick="popup('popUpDiv')"><div id="rokbox-close"></div></a> <div id="rt-popup" style="background-color:rgba(230, 224, 224, 0.59);"> <div class="rt-block"> <div class="module-title"> <h3 class="title">Download Brochure</h3> </div> <div id="k2ModuleBox85" class="k2LoginBlock"> <form name="form1" onsubmit="javascript:return Validate();" … |