39,395 Topics
![]() | |
Hi, I am working on a website and I am having trouble with the index bar. Perhaps this is the way it's supposed to be but I though a PHP meant only having to have one file for all the pages. So, When I click to a link that gets … ![]() | |
Hi folks, I have an existing shopping cart for a print company that allows users to proof labels select qty and send them to a cart. We'd get an email and we'd contact the client for an over the phone payment. We want to use Paypal and I'm curious if … | |
Hello, I'm fairly new to web development and I need a quick start to getting my website up. I'm planning on hosting the site and I don't expect much traffic as it's just for a start up company that I'm starting and I'm just using it as way of saying … | |
Hi. I'm not sure if this is possible or not, but I need to be able to SELECT * FROM all the tables in the database. Is this possible? Thanks! | |
Any chance the wonderful people here on daniweb could help me again with a loop? My apologies, loops are not my thing :| Basically what I'm trying to do is add a condition where on the last tweet (that is where the loop = $nooftweets), that tweet gets a different … | |
I'm looking for a good vanity url for my website... i wish to have the following type of url for my website:- [B][url]http://www.myweb.com/topic_name/123[/url][/B] where the original query string is [B][url]http://www.myweb.com/topics.php?title=topic_name&id=123[/url][/B] I tried to get the scripting from many websites, but none gave me want I wanted... So i've approached daniweb. … ![]() | |
[CODE] <?php include("connect.php"); echo "<h1>Register</h1>"; $submit = $_POST['submit']; $name = strip_tags($_POST['name']); $email = strip_tags($_POST['email']); $password = strip_tags($_POST['password']); $confirmpassword = strip_tags($_POST['confirmpassword']); $level = 0; if ($submit) { $namecheck = mysql_query("SELECT email FROM users WHERE username='$username'"); $count = mysql_num_rows($namecheck); if ($count>0) { die("Email address is already taken!"); } else if ($email&&$password&&confirmpassword) { … | |
Hello, I have installed a site locally (apache 2.2) and I am now adjusting the settings. I have set my include_path like this : [CODE]set_include_path(get_include_path() . PATH_SEPARATOR . PATH_LIBRARY);[/CODE] When I try to include files from directory beneath the include_path, I get a fatal error, and I get the include_path … | |
Hi all, I've pulled most of my hair out over the last few days and need some help. Description: I am creating a db application with dreamweaver and using php and mysql server behaviour. My database consists of losts of many to many tables that are necessary. I have created … | |
So I'm trying to create one central file for my navigation which is used across my site; however, some of the pages are in different directories. So, for example , let's say I have the following directories -- domain.com/ domain.com/dir1/ domain.com/dir2/ If I wanted to use the same include between … | |
Can someone present me an example which implements the three tier architecture in PHP. Let's say I have a class student with the fields ID and Name. I want to enter the student ID and Name through a web form and save it to the database. Could someone show me … | |
Nowadays i'm working very hardly on one prohect - mini social network with some advantages: You can generate tree style map ([url]http://goo.gl/ZP5yc[/url]) of all relationships of user. For example B, C, D are friends of A. On profile page of A when you click on "generate" button it shows A … | |
Hello friends, Well i just realized onmouseover on select options not working in IE/Chrome/safari. i think bec. IE/chorme doesnot support onmouseover. Can any one tell me the alternative of onmouseover? Thanks | |
upload profile image but upload only ram user pic .other user not able to upload there image .how to define every user has upload there prof. image . anyone help me for this problem [CODE] // Upload Form <?php include("connect.php"); $_SESSION['username']= 'ram'; $username=$_SESSION['username']; if(isset($_POST['submit'])) { //get file attributes $name=$_FILES['myfile']['name']; $tmp_name=$_FILES['myfile']['tmp_name']; … | |
Hi, I am using this drop down list.Loop started from 1920 to 2012.I am trying to put 1st value --select-- not 1920. Need suggestion [CODE]<select name="year" id="year" style="height: 22px"> <?php for($y=1920; $y<=2012; $y++) { ?> <option value="<?php echo $y; ?>" <?php if($y==$_POST["year"]) echo "selected"; ?> > <?php echo $y; ?> … | |
Hello all! I'm pretty much clueless as to how to write code. I saw the following script from [url]http://thinkdiff.net/facebook/users-demographic-data-from-facebook/[/url] so I decided to play around with it but I just can't get it to work. I created the table shown and also a file bd.php where it has the info … | |
I want to know where and when I have to use single quote and double quotes in PHP ? | |
hello, few days back i attended one interview. he asked write a query for get the results from these tables. there are two tables. one is for 'USER' and another is 'Properties'. in the user table there is 3 feilds user_id,name and subscription_id. in properties page property_id and user_id. here … | |
So I'm trying to figure out the best way (if possible) to combine these two stored procedures. Basically these are the same, the only difference is one is looking at a 'Spot' table, the other is looking at the 'Retail' table. However, in both cases the column count is the … | |
Hello, im in this domain: [url]www.mydomain.com[/url] i want from this domain to get the referer of the [url]www.myotherdomain.com[/url] there is some way do that? without write abit code in myotherdomain.com | |
How to automatically move an uploaded file to a new location and rename it just after upload | |
Hello guys! How to load content into the ckeditor? Pls look [url]http://ckeditor.com/demo[/url] for example. My code is below: [CODE] <textarea class="ckeditor" name="pagecontent" cols="100" rows="20" id="pagecontent"></textarea> <?php include_once "../Misc/ckeditor/ckeditor.php"; $CKEditor = new CKEditor(); $CKEditor->basePath = '../Misc/ckeditor/'; $CKEditor->replace("pagecontent"); ?> [/CODE] I want the content automatically loaded from MySQL database to the CKEditor … | |
Hi, How would i make something like on google maps where you type in an address/location and it will show you how to get there, and give you directions. I dont need a full code butwould like to knw what something like that is call/how to start off with it. … | |
So I've developed some code to pull the latest 8 images from my flickr feed; however, I'm having trouble with figuring out how to do what I'm trying to do. Essentially, I need each 4th image to have a different <div> class (this helps with margins and what not). Any … | |
I created a test.php file in the required /var/www folder but how do I edit the file ?It says it's only a read only file.Using chmod +rwx <filename> says 'no such file'...Please help . | |
i have 18000 records in my table i want to update a single field and i want that first 500 records update then after some sleep next records have to updated in mysql any idea appre thankx | |
The code: <link href="css/main_stylesnew.css" rel="stylesheet" type="text/css" /> <TR> <TD COLSPAN=2 background ="images/207_13.gif" WIDTH=53 HEIGHT=335 ALT=""> </TD> <TD COLSPAN=5 align="center" valign="top" class="smallheader"> <div id="google_translate_element"></div><script> function googleTranslateElementInit() { new google.translate.TranslateElement({ pageLanguage: 'ro', includedLanguages: 'en,it,es', layout: google.translate.TranslateElement.InlineLayout.SIMPLE }, 'google_translate_element'); } </script><script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> </br> </br> Afisare Oferte Munca <hr /> <br /> <?php error_reporting(0); … | |
I have 4 checkbox. 1)name 2)phone 3)address 4)dob 5)all What i am trying to do suppose name,address,& dob is checked by user,then query is: Select name,address,dob from table; Similarly if phone,address select phone,address from table; & for all Select * from table; I am getting value of checkboxes. Need suggestions | |
<? $koneksi = mysql_connect("localhost",'root',''); if(!koneksi){ die ('tidak ada koneksi'.mysql_error()); } ?><table width="294" border="1"> <tr> <td width="20" bgcolor="#CCCCCC"><pre>id</pre></td> <td width="56" bgcolor="#CCCCCC"><pre>Pembeli</pre></td> <td width="60" bgcolor="#CCCCCC">Nilai 1</td> <td width="62" bgcolor="#CCCCCC">Nilai 2</td> <td width="62" bgcolor="#CCCCCC"><pre>Total</pre></td> </tr> <? mysql_select_db('dbpenjualan', $koneksi); $query = "select * from tpembeli"; $hasil = mysql_query($query); while($row = mysql_fetch_array($hasil)){ ?> <tr> <td><? … | |
i want to show friend request without pressing submit query button. please anyone help me .change the code without form Table structure for table `friend_requests`-- CREATE TABLE IF NOT EXISTS `friend_requests` ( `id` int(11) NOT NULL auto_increment, `sender` int(11) NOT NULL, `recipient` int(11) NOT NULL, PRIMARY KEY (`id`)) ENGINE=MyISAM DEFAULT … | |
After I am done installing this script I get this error: [QUOTE]????????????????????????? ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????x???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????‡??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????Ç?????????????????????????????????????????? Warning: require_once(ROOT_PATH/modules/system/models/system.class.php) [function.require-once]: failed to open stream: No such file or directory in /home/name/public_html/index.php on line 17 Fatal error: require_once() [function.require]: Failed opening required 'ROOT_PATH/modules/system/models/system.class.php' (include_path='.:/usr/lib/php') in /home/mane/public_html/index.php on line 17[/QUOTE] Here is the files requested above: … | |
Welcome! Game Server EXE parameter-jet I want to start WebAdmin is a control panel. OS: Winsows Server 2008 Enterprise 32bit (SP2) Webserver: iis7 PHP: 5.2.17 Safe mod off. cmd window running game, for example. GTA SAMP starts, but COD series desktop which requires a longer start properly. Process brings elidnított … | |
The web site is on online library where the user finds a book and sends an email to the owner of the book. My PHP creates a table of results based upon a query. One of the cells in the table includes an email link to the owner of the … ![]() | |
i got the problem of accessing variable outside iframe. [CODE] //a.php <?php $a="text"; ?> <iframe src="b.php"></iframe> //b.php <input type="text" value="<?php //i want $a to be put here ?>" /> [/CODE] Is it possible to access $a from b.php? | |
well this one is the my first post in the daniweb , and i belive that i will get solved my problem . well i trying to create a MLM project in which i m trying to creating binary tree by using this code which i have attached in this … | |
I get random Parse error: syntax error, unexpected $end in my code. All i have to do is refresh the page and the error goes away, all is working. When it appears the line is always different and when i examine the line nothing is wrong with the code. This … | |
i'm gonna be building a website,for my summer training,but then later commercialize to earn a few bucks Main thing is, i want to make it as attractive GUI wise as possible with probably PHP only, and ajax and flash are allowed to get as many marks as possible and it … | |
Hey, I started learning PHP programming. I wrote this script to update a user's password from the mySQL database, but it's isn't doing so The script is :- [CODE]<?php include("header.html"); include("nav.html"); include("sidebars.html"); ?> <div id="content"> <?php $errors=array(); if(empty($_POST['uname'])) { $errors[]="You forgot to enter your username"; } else { $uname=$_POST['uname']; } … | |
Hi, I'm trying to add a condition to my htaccess file but it seems to only match if I use [ICODE]%{REQUEST_URI} !^/?.+$[/ICODE]. If however I add [ICODE]%{REQUEST_URI} !^/?B.+$[/ICODE] it will never match. Also the full code showing what I am trying to achieve is as follows: [CODE][B]RewriteEngine On[/B] [B]RewriteRule[/B] ^$ … | |
I want to update my users last log in in the database : [CODE]<input name="login" type="submit" id="login" onclick="<?php mysql_select_db($database_web, $web) or die("Error : " . mysql_error()); mysql_query("UPDATE users SET timp='NOW()' WHERE username='$user'")or die("Error : " . mysql_error());?>" value="LogIn" />[/CODE] this is my code but it doesent update the table :| … | |
I am having a problem with the Google Maps API because of conflicting names in my site's CSS. From what I've been able to find, Google Maps uses the name "container" in their code as does my site, so when the map loads it has this nasty white shadow behind … | |
Hello evryone i need aregex code that replacing url: [url]http://domain.com[/url] [B]at [/B] link: <a href="http://domain.com" rel="nofollow">http://domain.com</a> replace the url until space ![]() | |
Hello all, I am building an online Logbook service and have come to a dead end with my script. I am trying to make it so that when members are logged in, they can add records to a database (which I have done), then it automatically assigns that members id … | |
Hello all, I have searched this forum to find the answer to my question however none of the answers seem relevant so here we go: I am building a member service however when coding the login.php script, I keep coming across this error: [QUOTE]Warning: mysql_num_rows() expects parameter 1 to be … | |
Hi friends, I m a php coder and in one of my real estate portal I likes to use any one of best php frame work. Please advise / suggest me a best and easy learning one.. Thanks rajeesh | |
I want to display a multiple records from the database, 1 of the field needs to be displayed in a list format. i have managed to achieve this, the problem is that the list is duplicating and incrementing into the next record. Displays like this: Record 1: a, b Record … | |
I’ve created a dynamic page ([I]page.php[/I]) who’s content changes based on the incoming link, specifically by calling a GET on the ID in the URL. So, for example, someone visits [I][url]www.domain.com/page.php?id=310[/url][/I] and the content on the page changes queries the database and returns results for item 310. I’m in the … | |
I write the following html code : <html> <body> <form method="post"> <input name="imap" type="image" src="screenshot.png"> </form> </body> </html> But when in browser i seee no picture My php code is as follows: <?php echo $_REQUEST["imap_x],$_REQUEST["imap_y"]; ?> Please help. ![]() | |
how to hide some content on webpage from unregistered user ? I am using PHP Login Script from about.com [URL="http://php.about.com/od/finishedphp1/ss/php_login_code.htm"]http://php.about.com/od/finishedphp1/ss/php_login_code.htm[/URL] | |
Hi all, I got some little problem for Unicode: My Unicode were Chienese world => 你好, 有什么能协助您的吗? When the 1st time i insert it in to database it saved in this form -> "你 好 , 有 什 么 能 协 助 您 的 吗 ?" ( every &# 1234 … ![]() |
The End.