52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for vishalonne

Hi I just wan to to pass the value of Input Type File html tag to a 2nd PHP page where I will insert the image in mysql but I am always getting a notice and isset() is not getting the $_FILE('IMAGE'). Here is the notice - `Notice: Undefined index: …

Web Development file-system php
Member Avatar for vishalonne
0
1K
Member Avatar for MB.ShadowFox

Hi all, I'm pretty new here but I do have "some" knowledge of sql and PhP, I'll start by telling you what I have and then ask what I need. What I have: I have a database which holds multiple tables, the one in question is called storage.sql The table …

Member Avatar for MB.ShadowFox
0
288
Member Avatar for vivekanandaan

I am using VS2010 and created a database using SQL server residing in VS2010. the database is stored in the folder APP_DATA with an extension .mdf My PC name is rvivek and it resides in a domain. below is my connection string. myConnection = New SqlConnection("server=rvivek; uid=; pwd=; database=Database1.mdf;") when …

Web Development asp.net
Member Avatar for MikeSmithDev
0
127
Member Avatar for sannidhikumar99

hai! i am trying to check a character with another character which are in the same text box. when we are entering date,date in the first text box and month in another text box and year in another text box. now i want when i am trying to enter '0'in …

Web Development javascript
Member Avatar for phoochaliaw
0
158
Member Avatar for hueylouis

Can anyone assist me. I keep getting and error stating that the Column count doesnt match row 1. I have counted all of my fields and referenced all of them but still no dice. $con=mysql_connect($host, $username, $pass); if(!$con) { die("Could Not Connect: ".mysql_error()); } mysql_select_db($db); $CustLName=$_POST['CustLName']; $CustFName=$_POST['CustFName']; $CBR=$_POST['CBR']; $AcctNum=$_POST['AcctNum']; $CustCode=$_POST['CustCode']; …

Web Development mysql php sql
Member Avatar for doubleN
0
660
Member Avatar for PwNmeNami

Error Preview : http://botiman.phc.my/komen.php Warning: file_get_contents() [function.file-get-contents]: Couldn't connect to server in /home/u763744738/public_html/komen.php on line 163 Warning: file_get_contents(https://api.facebook.com/method/stream.addComment?post_id=100000744171962_491171407584327&comment=apapun+statusnya%3F+jempol+iwan+slalu+mampir+di+status+Awang+Ashraf%0A%0A%5B+Jam+%3A+6%3A24+pm+%5D%5B+Minggu+%5D%5B+Tgl+%3A+4%2F11%2F2012+%5D&access_token=AAAFppwP1iJYBAKZAmaHhSyydzDuZBh7B00nIO6YxfrwnutzQycNdso1lnW2raRcGR5c8iDc2hNNZCgssXJ8d6lYPWfjFOAnB62VzGk5MNnoLtmXXzvr) [function.file-get-contents]: failed to open stream: operation failed in /home/u763744738/public_html/komen.php on line 163 Warning: file_get_contents() [function.file-get-contents]: Couldn't connect to server in /home/u763744738/public_html/komen.php on line 163 Source Code Is <?php ##############config#################### $bot['like'] = true; …

Member Avatar for pritaeas
0
300
Member Avatar for davidp994

I have code which displayed a person's info in a table(fields:name, surname, address, etc.) and one of the inputs is a checkbox. The code is as follows: $("#table").append('<tr class="trow'+j+'">'+ '<td class="ids" id="z'+i+'">'+totrecs+'</td>'+ '<td>'+member[i].jdate+'</td>'+ '<td class="users" '<td id="contact'+i+'">'+member[i].fname+' '+member[i].lname+'</td>'+ '<td id="myaddress'+i+'">'+member[i].address1+' '+member[i].town+'</td>'+ '<td><input type="checkbox" name="whome" id="showMe'+i+'"'+ 'class="boxes" onclick="getMe('+i+')" /></td></tr>'); totrecs++; j++; …

Web Development javascript javascript-jquery
Member Avatar for radow
0
174
Member Avatar for flynismo

Hi all, I'm pretty new to jQuery, and have no idea where to start with this issue that I am having. What I am trying to do is this: On my website, members are allowed to send messages to each other. What I would like to happen is that when …

Web Development javascript
Member Avatar for pritaeas
0
189
Member Avatar for Khav

Hello guys , I am getting crazy with this html thing , i just don't know why its not working as expected. Basically i need to display php variable in html Let see the code.... Suppose i have this <?php for($x = 0;$x <count($_FILES['image']['name']);$x++) { $url = something; } //The …

Web Development html-css php
Member Avatar for adam.adamski.96155
0
413
Member Avatar for DEAD TERMINATOR

I am working on a drag and drop tic tac toe game. I had everything working, including the function to check for a winner. Then I added a function to deal with which player's turn it is with the idea being that whichever player's turn it isn't, their images are …

Web Development html-css image javascript
0
120
Member Avatar for tapuwa2002

How do you ping an ip addresses in php. and give the the results as if you are on cmd program in windows <?php system(‘ping -c 192.168.0.104’); // Ping IP address. echo “pinged”; ?>

Web Development lan-wan php
Member Avatar for Lucaci Andrew
0
327
Member Avatar for andyy121

i have wrote some html and php my form doesnt work so fine i cant find my error if somebody doesnt mind here is the code.

Web Development php
Member Avatar for ehpratah
0
181
Member Avatar for Albert Pinto

Hi People, got a small issue. I have 3 select boxes, I mean dropdown list country dropdown list... then a state and then a town... I'm fetching data from database and loading it in the first dropdown list (country) On change of country, states get loaded and on change of …

Web Development javascript-jquery php
Member Avatar for Albert Pinto
0
1K
Member Avatar for vizz

For following code I am receiving error, **Notice: Undefined index: page** Code is running perfectly but there is only one error of notice. I have marked line as *//this is error part* for which I am getting error (line number 19 or 20) <?php /*Place code to connect to your …

Web Development php
Member Avatar for vizz
0
149
Member Avatar for ttkh2011

I'm trying to pass the youtube URL to the embed src. It's working in Firefox but not IE or Chrome. Can someone please help me? <script> function videoplaying() { var myvideo = "http://www.youtube.com/v/2wBe3SDCcz8"; var myEmbed = document.getElementById("myvideo"); myEmbed.setAttribute("src", myvideo); return false; } </script> <a href="javascript:void(0)" onclick="videoplaying();">Video</a>

Web Development javascript
Member Avatar for Sogo7
0
126
Member Avatar for angelali2013

Ok, this is not a question where I am having issues, but seeking an advise from you on JQuery plugin development. We have to agree, there are many JQuery plugins in different categories such as image gallery, form validations, effects and so on. I was about to create a basic …

Member Avatar for AleMonteiro
0
237
Member Avatar for Djmann1013

This is the code I am having trouble with: <?php mysql_connect('localhost', 'username', 'password') or die(mysql_error()); mysql_select_db('database') or die(mysql_error()); $posts = mysql_query("SELECT * FROM `wp_DevBlogposts` ORDER BY `wp_DevBlogposts`.`post_date` DESC LIMIT 2") or die(mysql_error()); while($row = mysql_fetch_array($posts)){ $post_name = $row['post_title']; // Post Name/Title $post_content = $row['post_content']; // Post Content $url = $row['guid']; …

Web Development php
Member Avatar for LastMitch
0
280
Member Avatar for DarkMonarch

Hey, been awhile. I'm working on a portal for distributors, some type of JIT (just in time) implementation. Now i've been reading alot on DB so i can implement the right database and the right data structure. Now i see, i can do alot more then i'm use to do. …

Web Development java php python
Member Avatar for madCoder
0
154
Member Avatar for vipmo

I have this source code below where by I have a gridview and on edit/ add a formview appears as a popup. My problem is that the insert and edit are not working. Any ideas on how to fix this problem?? <cc1:ToolkitScriptManager ID="ScriptManager1" runat="server"></cc1:ToolkitScriptManager> <asp:Panel ID="newpnl" style="display:none;background:#F0F0F0;" runat="server"> <div style="position:absolute; …

Web Development asp.net
Member Avatar for vipmo
0
353
Member Avatar for andyy121

<form action="index.php" method="post" enctype="multipart/form-data"> File: <input type="file" name="image"><input type="submit" value="Upload"> </form> <?php //connect to db mysql_connect("localhost","root","")or die(mysql_error()); mysql_select_db ("databaseimage")or die (mysql_error()); @$file =$_FILES['image']['tmp_name'];//kjo eshte e lidhur me <input type="file" name="image"> if (!isset($file)) echo ("Please select an image"); else { $image= addslashes(file_get_contents ($_FILES['image'] ['tmp_name'])); $image_name = addslashes($_FILES['image']['name']); $image_size = getimagesize ($_FILES['image'] …

Web Development image php
Member Avatar for andyy121
0
198
Member Avatar for watonca

I'm new to PHP and trying to populate the contents of a flat file to a dropdown box. Clearly haven't a clue what I am doing, but here is what I have tried so far. The first part is there to confirm that I am actually opening the file and …

Web Development php
Member Avatar for diafol
0
826
Member Avatar for fabzster

Hi I managed to get the tutorial from the below link to work. http://www.blueicestudios.com/chained-select-boxes-using-php-mysql-ajax/comment-page-11/#comment-34199 I would love to know how to edit this script so as to get the first dropdown to populate an already existing dropdown without the loader image and without the hiding of any dropdowns. I would …

Web Development javascript mysql php
Member Avatar for AleMonteiro
0
217
Member Avatar for Riu 2009

hi php geniuses :) a simple question for u ppl here's my code and i want to upload all files i.e. images, videos, audios, ppt, pdf etc but here ican only upload the images successfully.. when i upload audio file it gives following error. please check my code and suggest …

Web Development audio file-system pdf php video
Member Avatar for Riu 2009
0
2K
Member Avatar for Riu 2009

hi php geniuses!! just wanted to ask that is this possible to embed ppt slides onto the webpage without converting the ppt into flash or without using skydrive??? please suggest a simple and clear solution.thanks in advance...

Web Development php
Member Avatar for Riu 2009
0
163
Member Avatar for AndreRet

I have the following scenario - User clicks on an image to search for a particular brand vehicle. The value of that image must then go the hidden box where I will post the value returned to another form. I just can't seem to get the value returned... My code... …

Web Development image php
Member Avatar for AndreRet
0
243
Member Avatar for mbarandao

Hello: I have the following div popup window: <div id='PopUp' style='display: none; position: absolute; height: auto; left: 13px; top: 10px; border: solid black 1px; padding: 10px; background-color: rgb(255,255,225); opacity:.95; text-align: justify; font-size: 12px; width: 70%; z-index:1200;'> <iframe id=\"mate\" frameborder=0 scrolling=yes width=100% src='client_edit/edit_client_data.php?customerid=$customerid' height=\"790\" align=\"left\"></iframe><br /> <div valign=\"top\" style='text-align: right; display: …

Web Development java-jsp
Member Avatar for rkrockr
0
695
Member Avatar for Eggstraordinary

it seems i can't output my username value from my database. All it gives was also a value of "username". So if i'm echoing my variable $users which is holding the rows of my username from my database, it strangely outputs "Welcome, username". I tried also with my password but …

Web Development mysql php
Member Avatar for Eggstraordinary
0
131
Member Avatar for Master Mascus

Hey guys i have been assigned a work of designing a online shoe shop. I am stuck on the part of saving the chosen products on a session vaiable (rather an array) can anyone help me out to give me an idea how to proceed.

Web Development asp.net ecommerce session
Member Avatar for JorgeM
0
232
Member Avatar for HunainHafeez

i am trying to do something like this but it gives me error that **cannot convert int to string** , even the field which i am accessing from db is int and i parsed it into int but why ? here is my code: userId = (int)com.Parameters["@ReturnValueUserId"].Value; Response.Write(userId); SqlDataSource1.InsertParameters["@userId"] = …

Web Development asp.net mssql
Member Avatar for roopeshpm
0
379
Member Avatar for Squit

hello! for the newline we have the fuction nl2br() but what about BOLD text.. underline or italic ?! is there a way to convert that rich text in to HTML? [B]bold[/B] into <b> bold </b>... ??

Web Development php
Member Avatar for SautinSoft
0
2K
Member Avatar for web developer

Hi all I have a problem in paging datagrid .. I have a datagrid and i have template columns in it - is that affect on paging ? , so why paging doesn't work . i tried the following code after allowing paging to datagrid: private void DataGrid1_PageIndexChanged(object source, System.Web.UI.WebControls.DataGridPageChangedEventArgs …

Web Development asp.net
Member Avatar for bilal talal
0
215
Member Avatar for PriteshP23

I want to display message box. I don't know why it is not working. Instead of "Already Registered..!!" message it displays " Duplicate entry 'test' for key 'nom' " . Thanking you in advanced. $query = " SELECT * FROM Humeur_log WHERE prenom = '".$prenom."' AND nom = '".$nom."' AND …

Web Development javascript php
Member Avatar for PriteshP23
0
152
Member Avatar for bradly.spicer

Hello, I'm looking into making an account validator for wordpress which runs off a validator for another server. Shown here: http://www.minecraftwiki.net/wiki/User:Oxguy3/Minecraft.net_API It's running in Wordpress and I just wanted to ask for your opinions on how to do this. The idea I had is that the username they signed up …

Web Development api php wordpress
Member Avatar for bradly.spicer
0
124
Member Avatar for branding4you

What am i doing wrong, It works when I hard code it, but when I try get the names from MySql it gives me the finger, cannot access docs OR it sends the mail wth no attachemnts is there a better way or something that I am missing, Look my …

Web Development mysql pdf php
Member Avatar for branding4you
0
101
Member Avatar for php_noob

My article title is a bit misleading but since it is my primary concern so I made that my title. Anyway, this is the problem I have form and it generates a list of people that is needed to be scheduled. this is (more-or-less) the code. <?php $strQuery = "your …

Web Development php
Member Avatar for adam.adamski.96155
0
155
Member Avatar for geneh23

Hey everyone, So I'm starting a new thread because my other thread was solved and I had forgotten it was. Anyway, I am creating a forum stite from scratch as a side project and I have a main forum page that "includes" two tables that get data from three different …

Web Development php sql
Member Avatar for LastMitch
0
145
Member Avatar for tonyfonseca

I have the following code to search the stores by name and and order by transaction date by Asc which works perfect. My questions is how to performe a subtraction by row (checkamount-redeposited-replacement-paidcash = balance) and totalize by columns (total checkamount, total redeposited, total replacement, total paidcash and total balance) …

Web Development php seo
Member Avatar for tonyfonseca
0
302
Member Avatar for NoUserNameHere
Member Avatar for Dino000

Hello. I've been through dozen of tutorials about regex, and obviously still don't understand everything. I'm trying to get data (a whole DIV field and its contents) from another website, and display it on my page. It seems to get everything, but the DIV field. This is what I want: …

Web Development php regex
Member Avatar for LastMitch
0
294
Member Avatar for jayson.ako

i want to make a crical repot that notifies the admin if the products in inventory is running out lol. need some help :) <?php include ('config.php'); ?> <?php $result=mysql_query("select * from inventory"); $num=mysql_num_rows($result); $qtyleft=['qtyleft']; $name=['name']; if($qtyleft <= 5){ while ($row=mysql_fetch_array($result, MYSQL_ASSOC)){ echo '<span>'.$name.'</span>'; echo "almost out of stock"; }} …

Web Development php
Member Avatar for jayson.ako_1
0
128
Member Avatar for branding4you

I have a page that has to display how many documents the user has given in for him to recieve commission I tried count but it gives me totals, Im new to sql "count" and "group" tabel has three fields: id, user, date, refnum 1 - mike - 2012/01/01 - …

Web Development php
Member Avatar for pritaeas
0
1K
Member Avatar for joshmac

I have a plugins system with update notification. The update notification works, but I made some changes so that the script will execute every hour instead of everytime the page loads. This is handled by the (time() + 3600) being written to a check.cfg file. I wanted to to cut …

Web Development php
Member Avatar for joshmac
0
201
Member Avatar for coder91

Have a drop down list that is populated using a stored procedure, however instead of the first value constantly showing I would like to have a default value saying "Please select" not sure how i do this though.

Web Development asp.net
Member Avatar for JorgeM
0
191
Member Avatar for coder91

Hi I have a gridview with a select button that when the user hit's It will take them to a new page. Just wondering how I do this? Thanks in advance.

Web Development asp.net
Member Avatar for JorgeM
0
102
Member Avatar for johnjo

I am trying to update a edit profile in mysql. the first bit of code is when the submit button on forum is hit the data in my table users willl change. the secound bit code get the user info from the database it work fine you can select what …

Web Development mysql php
Member Avatar for LastMitch
0
227
Member Avatar for Eggstraordinary

I'm trying to clear a value in a textbox whenever i click the clear button. But i keep on getting a syntax error expected "=" in the line document.getElementByid. Is my code wrong? <?php function clear(){ document.getElementByid('textinput').value=""; } if (isset($_POST['textinput'])){ echo $_POST['textinput']; } if (isset($_POST['clear'])){ clear(); } ?> <form action="index.php" …

Web Development php
Member Avatar for Eggstraordinary
0
394
Member Avatar for McLaren

Hello, could you explain me why in my code it does not work when I put the ball with the mouse inside red road path. http://pasteboard.co/BtiWYXE.png I think it 'thinks' that the space inside red is not empty and pushes the ball out. What could I do? http://images.thumbshots.com/image.aspx?cid=1162&v=1&w=300&url=http://www.html5canvastutorials.com/labs/html5-canvas-physics-engine-with-curve-detection/ I was …

Web Development javascript
Member Avatar for McLaren
0
257
Member Avatar for adishardis

Hi, I'm trying to format an array like this: `[['Apr,2012', 5],['May,2012',10],['Jun,2012',20],['Jul,2012', 13]]` from this: while ($row = mysql_fetch_assoc($result)) { $dates[] = date("M,Y", strtotime($row["Datum"])); $data[] = $row["forsta"]; } But I don't know how to combine them in the right format?! Any hints on how to accomplish this? /Adam

Web Development php
Member Avatar for adishardis
0
114
Member Avatar for amith_ami

hi guyz, pls help... what does this warning means??? is there any alternative for implode();? Warning: implode() [function.implode]: Invalid arguments passed in /home/tjconsul/public_html/admin/actions/act_addcandidate1.php on line 40

Web Development php
Member Avatar for adam.adamski.96155
0
2K
Member Avatar for hwoarang69

i spent about 1 to 2 months building a php website on my localhost. i feel like its finish and i would love to put it online for whole world to see it. on this site iam also using xampp database to keep track of user and passwords. note i …

Web Development php
Member Avatar for pritaeas
0
250

The End.