39,320 Topics
| |
Hi, Currently I am building a html page that has some fields to search items into database. For the moment I am using 2 files index.html and search.php, in the page index.html I can input the word that I want to search in the database and I send the inputs … | |
Hi, I want to know how to search the inputs provided by the user in the form of checkboxes in a mysql database. <form> <input type="checkbox" name="interests" value="Food"> <input type="checkbox" name="interests" value="Movie"> <input type="checkbox" name="interests" value="Music"> <input type="checkbox" name="interests" value="Sports"> <input type="checkbox" name="interests" value="Reading"> </form> I have other input elements … | |
Hi, when a user login, i want yo use his session username to query a secific database. I am trying to use the code below but it is not working. $username=$_SESSION['username']; can someone help me. | |
Hi, I have a checkbox in my form and want to see the changes to it in next page but the problem is if I un-check a checkbox then the $_POST variable will not include it in next page so I won't be able to the changes. Any idea for … | |
... <?php $sql_display_words="SELECT * FROM Data1stWord"; while($row = mysql_fetch_array($sql_display_words)) { $ID = $row['ID']; $Word = $row['Word']; ?> <td><?php echo $ID ?></td> <td><?php echo $Word ?></td> <?php } ?> ... I tried to display data from database (Id and word) in table but it show blank in my table. Did I … | |
Hi, Does anybody have a tutorial where I can filter the table data with drop down menu? | |
Im having a issue with comparing dates below is the code. it shows all rows even dates that have passed todays date. The Date field is set as date in sql. <?php $con = mysql_connect("localhost","myusername","mypassword"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("mydatabase", $con); $todays_date = date("Y-m-d"); … | |
I am trying to retrieve Mysql data, populate a form, user amend/delete fields, UPDATE and return data to database. It is the last stage that does not happen. I press UPDATE RECORD and screen returns to ID input. Where have I gone wrong, please ? <?php // require_once 'dbconnect.php'; if … | |
| Hi I have a question. I don't know where to started. I recently installed **CKEditor** and would like to know how to create a **Archive** page. It's kinda like a blog but for me it's kinda neat using the **CKEditor**. For example: Article: Hi ... page. I want to save … |
| Hi I'm getting **mysql_fetch_array() expects parameter 1 to be resource, boolean**, I check the white space and maybe some can tell me what I did so I can corrrect the mistake. Thanks <?php session_start(); header("Cache-control: private"); require_once ('../include/init.php'); include_once("../ckeditor/ckeditor.php");?> $page = $_GET['page']; $sqlcats="SELECT * FROM pages WHERE pagename = '".$page."'"; … |
I have this drop down menu but I want to select its value and run a SQL-query with php. How do I do that? <select name="SelectMake"> <option value="make">Make</option> <option value="toyota">Toyota</option> <option value="honda">Honda</option> </select> | |
**i need help in my code !! ** <?php echo $prev.' '.$next;?> **when open this page need make next and prev in link ? how can i do it ? I need my link Like It to show in body (Div ) ! how can i make it ** <?=$prev.' … | |
Hi Guys, I have the following code in a massive string... but there all different: ##component5#?1,4,1## They all start with ##component and end with ## but the bit in the middle can be anything... and I need to remove this text completely from the string... What would be the best … | |
I have tried to connect to ftp server it windows. It works well with. But when I used the same with red hat i was unable to connect to server. ftp service is already running in redhat. $con_id=ftp_connect("192.168.0.8")or die("Couldn't connect to"); ; $login_result = ftp_login($con_id, "newuser", "wampp"); // check connection … | |
I add a html page to the php website. After added, the webpage can run correctly, but thers is a line said Fatal error: Class 'EquipmentPage' not found in E:\2012\SIM Suite Project\wamp\www\test1\Web\equipment.php on line 7 at the bottom of the page. Can any one help me solve this problem. equipment.php … | |
I need to select a value on a MYSQL table using PHP. Basically I have PDATE column (which I need to make sure it's today's date) then STKNO column (if the value there is 11, then it's Price Index and if the value there is 10 then it's Weighted Index). … | |
<?php foreach ($_options as $_option) : ?> <input id="xyys" type="hidden" name="xyys" value="<?php echo($_option['value']);echo ($_option['option_id']);?>" /> <?php if($_option['label'] != 'Corte'): ?> <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?> <dt><?php echo $this->htmlEscape($_option['label']) ?></dt> <dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>><?php echo $_formatedOptionValue['value'] ?> <?php if (isset($_formatedOptionValue['full_view'])): ?> <div class="truncated_full_value"> <dl class="item-options"> <dt><?php echo $this->htmlEscape($_option['label']) … | |
so i got 3 tables. user, image, comment user -> user_id user_name password image->image_id user_id image image_name comment-> comment_id user_id image_id comment and image, comment are store in database i got a gallery.php. here user will click on this image <a href=\"zoom.php?img={$row['image_id']}\"><img src=\"$src\" width='130px' height='130px' class='image_p' /></a> wich will lead … | |
Hello Everyone Iam Exporting All My Data From Mysql To Txt File With This Code <?php $sql2 = mysql_query("SELECT * FROM export INTO OUTFILE '/Zero.txt' FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n'"); ?> I Need To Edit The Code So It Export The New Data I Insert In MySql … | |
I am trying to build a query that will display the Amount of people that signed up in a certain month. I am adding the date_time to the database at the time someone signs up for a course. I want to display the months and total sign-ups for the month. … | |
Hi, In mysql kruti 013 font is not working. I set table Collation:utf8_general_ci Need suggestions. attached document has kruti 013 data. | |
OK it deserts this to put it in a new thread. I've found this: using System; using System.Net; using System.Web; using System.Collections; using System.IO; namespace WebRequestExample { class WebPostRequest { WebRequest theRequest; HttpWebResponse theResponse; ArrayList theQueryData; public WebPostRequest(string url) { theRequest = WebRequest.Create(url); theRequest.Method = "POST"; theQueryData = new ArrayList(); … | |
guys can anybody tell me how to implement a captcha in codeigniter 2.1.0 and what should I use, the captcha helper library or recaptcha? because I dont know if i can use recaptcha even if I don't have a domain because I'm using a local server. is it ok if … | |
How do i get value from this return? Im looking to get the value of 2. array 79 => object(stdClass)[356] public 'parent' => int 8 public 'type' => string 'meta' (length=4) public 'name' => string 'limitcounter' (length=12) public 'value' => string '2' (length=1) | |
Hi all, ive searched the site but couldnt find an answer, so here goes: a client has a 2 websites displaying products, if they add/update/delete an entry on the 1st site they should have the option to choose whether or not to update the 2nd site, and vica versa. Each … | |
A web site I'm trying develop has several pages that won't open unless the user is logged in. If not logged in, the user is redirected to a login page that tells the user why they were reditrected. Prior to the redirection, a SESSION variable stores the path back to … | |
Hi I need the answers one of my two questions which were asked by our teacher in class room. Q1. Languagess are system software or application software? Q2. In which software the languages are written? for example in which software the c++ language is written? plz give your answer with … | |
image store in database long blob tying to work on upload.php page. where user can upload images. it works fine but when user upload a image size in mb's it give me 3 errors. Warning: mysql_query() [function.mysql-query]: MySQL server has gone away in C:\xampp\htdocs\a_upload\upload.php on line 69 Warning: mysql_query() [function.mysql-query]: … | |
$file = isset($_FILES['fileupload']) ? $_FILES['fileupload']['tmp_name'] : false; $image = chunk_split(base64_encode(file_get_contents($_FILES['fileupload']['tmp_name']))); //store image in $image //need help here nothing prints $exif_ifd0 = read_exif_data($image,'IFD0' ,0); $notFound = "Unavailable"; if (@array_key_exists('Make', $image)) { $camMake = $image['Make']; } else { $camMake = $notFound; } echo"$camMake"; | |
Hey everyone. I was learning how to make a simple content system for my website today and I was following along the code at [css-tricks.com](http://css-tricks.com/php-for-beginners-building-your-first-simple-cms/) and when I was all finished, I got this error saying: `Parse error: syntax error, unexpected $end in /home/gosports/public_html/gsbadmin/_class/simpleCMS.php on line 107` I read up … |
The End.