39,316 Topics

Member Avatar for
Member Avatar for thanadaray

... <?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 …

Member Avatar for rajengg
0
88
Member Avatar for Exaktor

Hi, Does anybody have a tutorial where I can filter the table data with drop down menu?

Member Avatar for diafol
0
67
Member Avatar for azgold

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"); …

Member Avatar for diafol
0
127
Member Avatar for furlanut

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 …

Member Avatar for furlanut
0
135
Member Avatar for LastMitch

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 …

Member Avatar for LastMitch
1
374
Member Avatar for LastMitch

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."'"; …

Member Avatar for LastMitch
0
162
Member Avatar for Exaktor

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>

Member Avatar for broj1
0
119
Member Avatar for afrogfx

**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.' …

Member Avatar for pritaeas
0
158
Member Avatar for Danny159

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 …

Member Avatar for pritaeas
0
115
Member Avatar for divyakrishnan

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 …

Member Avatar for broj1
0
110
Member Avatar for kaka1990

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 …

Member Avatar for pritaeas
0
261
Member Avatar for Crow77

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). …

Member Avatar for Crow77
0
210
Member Avatar for riahc3

<?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']) …

Member Avatar for riahc3
0
6K
Member Avatar for hwoarang69

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 …

Member Avatar for hwoarang69
0
196
Member Avatar for -==Zero==-

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 …

Member Avatar for -==Zero==-
0
197
Member Avatar for timwhelan

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. …

Member Avatar for johnef_sh
0
545
Member Avatar for jacob21

Hi, In mysql kruti 013 font is not working. I set table Collation:utf8_general_ci Need suggestions. attached document has kruti 013 data.

Member Avatar for diafol
0
338
Member Avatar for sirus23

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(); …

Member Avatar for C#Jaap
0
1K
Member Avatar for Ctechnology24

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 …

Member Avatar for Ctechnology24
0
241
Member Avatar for gabrielcastillo

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)

Member Avatar for gabrielcastillo
0
181
Member Avatar for designalex

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 …

Member Avatar for mschroeder
0
186
Member Avatar for dougsix

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 …

Member Avatar for dougsix
0
179
Member Avatar for sameerge

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 …

Member Avatar for WaltP
0
216
Member Avatar for hwoarang69

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]: …

Member Avatar for |-|x
0
196
Member Avatar for hwoarang69

$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";

Member Avatar for cereal
0
182
Member Avatar for pattmorter

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 …

Member Avatar for diafol
0
168
Member Avatar for Binarydog

Hi all, I'm hoping someone here might be able to give me some advice. My current client has hired me to create a product importer for their shopping cart. The problem I am having is that there is a total of 7,154 products which need to be inserted into the …

Member Avatar for Binarydog
0
189
Member Avatar for Red Dragon

Hi, I have a form which saves a string of text to a database with rawurlencode() which adds things like space characters (%20) and newline characters (%0D%0A), however, when I use rawurldecode() on this string it only decodes the space characters, and ignores all the newlines, by simply printing them …

Member Avatar for diafol
1
575
Member Avatar for missumissu

I tried many times to update a record. when I click update, it pop-up new tab. Then I try change name. When click submit. it show updating is successful but not update it in database. I dont know what wrong.. please help me. list_record.php : [code]<?php $host="localhost"; $username="MY_USERNAME"; $password="MY_PASSWORD"; $db_name="test_create_DB"; …

Member Avatar for Squidge
0
146
Member Avatar for pgmarco

Hello, I am familiar with PHP and MySQL and teaching myself how to create a login script, I am not sure if I am simple missing something or something is worong with the code. I am able to signup a user and submit the data to the MySQL table, It …

Member Avatar for pgmarco
0
324

The End.