Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
82% Quality Score
Upvotes Received
20
Posts with Upvotes
17
Upvoting Members
15
Downvotes Received
4
Posts with Downvotes
4
Downvoting Members
4
3 Endorsements
Ranked #486
Ranked #569
~53.2K People Reached
Interests
php jquery ajax javascript css
Favorite Tags
Member Avatar for spud91

I have the following code: <?php session_start(); // Starting Session include_once('config.php'); $error=''; // Variable To Store Error Message if (isset($_POST['submit'])) { if (empty($_POST['user']) || empty($_POST['pass'])) { $error = "Please complete both fields"; }else{ // Define $username and $password $user=$_POST['user']; $pass=md5($_POST['pass']); // To protect MySQL injection for Security purpose $user = …

Member Avatar for GESTIC
0
1K
Member Avatar for jj.dcruz

I have this code foreach loop it will get the first data form my table every iteration on the next output. I would like to have a guidance on this <select class="selectpicker form-control" data-live-search="true"> @foreach ($IncidentTypes as $Incident) <optgroup label="{{ $Incident->incident_type ." ". $Incident->id }}"> @foreach ($Incident->IncidentSubType as $subTypes) <option> …

Member Avatar for Dani
1
221
Member Avatar for jj.dcruz

Hi there been having this problem for a while now and i need guidance the only thing that is showing me only **111** when looping through i have 3 data in my database and its not showing me the result i want any ideas?? thanks in advance **edit** the result …

0
296
Member Avatar for jj.dcruz

Hi there I have this problem on how to access the website/server without using IP address im using xampp as a trial for this. im always using IP's instead of names. I would like to know more on how to customize my Public Static IP(121.xxx.xxx.xxx) to name(www.mysite.localserver) like that

Member Avatar for rproffitt
0
394
Member Avatar for SAMUEL_8

What is used to add favicons to webpages like this page. Can the normal html php css be able to add favicons or is there a way to do it

Member Avatar for jj.dcruz
0
94
Member Avatar for SAMUEL_8

Am working on an online examination system. I have ordered the question output with "ORDER BY 1 ASC" and it follows as its appears in the database. But I want the output to be randomly generated so that each time the examinee logs in, different question number comes first.

Member Avatar for jj.dcruz
0
106
Member Avatar for learner001

i have a register and login page where the users can register and login. their details gets saved in the database. my requirement is that when the user will login to the account, they should be redirected to their profile page, where they can view all their profile details. Till …

Member Avatar for shashigowda
0
372
Member Avatar for Niloofar24

Hello. This is a part of my script: <table id="table-5"> <thead> <th>ID</th> <th>URL</th> <th>Editor</th> <td>More....</td> </thead> <tbody> <?php include('connection.php'); try { $sql = "SELECT * FROM Data ORDER BY ID DESC"; $result = $conn->query($sql); foreach($result as $key => $row) { echo "<tr>"; echo "<td>" . $row['ID'] . "</td>"; echo "<td>" …

Member Avatar for Niloofar24
0
434
Member Avatar for UK-1991

Hello I have created an attendance system but client requested to include a new fucntion iin it. Like there if employe comes and time in after the set time its should count late for that day means on a table if it is late so it will show 1 and …

Member Avatar for UK-1991
1
708
Member Avatar for gestler

I am at a very basic level of web development capability. However, I built a [site](http://www.metrowesthomeremodeling.com) that was working fine until I attempted to insert a slideshow (using WOWslider) onto the site. This caused me to alter the css file for the site and for the superfish menu. When I …

Member Avatar for gentlemedia
0
279
Member Avatar for mskat02

I am trying to insert a set of attribute rows into a table based on the range of a unique key (product_id) and three passed variables. This is on a MySQL database. The three variables are the start_product_id, the end_product_id and the batch_attr_id. The stored procedure does not return an …

Member Avatar for ryantroop
0
291
Member Avatar for jay.barnes

Hi, all I'm working on a website that is comprised of two iframes within several nested divs ( the frames named "frame-menu" and "frame-main"). Displaying as such: <div id="wrapper"> <div id="header">Header text/image goes here</div> <div id="menu"><iframe name="frame-menu" id="frame-menu" src="menu.php" frameborder="0" height="30"></iframe></div> <div id="main"><iframe name="frame-main" id="frame-main" src="login.php" frameborder="0" width="878" height="700"></iframe></div> <div …

Member Avatar for diafol
0
580
Member Avatar for AntonyRayan

Hi everyone, I am creating a invoice page, for that in the invoice table I have fields like(id, ionvoice_no, invoice_date,client_name,address,service_cost,tax,etc). While I enter invoice, I don not want to enter invoice, but it should change automatically from 1 previously it has to check whether already invoice number is or not. …

Member Avatar for mangel.murti
0
6K
Member Avatar for sanjay@srvmedia

id name class marks 1 H 1 60 2 H 2 50 3 S 1 70 4 S 2 60 5 V 1 55 6 V 2 80 7 K 1 60 8 K 2 70 This is my table structure. I want mysql query to get result like id …

Member Avatar for jj.dcruz
0
296
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 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 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 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 Gl753

I've went over this code a number of times but I can't see where the issue lies. I'm trying to make the age text field numeric only however it won't validate If someone can point what I'm doing wrong here it be greatly appreciated :) <!doctype html> <html> <head> <meta …

Member Avatar for AleMonteiro
0
201
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
527
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 ramsiva

I am getting all instead of am or pm any body help to get am or pm function display_ct() { var strcount var x = new Date() var x1=x.getMonth() + "/" + x.getDate() + "/" + x.getFullYear(); x1 = x1 + " - " + x.getHours( )+ ":" + x.getMinutes() …

Member Avatar for ramsiva
0
244
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
955
Member Avatar for AntonyRayan

Hi, I need a code for downloading a file in doc, docx and image in pdf format in php My code is working in downloading but while opening the I can`t

Member Avatar for jj.dcruz
0
144
Member Avatar for jj.dcruz

Is there anyway i can change this code to a ajax format? $(document).ready(function(){ $("td[contenteditable=true]").blur(function(){ var msg = $(".alert"); var newvalue = $(this).text(); var field = $(this).attr("id"); $.post("update.php",field+"="+newvalue,function(d){ var data = jQuery.parseJSON(d); msg.removeClass("hide"); if(data.status == 200){ msg.addClass("alert-success").removeClass("alert-danger"); }else{ msg.addClass("alert-danger").removeClass("alert-success"); } msg.text(data.response); setTimeout(function(){msg.addClass("hide");},1000);//It will add hide class after 3 seconds }); }); …

Member Avatar for lps
0
329
Member Avatar for mattyd

Hello, I am experimenting with implementing jQuery to validate my form (I hired a programmer one year ago to do this but it seems she made a mess of it so I am attempting to rebuild it.) I have multiple fields in my form and I wish many of them …

Member Avatar for jj.dcruz
0
361
Member Avatar for madmax9922

Hi have this code to manage my main page. Everything works fine on my local server at home,i'm using easyphp. But on my webhosting server i got this error: Warning: scandir(D:\Hosting\12067690\html/,D:\Hosting\12067690\html/) [function.scandir]: Access is denied. (code: 5) in D:\Hosting\12067690\html\index_menu.php on line 65 Any ideas? thank you in advance. <?php $dir …

Member Avatar for broj1
0
2K
Member Avatar for AntonyRayan

Hi, I am displaying brochure from db under that there is a link for all ,called download, if i click that link I want to download, which I clicked,

Member Avatar for jj.dcruz
0
98