39,323 Topics

Member Avatar for
Member Avatar for himanshu.1691

i have a page where i have multiple rows in a table and the no of rows is not fixed. it is fetched using php loops from the database....each row has a drop down list containing 3 values.... i want a checkbox at some part of the page...only one.... which …

Member Avatar for broj1
0
170
Member Avatar for unikorndesigns

I am doing a project on developing an intranet search engine. My search engine uses MySQL as database and it is developed on PHP which is why i am posting this article here.... :D As my search engine is for an intranet and just like an search engine i will …

Member Avatar for diafol
0
97
Member Avatar for ashiiiish

Hi I am have to enter marks of 50 students through a single page <table border="1"> <tr><td height="50">UserID </td><td>Name</td><td>Marks </td></tr> <?php include('db_connect.php'); $bname=$_POST['bname']; $res = mysql_query("SELECT * FROM user WHERE batch='$bname'"); while($data = mysql_fetch_array($res)) { $uname=$data['uname']; $uid=$data['uid']; echo "<tr><td>$uid </td><td>$uname</td> <td> <input type='text' size=3 name='$uname'></td></tr>"; } echo "<tr><td colspan='2'><input type='hidden' …

Member Avatar for diafol
0
115
Member Avatar for Kieron Thomas

Hi All, Very new to web design and PHP, but I seem to be learning along the way. I am building a HGV Drivers website for a friend of mine for his business. On the homepage I have managed to echo text for my 'Latest News' section. I would like …

Member Avatar for MarPlo
0
6K
Member Avatar for Wolxhound90

Hey guys, So I'm trying to make a website in php. I'm just wondering, when I click on a link is there any way for the text of the link to be put into a variable. Basically the user will select the name of a database(which is a hyperlink to …

Member Avatar for Wolxhound90
0
225
Member Avatar for mrcerimo

I'm making my own website and from the website you can download some of my c++ games. on the website i have this code that writes in to a .txt file some info from the visiter like: ip, os , browser and what site did he/she visit. so ok i …

Member Avatar for mrcerimo
0
3K
Member Avatar for rotten69

Hey everyone, I am having trouble accessing the web pages on my online server. On my local server, I access them using this URL(localhost/mvc/users/index) But this doesn't allow me to access the pages except for the config page which is on mysite.com/mvc Any help please?

Member Avatar for veedeoo
0
90
Member Avatar for shafeequeom
Member Avatar for ashiiiish

I am not able to set php session for starting the session I am using below code session_start(); $_SESSION['username'] = $username; For checking the session I m using <?php if (!isset($_SESSION['username'])) { header('Location: index.html'); } ?> But the session is not being set as I am not able to grep …

Member Avatar for IIM
0
214
Member Avatar for KeithMon

I've created a **login script** using **PHP** that connects to a `users` table from a **MySQL** DB. It's very simple and currently is not encrypted (it will be before I take the site live...I'd love some suggestions on current password security features too). **My issue is that the username-check is …

Member Avatar for dschuett
0
4K
Member Avatar for rotten69

Hey everyone, Does anyone know if there is a possible way of using an online Database without uploading the website files onto the server? Cheers,

Member Avatar for rotten69
0
237
Member Avatar for balagod

In below code using i try to upload multiple files to remote URL. but only 1 file data only i am receiving. please help any one to resolve issue. Remotepage.php i am not getting sign,cheque file details [CODE]<?php function do_post_request($url, $postdata, $files = null) { $data = ""; $boundary = …

Member Avatar for albivl91
0
1K
Member Avatar for studentabc

I am not able to post the new article on the website thats why i am directly contacting you if you can able to help me out with the following problems. I am student. I have a very simple assignment and I did do the assignment but the requirement is …

Member Avatar for broj1
0
2K
Member Avatar for gilgil2

Hi This is probably a fairly easily solved issue but I am struggling at the moment. I basically just want to be able to search a database but with several different options, any of which can be used and any combination can be used. The options will be name, date …

Member Avatar for diafol
0
83
Member Avatar for jackbauer24

So now my son is into PHP and so I bought a book for him, Head First PHP and MySQL and my son took the code and tried it. The main page is report.html. report.html:- <!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" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" …

Member Avatar for diafol
0
305
Member Avatar for a_salted_peanut

Hi all I apologies again in advance for the seemingly stupid question. I have tried googling this once but can't see to get the answer i'm looking for. Basically i have a form which can query the database depending upon what the user has selected. The trouble is if multiple …

Member Avatar for sleign
0
194
Member Avatar for Layerphp

Hi all I want to display image uploaded from a form in a div size of "width=235px and height=61px" with image good quality also(i mean not shrinked or stretched) **using php**. I'm uploading a image of size "width=452px and height=507px". I have tried the codes i found on internet but …

Member Avatar for veedeoo
0
207
Member Avatar for mbhanley

Need help with code i am trying to acheive upload of videos but when they are uploaded the file names need to be changed to have hyphens in replace of white space and still keep the exstensions. its proving difficult because once uploaded ffmpeg needs to read the output as …

Member Avatar for mbhanley
0
464
Member Avatar for crankyslap

I installed php 5.4.0 from source but phpinfo() still reports the same, old version. As does php5 -v . What did change to 5.4.0 is php -v . But my server seems to be using php**5**. How do I fix this?

Member Avatar for rubberman
0
74
Member Avatar for sibbs06

Is it possible for me to use this code but change the date to a date from my database? // NOTE: the month entered must be one less than current month. ie; 0=January, 11=December // NOTE: the hour is in 24 hour format. 0=12am, 15=3pm etc // format: dateFuture1 = …

Member Avatar for shylonz
0
233
Member Avatar for pritaeas

http://me.veekun.com/blog/2012/04/09/php-a-fractal-of-bad-design/ Just fun to read.

Member Avatar for MosaicFuneral
1
155
Member Avatar for Miss Scarlet

Hi folks, I'm kind of stressed out right now about this class I'm taking, PHP and MySQL...for beginners :) Anyways, he has us read the Murach PHP and MySQL, and then afterwords we are to write code for an assignment. This week I had to create two files: book.php and …

Member Avatar for Miss Scarlet
0
198
Member Avatar for harintfs

Dear friends, I am using shared linux hosting php5 enabled and also supports php4, I am using some .php files for my site, Now I want to edit my php ini, Whether I need to edit php5.ini or or php.ini. I do not know which type of php files I …

Member Avatar for veedeoo
0
221
Member Avatar for RickCJ7

How do I call a PHP string from within javascript? This is parts of my code but it isn't working... Thanks! <?php $URLString='MySite.html'; ?> <html> <body> <script language="JavaScript" type="text/JavaScript"> var popUpWin=0; function popUpWindow(URLStr) { if(popUpWin) { if(!popUpWin.closed) popUpWin.close(); } popUpWin = window.open(URLStr); } </script> <script language="javascript"> popUpWindow(<?php $URLString ?>); </script> …

Member Avatar for RickCJ7
0
134
Member Avatar for Jamesiv1

I have a form with shopping cart items that when submitted, goes to **phpcart-m.php** **phpcart-m.php** calculates the shopping cart items and sends to **phpcart.php?action=view** which displays all the items on a page called **display.php** The URL when **display.php** loads is http://mydomain/phpcart.php?action=view As **display.php** loads, I need it to perform a …

Member Avatar for diafol
0
102
Member Avatar for zacharysr

I want to auto load new data into my php page, my homepage is getting to long with statuses, so when people go to the home page i want it to only show ten, then when they scroll to the bottom of the page, it loads the next ten, and …

Member Avatar for diafol
0
459
Member Avatar for RazorRamon

Ok I need help. I have a couple hundred databases, which are different cities, that I am trying to connect with one query. each city has the same Sports table in it. I want to put the 100 most recent results on one page . The code below gets the …

Member Avatar for Biiim
0
1K
Member Avatar for gogs85

How to make Web Crawler to pull some information from site and that information put in xml tag ![Crawler](/attachments/large/3/Crawler.jpg "Crawler") In my pictures show site and where i put the information in tag. Please some help!

Member Avatar for gogs85
0
76
Member Avatar for Buppy

Hi, I have a lot of files i need to read with PHP script. All of them has the ANSI encoding type and, unfortunately, they contain special characters. Since my page is in UTF8, i need to convert the file content to UTF8 on the fly while reading them. What's …

Member Avatar for diafol
0
99
Member Avatar for crzycm16

Thanks to you guys, i now understand much better this whole thing, but i now have a problem where, after submit, i get the mysql error, "Column count doesn't match value count at row 1" my form code is [CODE=php]<?php // MySQL connection variables $host="server"; $username="Vetsform"; $password="saerverpassxduhsjdkasjdlcc"; $db_name="Vetsform"; $tbl_name="vetform1"; // …

Member Avatar for diafol
0
8K

The End.