17,029 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for ankit.pandey3

[CODE]<?php require_once('database.php'); $query="select * from news"; $result=mysqli_query($dbc,$query); while($row=mysqli_fetch_array($result)){ $Title=$row['Title']; //$Content=$row['Content']; echo $Title; echo "<a href=''>$Title</a><br>"; } ?>[/CODE] [QUOTE][B]Hi friends.... [B]I have a table named news which contain columns such as Title, Content,NewsId and many more. I want to display titles in form of link and [COLOR="Red"]when we click any link …

Web Development display php
Member Avatar for mahavir123
0
206
Member Avatar for Lapixx

Hi, I'm working on a project which requires some sort of 'connection' between 2 (or more, actually) clients. Basically one person should be able to send data to another person with their webbrowser, somewhat comparable to a instant message system. My first idea was using XHRs to send data to …

Web Development client-server php
Member Avatar for Lapixx
0
85
Member Avatar for phpDave

Hi, recently I have been working on a file upload script that users can upload an image. I got it to work but I am stuck on how to let user update or change the image they upload. I would like this to work kind of like facebook photos work. …

Web Development php
Member Avatar for vibhaJ
0
54
Member Avatar for diafol

I've just landed myself in it. I offered to help out with a programming club at our school. Doh! The school is lumbered with VB6. I refuse to dirty my hands with it - the last time was about a 1000 years ago. I proposed to do a starter on …

Web Development apache ide php
Member Avatar for sudeepjd
0
141
Member Avatar for diafol

Hi folks, getting a problem adding name/values to make an array to pass to php. I've got a number of inputs named [B]week_start_x[/B] (where x is an integer ranging from 1 to a dynamic number [generated through php] - the max no. is determined by another field called 'yearblocks'). I …

Web Development javascript javascript-jquery
Member Avatar for Airshow
0
889
Member Avatar for arctushar

I have a javascript. I did not understand the language. here is the link of the script [URL="http://www.unitconversion.org/converter3/converter3.js"]http://www.unitconversion.org/converter3/converter3.js[/URL] Can anybody explain me the script. thank you

Web Development javascript
Member Avatar for arctushar
0
76
Member Avatar for daydreamer22

Hello All, I'm new to PHP, need some advice for my problem below. Here is my problem after enter my fullname and search, it show all the fields from a table, but if I enter a invalid fullname(fullname that doesn't exist in fields) , the page goes blank no error …

Web Development php
Member Avatar for daydreamer22
0
158
Member Avatar for Vidgie65

Create the init() function. Within this function do the following: a) Create a variable named allSelect that references all of the selection elements in the document. b) For each item within the allSelect object collection, add an onchange event handler that runs the loadLink() function when the selection list changes. …

Web Development javascript web-browser
Member Avatar for Vidgie65
0
185
Member Avatar for srinivas88

Hello,I am making a website in JSP celled employee info system.In this whenever a new emp. registers in the system he is given a unique employee id. Currently in my registration page the employee himself will have to manually enter a unique id.Is there a way in which the unique …

Web Development java-jsp
Member Avatar for srinivas88
0
567
Member Avatar for windmill87

My name is Dennis, currently im doing my final year project for a system called " Records Management System" I'm using xampplite localhost phpmyadmin as my database SQL server. i face a problem in my system that shown a message: "Warning: Unknown: Your script possibly relies on a session side-effect …

Web Development php session
Member Avatar for sudeepjd
0
167
Member Avatar for MoreBloodWine

Is it possible to have stuff echo'd based on the address in the address bar of your browser ? So like... if address in the address bar = index.php?page=21 then echo the below [code] echo "Page " . number_format($page) . " of " . number_format($totalpages) . "<br />"; $starting_user = …

Web Development php
Member Avatar for MoreBloodWine
0
145
Member Avatar for BaSk

I'm currently creating a PNG image from a random sql statment. Its just outputting text, but I was to limit the number of chars per line. I have this working, but its repeating the text to the next line. Below is the code on how I'm doing this. [CODE] imagestring($image, …

Web Development php
Member Avatar for sudeepjd
0
91
Member Avatar for Deechickie

Hi everyone, I'm Dee :) I'm new here so please excuse me if I'm asking this in the wrong area. I must admit that I also know very little about PHP and techie stuff :$ so I'm after some help and guidance if possible. I'm getting an enormous database driven …

Web Development perl php
Member Avatar for Deechickie
0
89
Member Avatar for mbarandao

Good day all: I have a mysql insert statement inserting data to db. The value of one of the variables is: [code] ' $_POST[servicedesc]')[/code] I want to be able to append the current date and time in front of this value and then insert into the db. This value will …

Web Development mysql php
Member Avatar for mbarandao
0
100
Member Avatar for lit108

I am creating a login system for a website, this code itself works fine until I include this login file on the index page. Then everytime It is run it displays the following errors, Warning: Cannot modify header information - headers already sent by (output started at /home/swap/public_html/login script/index.php:11) in …

Web Development php
Member Avatar for lit108
0
179
Member Avatar for bit-byte

Hello, I am having some problems with IE and Opera browsers not displaying all my form select boxes, for example: Firefox (Working): [img]http://img577.imageshack.us/img577/6810/firefoxk.png[/img] Internet Explorer: [img]http://img600.imageshack.us/img600/7190/72404597.png[/img] My upload page: [code]<?php session_start(); error_reporting(0); require '../includes/functions.php'; require '../includes/mysql.php'; require '../theme.fol.php'; loggedinorreturn(); stdheader(); block_begin("Upload Torrent"); if(isset($_POST['submit'])) { $target = "../files/"; $target = $target …

Web Development php session
Member Avatar for bit-byte
0
142
Member Avatar for Blaise.M

Hi, I am trying to do something like this: [CODE] function showContent(toPopulate) { document.getElementById(toPopulate).innerHTML = "<a href='javascript:showOtherContent(toPopulate);'>show</a>" } function showOtherContent(toPopulate) {...} [/CODE] I am not able to send the variable toPopulate as an argument of function showOtherContent() in line 2 Thanks, Blaise

Web Development javascript
Member Avatar for Blaise.M
0
169
Member Avatar for theG-Scott

I have two tables in my db. One table contains portfolio images with a primay key set to AI. The other table contains all of the thumbnails that need to be associated with each portfolio image with no primary key. I'm trying to grab the last inserted id of the …

Web Development mysql php
Member Avatar for theG-Scott
0
152
Member Avatar for Rizzuti

Hello!! I'm trying to upload images and text onto my database but i have a bit of a problem... [QUOTE]Error, query failed 1136-Column count doesn't match value count at row 1[/QUOTE] I dont know if the problem is the script or the actuall database, I google it but I couldn't …

Web Development data-structure php
Member Avatar for Rizzuti
0
76
Member Avatar for Awah Mohamed

hi everyone i need your help i want to write a code that gets for me the latest 5 out puts here is my code [CODE] <?php $con = mysql_connect("localhost","awah","pass"); if(!$con) { echo "cant connect to db".mysql_error(); } $select = mysql_select_db("awah_admin"); if(!$select) { echo "cant select db ".mysql_error(); } $query …

Web Development php sql
Member Avatar for Awah Mohamed
0
86
Member Avatar for ninja_girl

I have searched the forum and Google but there was nothing that would give me a clue what's wrong with my code. I'm just starting PHP and I'm trying a few things. :) I have a page with login. Logging in works wonderfully, storing sessions with username does too. However, …

Web Development php session
Member Avatar for ninja_girl
0
308
Member Avatar for Cool&Awesome

Hi Everybody, I'm posting this after 10 hours of trial and error, hope someone has an idea... What I'm trying to do is make thumbs out of numerous images, and it works for a small number of images (a few) but for anything more max_execution_time is exceeded (and i cannot …

Web Development php
Member Avatar for Cool&Awesome
0
88
Member Avatar for jpknoob

I'm having trouble displaying results when i connect to 2 databases. My connection script seems to be working fine and returns no errors; [CODE]$connect1 = mysql_connect("localhost","user","pass", true); $connect2 = mysql_connect("localhost","user","pass", true); $db_selected = mysql_select_db("database1", $connect1); $db_selected = mysql_select_db("database2", $connect2);[/CODE] When i run the queries, however, I'm only managing to get …

Web Development mysql php
Member Avatar for jpknoob
0
116
Member Avatar for floatingDivs

Hi Daniweb, I've got a question regarding what I call "dynamic URL rewriting" -- which is probably the wrong term -- and need some help. OK, so basically, I know how to rewrite the URL for static pages (i.e. have "localhost/index.php" also work as "localhost/index". However, let's say I have …

Web Development finance php wordpress
Member Avatar for kb0000
0
189
Member Avatar for ankit.pandey3

<?php $dbc=mysqli_connect('localhost','root','','nog') or die('Not Connected'); $query="select * from registration"; $result=mysqli_query($dbc,$query) or die('Not Connect'); if ($result) { // create a new form and then put the results // indto a table. echo "<html> <body>"; echo "<form method='post' action='approve.php'>"; echo "<table cellspacing='0' cellpadding='15'> <th width='15%'>User Id</th> <th width='55%'>Name</th> <th width='15%'>Age</th> <th width='15%'>Blood …

Web Development php
Member Avatar for ankit.pandey3
0
1K
Member Avatar for mbarandao

Good day all: I have a textarea box in my form which receives (from a url) and display variable. The problem is that it does not translate the <br/>. instead of creating a newline where there is <br/>, it simply prints <br/>. here is an example of the output. br/>On …

Web Development php
Member Avatar for mbarandao
0
233
Member Avatar for BaSk

I was wondering if anyone has taking a dynamic pdf form, and populated from a php form or from mysql information? I have been looking into Fpdf, and other methods, but they don't seem to do what I'm looking for. The reason for this, is I need to output a …

Web Development pdf php
Member Avatar for mschroeder
0
118
Member Avatar for theG-Scott

Thanks for taking the time to read this. Let me start by saying I'm a php newb so be gentle! I have a form that is used to insert data into my database to display info and images in a portfolio section on my site. In the form, the input …

Web Development mysql php programming-construct
Member Avatar for theG-Scott
0
287
Member Avatar for arctushar

[CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <!-- Microsoft Indic Language Input Tool embed code --> <form method="post"> <input name="abc" type="text"></input><br/> <input type="submit"/> </form> <?php echo $_post['abc']; ?> </body> </html> [/CODE] I have written this page …

Web Development first-post php
Member Avatar for arctushar
0
16K
Member Avatar for Aventurine

Hi, I am a PHP developer I never learned much JS but there is no way to accomplish this function using only PHP without a refresh. I am trying to adapt a script that did the basics. [CODE] <script language="JavaScript"> function som() { var First, Last, Full; First = document.Credit.First.value; …

Web Development javascript mysql php
Member Avatar for Airshow
0
1K
Member Avatar for the_mia_team

ok I have my register.php file obviously i blanked out my username and pass the first code is my register.php code and ill add my login.php code as well but it doesnt work it always says wrong pass or username no matter what my register.php works perfectly fine I just …

Web Development php
Member Avatar for vibhaJ
0
232
Member Avatar for saadi06

Hello, Can any one tell me that how to show the name of the user using session. PLease help me by giving a code example and can anyone tell me i am using sessions and it is giving me this error " Warning: session_start() [function.session-start]: Cannot send session cache limiter …

Web Development php session
Member Avatar for saadi06
0
281
Member Avatar for rajbdilip

I have a link at a page. It has a email form that sends an email to my address. I want to thank sender. I'm redirecting to another page that thanks the user. But i want a thank notification to be displayed in the same page with close option. Please …

Web Development javascript
Member Avatar for rajbdilip
0
107
Member Avatar for sickpuppy18

hello i'm new in php development and i want to create an update scrupt for my codes, and i've been way over my head in doing this one.Here is my code for the search result i need some pinters to how i can create an update script for this.thanks <html> …

Web Development php
Member Avatar for sickpuppy18
0
101
Member Avatar for eagled2

I am looking for advice for using the functions of these 2 scripts on the same site. I have been using greybox and a different version of easytabs that didnt require the jquery script. I recently found a version of easytabs that allows the back button to work and for …

Web Development javascript javascript-jquery
Member Avatar for eagled2
0
167
Member Avatar for itisnot_me

hey all i have been trying to get the ext from a file so that i can append it back on. but it seems not to be working here is what i have tried [CODE]$tempFile = $_FILES["Filedata"]["tmp_name"]; $targetPath = $_POST["path"]; $filename = $tempFile; $filename=str_replace(" ","_",$filename);// Add _ inplace of blank …

Web Development php
Member Avatar for itisnot_me
0
92
Member Avatar for daneuchar

This code is working perfectly in Chrome and Firefox but i am unable to work it out in IE can some help me out with this [CODE]<form name="login" method="post" id="login_form"> <div class="form_back"> <input name="text" type="text" id="username" /> <input name="text2" type="password" id="password" /> <a href="" onclick="$(this).closest('form').submit(); return false;" class="login"><div id="login_button"></div></a> </div> …

Web Development javascript javascript-jquery
Member Avatar for daneuchar
0
97
Member Avatar for MoreBloodWine

See my demo page for where I have it working on an img src but not an input which is what I really want. Here's the link to my testing / demo page: [url]http://www.myu2sig.com/stellardonations/buttontype.php[/url] As for what I want to do, how can I apply the function to the input …

Web Development javascript
Member Avatar for MoreBloodWine
0
146
Member Avatar for PeterWaij

I am trying to implement a code to hide and show divs with a radio button. If yes is selected i want to show the divs. If no is selected i want to hide them. It sounds simple enouth but i can't figure this out. Can someone please advise. Here …

Web Development javascript
Member Avatar for PeterWaij
0
138
Member Avatar for leemyers

Hi I have the below code and when i open it in I.E i get this error Error Executing Database Query. [Macromedia][SQLServer JDBC Driver][SQLServer]Invalid object name 'Language'. Do i need to enter a database @ the datasource= [code]<!--- GetLanguage ---> <cfquery name="qLanguage" datasource="#request.DSN#"> Select LanguageID, LanguageCode, LanguageName from Language </cfquery> …

Web Development coldfusion operating-system
Member Avatar for leemyers
0
262
Member Avatar for LONGWAY

Hi, I need to write a php code that search from multiple tables and here is the problem: $query = "SELECT * FROM table1, table2, table3, table4 WHERE $kategorija LIKE '%".$kriterium."%'"; The results that were given were multiplicated (hundreds copies of the same data). I am new and can somebody …

Web Development php
Member Avatar for rpk2006
0
144
Member Avatar for benjaminFowl87

Could any wiz at regular expression write an expression that will check whether a string matches this format number=string must have the =sign included, the number can be anything up 3 numbers and the string can contain any characters this would very much apreciated i've been tryin this d*3/=/{aA-zZ}$/ thanks

Web Development php
Member Avatar for pritaeas
0
113
Member Avatar for ankit.pandey3

[CODE]<?php if(isset($_COOKIE['LoginIdCookie'])) { require_once('database.php'); $result=mysqli_query($dbc,"select *from events") or die('Not Connected'); echo "<html> <body>"; echo "<form method='post' action='Participationhappen.php'>"; echo "<table cellspacing='0' cellpadding='15'> <th><b>Event Title:</b></th> <th ><b>Event City:</b></th> <th><b>Content:</b></th> <th><b>Images:</b></th> <th><b>Event Date:</b></th>"; while($row=mysqli_fetch_array($result)){ $Title=$row['Title']; $City=$row['City']; $Content=$row['Content']; //$Photo=$row['Photo']; $Date=$row['Date']; $EventId=$row['EventId']; [B]$Photo=$row['Photo']; echo $Photo;[/B] echo "<tr><td>$Title</td><td>$City</td><td>$Content</td><td>[B][COLOR="Red"]<img src='<?php echo $Photo; ?>'/>[/COLOR][/B]</td><td>$Date</td> <td><input type='checkbox' name='event[]' value=$EventId …

Web Development php
Member Avatar for pritaeas
0
289
Member Avatar for sureshksk

Hi all, I am using quartz scheduler in my web application for scheduling some data base tasks based on time.But after scheduling I am unable to connect to my application. I am using NetBeans.It is showing exception like this. com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure Last packet sent to the server was …

Web Development apache java-jsp java-netbeans
Member Avatar for levine
0
321
Member Avatar for zeeshan_kust

hay gays i want to retrieve xml data from three table stored in mysql. i used the below code it works fine but first it retrieve one record from first table than iterate to second table and print the whole table and then iterate to third table and print the …

Web Development mysql php xml
Member Avatar for vibhaJ
0
148
Member Avatar for Setvir

Anyone have an idea what the regex would be for preg_split to split a string at a semicolon ([icode];[/icode]), but ignore any quoted (single or double) parts as well as ignore escaped ([icode]\;[/icode]) semicolons? I have tried to decipher this one and could not (regex not my strongpoint - YET) …

Web Development php regex
Member Avatar for Setvir
0
163
Member Avatar for dottomm

Hello everybody and thanks in advance for any help you can provide. I am currently working on transitioning a mysql project to mssql and php v 5.3.3 I am having trouble with [code] <form action="{$_SERVER['PHP_SELF']}" method="post"> [/code] when I look at the source code of a working page... Say login.php …

Web Development mssql php
Member Avatar for dottomm
0
127
Member Avatar for Brianbc

I am loading a page to change passwords within an iframe. Outside the iframe it does work well, but when I change the password from within the iframe it returns a blank page. How can I rectify the problem? [CODE]//iframe <div class="tabber"> <div class="tabbertab"> <h2>Eguard</h2> <iframe src="eguard.php" width="100%" height="400"> </iframe>[/CODE]

Web Development html-css php
Member Avatar for diafol
0
112
Member Avatar for mrickert

I'm reading in a file's contents as a string. From this string, I want to get a substring. All I know is the text that is beginning of the substring and the end ot the substring, I do not know what is contained in the string between the beginning and …

Web Development php
Member Avatar for quasipickle
0
82
Member Avatar for feodal

Hey, I have a scrapper that was written in php that gathers info from a website and outputs it in csv format. The problem that I have encountered is that there are short connection breaks which are enough for my script to stop executing and I am not sure whether …

Web Development php
Member Avatar for feodal
0
84

The End.