39,316 Topics

Member Avatar for
Member Avatar for killbill07

I have a folder with pics and I need to use scandir() to show all images in a html file. But scandir returns, for example, "image.jpg1". Why? How can I do that withouth problems?

Member Avatar for monica singh
0
151
Member Avatar for navi17
Member Avatar for pritaeas
0
62
Member Avatar for saadi06

//i have a problem i have made an edit page and it is working properly and i have done image uploading in it but if the user updates without uploading any image its previous image is removed can any body help me how to get the previous image my code …

Member Avatar for saadi06
0
165
Member Avatar for niths

hi all, i need to save the uploaded image in some images folder with uploaded date folder and then image like images/2010-11-01/image.jpg can any one help me.. i tried this...it is working fine but wat i want is i need to create uploaded date folder and save in that folder.. …

Member Avatar for niths
0
119
Member Avatar for vivi288

Hi guys, you've helped me out before and I'm hoping you'll be able to help me out again. This is actually a two-part question. I have a gallery which I'm trying to create, and while the current code I have works with one table only, but after doing union selects, …

Member Avatar for vivi288
0
139
Member Avatar for phaedrusGhost

Hi all, I am totally pulling my hair out at the moment. The pages I have included sessions on all work great except when I make submit a form or basically anything I do in relation to MySQL. Is there a typical reason as to why this would happen? So …

Member Avatar for phaedrusGhost
0
80
Member Avatar for avocado_juice

Hi, I have this code. It is not working properly. Anybody may know the solution? Thank you [CODE]<?php include 'admin_homepage.php' ?> <div id="sidebar1"> <b></b><br /></br></br><img src="MMU_logo.jpg" width="180" height="150"/><br /> <a href="admin_view_student.php" style="font-size:13px" >View Student</a><br /> <a href="admin_new_student_reg.php" style="font-size:13px">Add Student</a><br /> <a href="student_excel.php" style="font-size:13px">Get Excel File</a><br /> <a href="student_mailing_list.php" style="font-size:13px">Get Mailing …

Member Avatar for avocado_juice
0
822
Member Avatar for avinash_545

Dear All, I am currently working on a web assignment. But I do not know what is wrong with this ^piece of code. Can anyone of you find the bug in it please ;[code]<? $con=mysql_connect("localhost","root",""); if(!$con){die("could not connect".mysql_error());} mysql_select_db("idareyou",$con); echo("dbconnect is working"); $fname=a;//$_GET('search_fname');echo $fname; $lname=a;//$_GET('search_lname'); // include("dbConnect.php"); echo "blaljfkdjfjdfk"; echo …

Member Avatar for avinash_545
0
208
Member Avatar for showman13

OK, I've been searching numerous discussion boards and searching the archives and the web for just the right answer to this question, even posted related questions on a couple, and got some responses, but they never really 'Solved' my dilema. I've concluded that I can't use a url like [url]http://username.domainname.com[/url] …

Member Avatar for showman13
0
176
Member Avatar for zuerich-finanz

Hi. i need to have some Vars accessed global. Is there a problem to store the data in $GLOBALS ? regards michael

Member Avatar for diafol
0
29
Member Avatar for Bounty Hunter

I am filling a dropdown list and an HTML page with the contents of a MySQL database (the tablename is in the variable $tablename2). The file contains a single field, "BusinessCat", with 20 or so unique records. The code below is an attempt to display every category on an HTML …

Member Avatar for diafol
0
349
Member Avatar for aMOEBa

Hi, I need help with an algorithm to allocate rooms to people. I need to shuffle through a list of rooms to assign a room to a person and after the fourth person is assigned to the room, it should be out of the list(should be unavailable). I have not …

Member Avatar for diafol
0
173
Member Avatar for mana_panigrahi

Hi All, Can anybody share PHP code to generate excel file by querying MySQL database. Thanks in advance..

Member Avatar for avocado_juice
0
871
Member Avatar for TechySafi

Wait you don't need to read the whole things :) Just scroll down, and see what I've asked :) [CODE]stdClass Object ( [friends_count] => 54 [description] => i'TS THE digiTAL vERSiOn 0b devilZ! tECH & mUUsic fReak. sImpLE buT.......! [screen_name] => 2020Volt [profile_sidebar_border_color] => 181A1E [status] => stdClass Object ( …

Member Avatar for TechySafi
0
158
Member Avatar for lukemaister

If anyone manages to help me fix this i'll be more than happy. :) SO my problem is this, i have a drop-down menu of different times of day. e.g. 00:00; 00:15; 00:30; 00:45; 01:00; 01:15 up to midnight. What i want to do is load the drop down with …

Member Avatar for lukemaister
0
105
Member Avatar for Ritzlore

Hi there. I am early in learning PHP and have been reading your forum with great interest and also admiration for how great you all are helping out newbies and even looking over their code for them. And you're so logical and organized in your explanations. It's a beautiful thing …

Member Avatar for hielo
0
447
Member Avatar for Dani

After being requested to write a tutorial a few times, I've finally found the time to create a mod_rewrite tutorial for vBulletin 3. What this tutorial will allow you to do is make your vBulletin forum search engine spiderable - for Google and all the others. [i]<< update >>[/i] [i][b]This …

Member Avatar for zuerich-finanz
1
8K
Member Avatar for Borzoi

If I was to set a wildcard in my subdomain (*.example.com) to redirect to www.example.com, would that affect any pre-existing subdomains (for example, blog.example.com) or would it only redirect things I haven't set?

Member Avatar for Borzoi
0
129
Member Avatar for sha11e

$fname = "Kevin"; $fname_match = preg_match('/^[A-Za-z]{2,20}$/', $fname); if($fname_match==true) { echo "All matches... true?"; } else { echo "All matches.. noo?"; } I should be getting the first one right? But i get the else message.... Why? 'Kevin' should match?

Member Avatar for hielo
0
106
Member Avatar for ShubhadaLitke

Hello all, I have same problem. in javascript i called php fun using <?php fun1()?>. it run successfully. But i want to pass variable to that function which is a value of input text box. i.e var tt=document.getElementById('cname'); and i want to pass that tt value to php function. How …

Member Avatar for Gilette
0
2K
Member Avatar for Borzoi

Hello everyone, If I was to set my site to redirect any subdomain to the main page in the htaccess file like so: [code] RewriteCond %{HTTP_HOST} ^(.*).example.com RewriteCond %{HTTP_HOST} !^www.example.com [NC] RewriteRule ^(.*)$ http://www.example.com/ [P] [/code] Would this mean that if I was to type in elephant.example.com it would redirect …

Member Avatar for Borzoi
0
271
Member Avatar for ckdoublenecks

I think the below code will do the password If I can figure out how to direct this program to the the main program if the password is correct. Can someone help me with the link, please? [CODE]<?php mysql_connect(localhost,root,""); mysql_select_db(entrydb) or die( "Unable to select database"); if(!empty($_POST["submit"])) { $password = …

Member Avatar for ckdoublenecks
0
187
Member Avatar for sha11e

Database: motion_world table: accounts columns: id | username | password | register_date | account_level When i go into HeidiSQL -> Query and write: [CODE]SELECT account_level FROM accounts WHERE username='Sha11e'[/CODE] it returns: administrator But if I, in a PHP file, write: [CODE] mysql_connect("localhost","root",""); mysql_select_db("motion_world"); $hi = mysql_query("SELECT account_level FROM accounts WHERE …

Member Avatar for psycode
0
82
Member Avatar for monica singh

Hi, i want to calculate the domain age of any given website or domain name.... ex: google.com domain age .

Member Avatar for chrishea
0
62
Member Avatar for FlowerPower1

Does anyone know how I would go about creating a IM bot which repeats back what you say?

0
68
Member Avatar for tobeye

hello, I'm new to the PHP-scene and I'm having difficulties with creating a log in system. The login system writes to a postgresql database. when I try to run the page I receive this error: [CODE]Warning: pg_num_rows(): supplied argument is not a valid PostgreSQL result resource in /var/ftpdirs/512544/PHP/login/adduser.php on line …

Member Avatar for hielo
0
334
Member Avatar for khushhappy

<body> <p> <?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("select", $con); $result = mysql_query("SELECT * FROM view"); ?> </p> <form id="form1" name="form1" method="post" action=""> <table width="100%" border="1" cellspacing="0" cellpadding="0"> <?php while($row = mysql_fetch_array($result))?> <?php { ?> <tr bgcolor="#F5F5F5"> <td > <?php echo $val['name']; …

Member Avatar for khushhappy
0
99
Member Avatar for hamayun_4u2004

[color="#4169E1"][size="3"][font="Georgia"][b] hope all will be fine... i want to print a page by using php.... but not getting any solution... plz help me... table width=800px and height=700px .... when i use the java script print function {window.print()} it print the whole page..... including the URL text(i-e: [url]http://localhost/ebooks/print_page.php[/url])... but i want …

Member Avatar for paulrajj
0
106
Member Avatar for SunnySideUp

Hi, I have this image script and I want to upload the image and then save the file into a Database, but I keep on getting errors(a blank screen). Here's my code: [CODE] if(isset($_FILES['logo'])) { if(($_FILES['logo']['type'] == "image/jpg") || (($_FILES['logo']['type'] == 'jpeg') && (($_FILES['logo']['size'] < 524288)))) { $logoname = $_FILES['logo']['name']; …

Member Avatar for SunnySideUp
0
145
Member Avatar for shrikantdhyani

Please help me I want to write url like [url]http://mysite.com/cpanel/manager/subadmin/view_event.php?e_id=137[/url] to [url]http://myurl.mysite.com[/url] in PHP myurl comes from database on behalf of e_id. If user enters [url]http://myurl.mysite.com[/url], on behalf of "myurl",e_id retrived from database and append to this url [url]http://mysite.com/cpanel/manager/subadmin/view_event.php?e_id=137[/url] My mail id is -<<Email Snipped>> Thanks in Advance

Member Avatar for monica singh
0
93

The End.