39,323 Topics

Member Avatar for
Member Avatar for johnbo100

Hi All, I have a page with a PHP insert form that posts relevant info to the SQL database. At the same time the key value "reg_id" is auto incremented by the DB. How do I get new auto incremented value that has been posted so that I can use …

Member Avatar for johnbo100
0
203
Member Avatar for Yemen Coder

hi everyone l see this code in user script and i don't know why he use this ~ symbol the code is [CODE]if( ~$user->premission & USER::create_Forum){ ................... }[/CODE] is this symbol for negative or what i still wait any idea about it

Member Avatar for ko ko
0
146
Member Avatar for amras123

[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> <script type="text/javascript"> function Logout(){ document.location.href="index.php" } </script> <?php $host="localhost"; // Host name $username="root"; // Mysql username $password=""; // Mysql password $db_name="*******"; // Database name $tbl_name="*******"; // Table name // Connect …

Member Avatar for ko ko
0
176
Member Avatar for niths

Hello, I have a page where i can upload images. Now i need to copy the uploaded images to a third party server. I have the details of that page. so can anyone help me. Thank You.

Member Avatar for diafol
0
113
Member Avatar for naru vaishnaw

can it is possible when i upload my avatar successfully in upload.php page then auto refresh my mainpage.php after uploading.

Member Avatar for diafol
0
46
Member Avatar for pantera989

Hi, I need help with PHP/javascript/mysql I am fairly new to this so excuse me for my bad programming skills. I have PHP page which has to update mysql table and HTML table onclick. It updates HTML table ok but as soon as I refresh page it updates all data …

Member Avatar for vibhaJ
0
1K
Member Avatar for naru vaishnaw

please can you help me for define image size and width on this code [CODE] <?php require 'connect.php'; $userg = mysql_query("SELECT avatar FROM members") or die("Failed to fetch your details."); if (isset($_SESSION['MM_Username'])){ echo "Welcome ".$_SESSION['MM_Username']; echo "<img src="; echo mysql_result($userg,0,"avatar" ); echo "></img>"; } ?> [/CODE]

Member Avatar for divyakrishnan
0
153
Member Avatar for naru vaishnaw

my code for show avatar but image not display . how to correct the code [CODE] <?php require 'connect.php'; $userg = mysql_query("SELECT avatar FROM members") or die("Failed to fetch your details."); if (isset($_SESSION['MM_Username'])){ echo "Welcome ".$_SESSION['MM_Username']; echo "<img src="; echo $userg; echo "></img>"; } ?> [/CODE]

Member Avatar for karthik_ppts
0
149
Member Avatar for 68thorby68

Once again foreach lops are driving me mad. I have a simple multiple select list, where ther user can select one or all of the options [CODE] <form name="checkdata" id="checkdata" method="post" action="test.php"> <label> <select name="sport[]" size="6" multiple="multiple"> <option value="FOOTBALL">Football</option> <option value="CRICKET">Cricket</option> <option value="TENNIS">Tennis</option> <option value="SWIMMING">Swimming</option> </select> </label> <input type="submit" name="submit" …

Member Avatar for twiss
0
135
Member Avatar for manchurianCEO

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 …

Member Avatar for diafol
0
119
Member Avatar for Besherek

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 …

Member Avatar for Stefano Mtangoo
0
271
Member Avatar for Mr.UNOwen

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 …

Member Avatar for Stefano Mtangoo
0
157
Member Avatar for calebcook

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!

Member Avatar for oab2003
0
1K
Member Avatar for jrotunda85

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 …

Member Avatar for jrotunda85
0
114
Member Avatar for ganeshrnet

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. …

Member Avatar for diafol
0
153
Member Avatar for tstory28

[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) { …

Member Avatar for cjohnweb
0
487
Member Avatar for Geertc

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 …

Member Avatar for Geertc
0
92
Member Avatar for johnbo100

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 …

Member Avatar for ko ko
0
401
Member Avatar for jrotunda85

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 …

Member Avatar for jrotunda85
0
127
Member Avatar for navi17

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 …

Member Avatar for afsha khan
0
640
Member Avatar for tt13

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 …

Member Avatar for Ezzaral
0
78
Member Avatar for navi17

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

Member Avatar for sharga
0
2K
Member Avatar for naru vaishnaw

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']; …

Member Avatar for ko ko
0
100
Member Avatar for jacob21

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; ?> …

Member Avatar for ko ko
0
57
Member Avatar for serdas

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 …

Member Avatar for twiss
0
122
Member Avatar for abhi10kumar
Member Avatar for ko ko
0
62
Member Avatar for muralibobby2015

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 …

Member Avatar for urtrivedi
0
110
Member Avatar for jrotunda85

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 …

0
96
Member Avatar for haimz

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

Member Avatar for haimz
0
90
Member Avatar for ashiiiish

How to automatically move an uploaded file to a new location and rename it just after upload

Member Avatar for urtrivedi
0
61

The End.