39,320 Topics

Member Avatar for
Member Avatar for AdriftUniform

Hi, I am trying to create a group of html links that are dependant on two arrays. The data of the arrays is populated from a mysql database, here is my code: [code=php] <?php include_once 'title.php'; include_once 'checkuser.php'; if (isset($_GET['view'])) $view = sanitizeString($_GET['view']); else $view = $user; $sql = "SELECT …

Member Avatar for AdriftUniform
0
242
Member Avatar for Blacklister

i want to update some links and data on a web page without the web page getting refreshed ..... please help me with this ....

Member Avatar for ketan_156
0
595
Member Avatar for kings

i created one directory using mkdir.now i want to create another directory inside previous directory. [CODE=php] $uploaddir1 = "resumes/".$_SESSION["uss1"]."/".$uname; echo $uploaddir1; if(is_dir($uploaddir1)) { echo "Exists!"; } else { echo "Doesn't exist" ; mkdir($uploaddir1,0777); print "created"; } [/CODE] output is Doesn't existcreated.but when i open $_SESSION["uss1"] directory the new directory was …

Member Avatar for pandikamal
0
142
Member Avatar for kardklub

Im struggling with updating the sql database for all fields . For example i have 2 select boxes in my order and if i wanted to amend both of them i change there details and press submit. The problem is i dont know how to loop it to go to …

Member Avatar for kardklub
0
86
Member Avatar for michael1999

Hi i have scripts that redirect page for language settings thanks the guy who helped me sorted out my first problem now i am facing another problem there is a script working in [url]www.server.com[/url] if you type only [url]www.server.com[/url] now i created function and if you type [url]www.server.com?redir=1[/url] this function …

Member Avatar for tiggsy
0
188
Member Avatar for suhnako

recently i downloaded [COLOR="Red"]xampp-win32-1.6.6a-installer.exe[/COLOR] with the help youtube.com......i followed all the steps until i finish downloading. fortunately, it was successful. after the download, the video shows the deletion of all the content of [COLOR="Red"]htdocs[/COLOR] [I]folder[/I]...i am now in a doubt if i will also delete all the files inside the …

Member Avatar for pritaeas
0
115
Member Avatar for Sorcher

Hello peeps! I really need a pagination for this code: [CODE]<body> <div class="myFiles-content"> <div id="myFiles-upload"> <table> <tr> <td class="login-form"> <form action="index.php?page=user_upload2" method="post" enctype="multipart/form-data"> <input class="button1" type="file" name="uploaded_file"><br> <input class="button1" type="text" name="description" maxlength="60" value="Description" onClick="this.value='';"> <input class="button1" type="submit" value="Upload"> </form> </td> </tr> </table> </div> </div><br> <table cellpadding="0" cellspacing="0" border="0"> <tr class="myFiles-thtable"> …

Member Avatar for pritaeas
0
221
Member Avatar for damsean102

I've built a blog where the user can attach a PDF to a post. This all works fine apart from one small minor detail. I call the details from the MYSQL database on the home page and use a while loop to go through the results. In the DB there …

Member Avatar for damsean102
0
1K
Member Avatar for solvision

Hey guys, nice to meet you. I have PHP/MySQL driven site. I have finally found an AJAX script to load my data in a div on the same page. It works if i click a static link, but the main purpose i need is to click link with dynamic album …

Member Avatar for pritaeas
0
178
Member Avatar for tripwirekse

Hello, I'm very new to PHP and am trying to code a basic content management system. Every time I try and test my login I get a blank page and the same notice pops up: Notice: Undefined index: action in test\newsite\transact-user.php on line 10 I've searched high and low for …

Member Avatar for pritaeas
0
232
Member Avatar for airick10

I need help with my page. I am taking two variables from another page as Posts. The two variables are numbers that I will later need to change to names they are assigned to in my table. I then start to build an html table and form. My SQL table …

Member Avatar for pritaeas
0
131
Member Avatar for jithinsil

i wanted to create a small search engine using php.. I want to fetch data from mysql database. ina textbox if any one try to search one thing, at the same time all related things are need to be come, example if one person want to check cricket, at the …

Member Avatar for Shanti C
0
99
Member Avatar for anita_86

Hi! I am having trouble in checking userlevel at the time of login. The pages set for admin level are not displayed if the user is not admin, but admin cant access the pages either!!:D Please solve my problem! My code is: [CODE]<?php if(!isset($_SESSION['userlevel']) || empty($_SESSION['userlevel'])) { if ($_SESSION['userlevel'] == …

Member Avatar for anita_86
0
108
Member Avatar for bbinais

if my php website is ideal for 30 minutes it shuld be redirected to login page please help me.... this is my checkuser.php [code=php] <?php session_start(); include("config.php"); if (isset($_POST['sub'])) { $myusername = $_POST['txtusername']; $mypassword = $_POST['txtpassword']; $name = stripslashes($myusername); $password = stripslashes($mypassword); $myusername = mysql_real_escape_string($name); $mypassword = mysql_real_escape_string($password); $sql = …

Member Avatar for Shanti C
0
135
Member Avatar for MackeyJenkins

Hello I'm trying to name a uploaded image to my website with a random number / letter combination and if the number it generates is taken it makes a new one untill it finds a free one, then i need to insert the url of the image into a table …

Member Avatar for MackeyJenkins
0
98
Member Avatar for hussainiat

function tempdbentry() { var regex=/^[0-9A-Za-z]+$/; //^[a-zA-z]+$/ var myname = document.ItemEntryForm.iname.value; var mycat = document.ItemEntryForm.selectcat.value; var mypic = document.ItemEntryForm.ipic.value; "<?php $phpmyname = '?><script language=javascript>document.write(myname);</script><?php'; $phpmyname = str_replace('?>', '', $phpmyname); ?>" "<?php $phpmycat = '?><script language=javascript>document.write(mycat);</script><?php'; $phpmycat = str_replace('?>', '', $phpmycat); ?>" "<?php $phpmypic = '?><script language=javascript>document.write(mypic);</script><?php'; $phpmypic = str_replace('?>', '', $phpmypic); …

Member Avatar for Airshow
0
1K
Member Avatar for Wattsits

im new to sql but long story short. just installed mysql server 5.5 and started the configuration and it failed to apply the security settings with error message 2003, cant connect to server on local host. so i cant finnish the installation and canot run mysql.exe. it just beeps at …

Member Avatar for Wattsits
0
83
Member Avatar for bmj1474

I am trying to set up a Contact form on my website that will: [LIST=1] [*]Gather the user's info [*]Validate that none of the required fields are empty, if they are, then redirect the user back to the contact form page to fill in the empty field [*]Send it to …

Member Avatar for diafol
0
151
Member Avatar for Kligham

Hi, I have a html file Top.htm: [CODE]<form action="" method="post"> <fieldset> <input id="searchbox" type="text" name="zoekfunctie" value="Zoek..." /> <input type="submit" name="zoekbutton" value="Zoek" /> </fieldset> </form>[/CODE] I then include this page in my index page (and in many more pages to come): [CODE]<div id="top"> <?php include("Top.htm"); ?> </div>[/CODE] Now the problem is …

Member Avatar for Kligham
0
185
Member Avatar for turt2live

Hello, I have run into a problem where I need to update multiple rows in an SQL table at once. I have found and tried to use the tutorials on setting an ID and then looping through the data that way ([url]http://www.daniweb.com/forums/thread35096.html[/url]) but my setup is a little different: The …

Member Avatar for diafol
0
137
Member Avatar for whiteyoh

Hi all, Im a bit stuck. I think im staring the answer right in the face but cant see it. Im after a query that references 1 table. Its output will be each unique source code along with a total of grouped data from a single column. SOURCECODE Count of …

Member Avatar for tiggsy
0
81
Member Avatar for Awah Mohamed

hey people . i am not a very good programmer . i am biginner in web designing . not a very biginner . i can design a full website in php/mysql and a can create a powerful php apps but my main problem is seo (search engine optimization ) . …

Member Avatar for Awah Mohamed
0
114
Member Avatar for romy_fb

hi all i want to add all students grades in one form and then save each grade to the correct student i make 2 differents php page first one display all student id that is already registered in my website in this page instructor can add grade for each student …

Member Avatar for romy_fb
0
1K
Member Avatar for chandaboy

Hi, all I want to get the data from the div tag, from this website [url]http://www.weather.com/outlook/travel/businesstraveler/hourbyhour/PKXX0008?begHour=7&begDay=4[/url] when you click on the firebug in firefox you can see there is a and under this div there are more divs there, I want to get the data (i,e,. only the 3pm, 25,25 …

Member Avatar for chandaboy
0
152
Member Avatar for showman13

Good Afternoon, I'm hoping someone can tell me how to resolve an issue that will apparently be pretty wide spread within our membership. I have an ad Directory that was created for our members to do member to member advertising with a component for public advertising, and everything came together …

Member Avatar for showman13
0
364
Member Avatar for altarek

I'm new in PHP how can retrive data from database using dropdown list ? I have created the dropdown menu [CODE]<select name="con_st" > <?php $sql = "SELECT distinct con_stat FROM contst "; $rs = mysql_query($sql); while($row = mysql_fetch_array($rs)) { echo "<option value=\"".$row['con_stat']."\">".$row['con_stat']."\n "; } ?></select>[/CODE] any help?

Member Avatar for altarek
0
203
Member Avatar for wafieali

I'm indeed to find a suitable and nice templates for my website. I need your help..thank you..

Member Avatar for tiggsy
0
72
Member Avatar for minimogul

Hey everyone I was wondering what you guys thought about having a php slideshow on a website. Is is a good idea? Why or why not? Could I put user controls into it? What are its benefits or downfall versus a Jquery slideshow. Thanks in advance hope to hear you …

Member Avatar for tiggsy
0
190
Member Avatar for lyrico

Hi to all. Can anyone help me with this? I have PHP script the save record. But I want to have time limit in saving the record. When the local time is 4:00 PM, the user can no longer save their record. Please help. Here's my code; if($_POST['submit']=="Save") { $name …

Member Avatar for lyrico
0
188
Member Avatar for atom6402

I have recently encountered dis error while doing <b>page validation</b> for my site. I have been trying a lot ,but still could not find the solution. Being a newbie to PHP, I would be obliged if u guys could help me out. The URL of d site is, [url]http://www.dmcewriteups.co.cc/register.php[/url] I …

Member Avatar for atom6402
0
156

The End.