52,566 Archived Topics

Remove Filter
Member Avatar for
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"); …

Web Development php sql
Member Avatar for diafol
0
129
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 …

Web Development php
Member Avatar for furlanut
0
136
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."'"; …

Web Development html-css mysql php
Member Avatar for LastMitch
0
164
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>

Web Development php
Member Avatar for broj1
0
120
Member Avatar for Maha Sh.

Hi all, I am trying to write a code for logout, and I want to clear session My code Protected Sub Button2_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button2.Click Session.Abandon() Response.Cookies.Add(New HttpCookie("ASP.NET_SessionId", "logAccount")) Response.Redirect("WebForm5.aspx") End Sub and i want to disabling browser's to go back please hellp !!!!

Web Development asp.net session
Member Avatar for hericles
0
164
Member Avatar for shers

Hi, I'm quite new to Web Development. I'm creating a web site and it has a Registration Page where I managed to create the form. But when the user clicks on the 'CreateUser' button, how do I display a message on the form to show that the User is created. …

Web Development asp.net
Member Avatar for androtheos
0
698
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.' …

Web Development php
Member Avatar for pritaeas
0
164
Member Avatar for riahc3

Hey Im using Web Storage for my website and it seems to work locally but not online. Ive tried different thigns (which I shouldnt because it should just work) but it seems not to work. The only conclusion I can come to is that it has been disabled server side. …

Web Development javascript storage web-server
Member Avatar for riahc3
0
111
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 …

Web Development php
Member Avatar for pritaeas
0
118
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 …

Web Development php redhat
Member Avatar for broj1
0
113
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 …

Web Development html-css php
Member Avatar for pritaeas
0
264
Member Avatar for ravidaniweb

hi this is my connection string SqlConnection conn = new SqlConnection("Data Source=RAVI-PC\\SQLEXPRESS;Initial Catalog=personals;User ID=sa;password=sa;Integrated Security=True"); SqlDataAdapter da = new SqlDataAdapter(" select * from table_2", conn); DataSet ds = new DataSet(); da.Fill(ds, "table_1"); conn.Open(); Actually my doubt is how to insert(data entered in texbox) and delete and update view record from …

Web Development asp asp.net dataset open-source
Member Avatar for nuevoenjava
0
227
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). …

Web Development mysql php
Member Avatar for Crow77
0
217
Member Avatar for mani508

hello i want to add two buttons in page like and dislike .. user can like only one time also shows the values of likes pressing button(means like counter value show) and if user dislike then decrement in likes value how its posssible in asp.net using c#?

Web Development asp.net
Member Avatar for bharat_4g
0
1K
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']) …

Web Development javascript php
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 …

Web Development html-css php
Member Avatar for hwoarang69
0
198
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 …

Web Development php
Member Avatar for -==Zero==-
0
203
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. …

Web Development mysql php
Member Avatar for johnef_sh
0
565
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.

Web Development php
Member Avatar for diafol
0
367
Member Avatar for UtaChan

Ok I simply don't know how I am going to do this here is what I need: I have exercises in my db (question id,question text field,close/open(bool) field,right answer field and 3 wrong answer fields which are null unless it is a closed question) What I want to do is …

Web Development asp asp.net
Member Avatar for bharat_4g
0
236
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 …

Web Development php
Member Avatar for Ctechnology24
0
291
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)

Web Development php
Member Avatar for gabrielcastillo
0
187
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 …

Web Development php
Member Avatar for mschroeder
0
187
Member Avatar for sa1n

hey guyz I'm new to web development just makeing site for my dad's office...doing just by goggleing n sites like dis... its my product page displays wht we sell on clicking an product a page opens giving details about dat product... but its getting around 70-80 pages....is it possible to …

Web Development
Member Avatar for sa1n
0
182
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 …

Web Development http-protocol php session
Member Avatar for dougsix
0
188
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]: …

Web Development image php
Member Avatar for |-|x
0
197
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";

Web Development php
Member Avatar for cereal
0
191
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 …

Web Development cms php
Member Avatar for diafol
0
172
Member Avatar for mbarandao

Good day all: I'm wondering how does one go about excluding a particular item on a form from being taxed? I have a check box, which onclick, calculates the sales taxes on all items on the form. to perform the tax calculation, I'm using: var tax = ($('#taxbox').attr('checked')) ? (subtotal …

Web Development javascript
Member Avatar for dany12
0
113
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 …

Web Development mysql php
Member Avatar for Binarydog
0
192
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"; …

Web Development php
Member Avatar for Squidge
0
148
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 …

Web Development mysql php session web-browser
Member Avatar for pgmarco
0
325
Member Avatar for dany12

I want to change the radio button color when i slect them and then change them back to default when I deselect them I have made some code but this is not working as it should be $(document).ready(function(){ $(':radio').click(function(){ if($(this).not(:checked)){ ($this).closest('td').css('background','none') } else{ ($this :checked).closest('td').css('background','red') } )} });

Web Development javascript
0
89
Member Avatar for harshm027

Hi, I have a form with various elements such as ids, location. I need to pass these values to a php file through a javascript function. Right now I am able to pass only ids. The Form <form action="display.php"> <label>Your ID</label> <input type="text" id="ids" name="ids" value=""> <label>Location</label> <select name="location" id="location"> …

Web Development javascript
Member Avatar for jstfsklh211
0
179
Member Avatar for rakibtg

hi, my email form is written in php, it does not support multiple languages i mean unicode fonts. it shows something like this: খোলা জানালা . In this case what i should do.

Web Development email php
Member Avatar for diafol
0
221
Member Avatar for hwoarang69

here iam checking if the image size is in mb's than i want to reduce the image to kb's. iam not sure how to do this. the if statment works fine. but i need halp inside. $image = chunk_split(base64_encode(file_get_contents($_FILES['fileupload']['tmp_name']))); //store image in database. long blob if(strstr($file_size,'M')) //mb's { $upload_error .= …

Web Development image php
Member Avatar for pritaeas
0
230
Member Avatar for dagtad

I'm using windows 7 and wamp server on my computer. I want to send email from my local host and i write the php code like the following <?php $to = 'dagtade@gmail.com'; $subject = 'test_subject'; $message = 'test_message'; mail($to,$subject,$message); ?> the above code neither displays error message nor sends the …

Web Development email php
Member Avatar for pritaeas
0
112
Member Avatar for veledrom

Hi, I see some website URLs have hash values attached to them. Is this for security reasons? If so, how do we benefit from that approach? example: h-t-t-p://w-w-w.mysite.com/forums/search/results/3400faebf7f6e0b549751ca029026a61/ Thanks

Web Development xml
Member Avatar for pritaeas
0
137
Member Avatar for divyakrishnan

I used the code given below to take the count of files in a folder which is in another machine. On my localhost the glob() is working fine, BUT on the server it displays the array size as 0. $dir_path ="http://192.168.0.202/img/$sub_code/$sub_code".N."$churunano/*.jpg*"; $count = count(glob($dir_path)); How to find the count of …

Web Development php
Member Avatar for pritaeas
0
291
Member Avatar for wussa

Hi, I am running this [URL="http://checkpagerank.ws"]Check Page Rank[/URL] site There is just one prob left with the code. When I submit a domain for analysis if the domain doesn't have a history at archive.com it come out error like this Example [URL="http://checkpagerank.ws/?txt_url=http%3A%2F%2Ftl.my&Submit="]result[/URL]~ If result with archive.com is successful like this …

Web Development php
Member Avatar for ragufiles
0
876
Member Avatar for UtaChan

Here is the code (content is the name of my <div>): foreach (Exercise ex in exs) { Label label = new Label(); label.ID = Convert.ToString(ex.ex_id); label.Text = ex.ex_text; TextBox textbox = new TextBox(); textbox.Width = 100; textbox.ID =Convert.ToString(ex.ex_id); id_counter++; content.Controls.Add(label); //content.InnerHtml += "<br />"; content.Controls.Add(textbox); } It crushes on the …

Web Development asp.net
Member Avatar for UtaChan
0
179
Member Avatar for hwoarang69

trying to print last image from database. my image type is long blob. note this is all one file. //first get the last id in database and get last image form database <?php $lastid = mysql_insert_id(); $image = mysql_query("SELECT * FROM image WHERE user_id = $id ORDER BY image_id DESC"); …

Web Development image php
Member Avatar for muralibobby2015
0
127
Member Avatar for newbie1234

in php i insert some data into database. In database s_no automatic increase when any data instered. I want to get that s_no. how do i get it.

Web Development php
Member Avatar for newbie1234
0
108
Member Avatar for khajvah

Hello ppl, I am learning PHP. I already know some programming languages, so i didnt read whole book i had, but after i read part of the book, i understood that i get the information but can not use it, so my question is-Is there any videos or books, which …

Web Development html-css javascript php
Member Avatar for Red Dragon
0
318
Member Avatar for drjay1627

Hello, I created 2 lightboxes on my page. When I just had one, everything worked fine. The 2 lightboxes are not displayed at the same time. There are 2 links that open each respectly. <a href="#" class="lightbox1">Open box 1</a> <a href="#" class="lightbox2">Open box 2</a> The following is the HTML/CSS: <div …

0
106
Member Avatar for hwoarang69

i am store image in database by using long blob. here is my code for that $file = isset($_FILES['fileupload']) ? $_FILES['fileupload']['tmp_name'] : false; ... $query = mysql_query("Select * FROM image WHERE image_short_name = '$image_short_name_p' AND user_id='$id'"); $image = chunk_split(base64_encode(file_get_contents($_FILES['fileupload']['tmp_name']))); $image_width_height = getimagesize($_FILES['fileupload']['tmp_name']); $insert = mysql_query("INSERT INTO image VALUES(NULL, '$user_id_db', '$image', …

Web Development php
Member Avatar for diafol
0
203
Member Avatar for rori

hi, i posted this in the javascript forums but didn't get any replies, maybe this is a better place. i have a website for properties (rent, sell, etc), using php and mysql. i allow the admin to manage existing properties by selecting the property id from a dropdown that lists …

Web Development javascript mysql php
Member Avatar for marsystsm123
0
2K
Member Avatar for atlachar

Hi, I have an aspx page in that when i select check all option and when i click on submit its popping an error message length of the query string exceeds th max query string value.so i have done lot of modifications on web.config file none of the changes are …

Member Avatar for aquamarine_kath
0
1K
Member Avatar for aquamarine_kath

I want to display values in a listview within another listview. I already displayed values in the parent listview(lvPackage) but I don't know to insert values in the child listview. I'm using mysql. My only problem is that I don't know how to display values lblPackAct in child listview(lvPackAct). Here's …

Web Development asp.net listview
0
156
Member Avatar for hwoarang69

this page just load random images from database. problem is that this page take like 10sec to load. which is too slow. is there any thing i can do to load it faster. note i want store image in database. <?php include("include/header.php"); //check, if user is loged in or not …

Web Development php
Member Avatar for diafol
0
1K

The End.