39,393 Topics

Member Avatar for
Member Avatar for SamiBH

Hello I want to learn how to make a script, that reads 2 tabels to find and print top 10 users Table1: postname - userid Tabel2: username - id ( userid = id ) the script needs to count and print top 10 users with most posts #1 userA 1000 …

Member Avatar for SamiBH
0
110
Member Avatar for php.devesh

Hi to reader, i used all the tricks. but every time failed. Let i tell u what i have and what i want. i have a website. [url]http://www.directorylistforseo.com[/url] and in this website some ulrs are exist Like a) [url]http://www.directorylistforseo.com/search.php?id=93[/url] b) [url]http://www.directorylistforseo.com/search.php?subcat=110[/url] and i want convert in into a) [url]http://www.directorylistforseo.com/search/id/93[/url] b) …

Member Avatar for arunss
0
162
Member Avatar for Heila

Checkebox doesn't hold its value when i use jQuery styling plugin wich allows me to skin form elements. but when i remove the jQuery the code works !! can someone plz tell me the way to fix it ?! Code: [CODE] <html lang="en-US" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> <head> <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type"/> …

Member Avatar for JRM
0
311
Member Avatar for nejix

Dear all, I get the following problem: My users register on my website and enter a date of birth into the database (Mysql, DATETIME field). Now I would like to create a query that shows the upcoming birthdays within X days. For example: name [varchar(25)] :Tim birthday [DATETIME] : 1984-01-23 …

Member Avatar for Will Gresham
0
71
Member Avatar for disc

Hi all, After moving my PHP-code from a Windows Server to a Linux one I have problems with the $_SESSION variables. When I login an click a menu option, all my $_SESSION variables get cleared and I have to login again. Does anyone recognize this problem and have a solution …

Member Avatar for cwarn23
0
185
Member Avatar for aidandabest09

Hey ive followed a guide on here and i managed to setup a register place but when i login it says [CODE]?php session_start(); if (!$_SESSION["valid_user"]) { // User not logged in, redirect to login page Header("Location: login.php"); } // Member only content // ... // ... // ... // Display …

Member Avatar for vaultdweller123
0
74
Member Avatar for mmxbass

Reinventing the wheel every time I need to do a site with file upload is getting a bit old. There must be a better way. I've looked for a php uploader class but alot of them seem incomplete, poorly documented, or just plain sketchy. I'm looking for something that: [LIST][*]MIME …

Member Avatar for mmxbass
0
74
Member Avatar for zeroge

Hi I use the following form validation and it works all fine, except my email input does not get validated. Input type = email field name = emailto this is the code: [CODE]function formCheck(formobj){ // Enter name of mandatory fields var fieldRequired = Array("emailto","from", "emailfrom","zigi"); // Enter field description to …

Member Avatar for zeroge
0
189
Member Avatar for genieuk

Hi, I wanted to ask professional members who has built websites in the past wheter you include all your include files in the <head></head> section of your site. I split my design in two header-inc.php and footer-inc.php, obviously the <head></head> section will be in header-inc.php. Reason is most of my …

Member Avatar for almostbob
0
162
Member Avatar for ayesha789

Hi I am using XAMPP . I have developed a LOG IN System. How I can check either User is ONLINE or Not.

Member Avatar for elisha24
0
1K
Member Avatar for swap.543

I want to know how do i post my form values in database. I am creating widgets dynamically using javascript function and want to store values posted by those dynamically created widgets in database. here is my code [CODE]<script language="javascript"> var inival=0; // Initialise starting element number // Call this …

0
44
Member Avatar for Venom Rush

Hi All I'm trying to build a page that has a captcha and allows for a file upload. Currently when I select a file, fill in the captcha and hit submit the file is uploaded to the server in a temp directory before checking the captcha. I need the captcha …

Member Avatar for Venom Rush
0
61
Member Avatar for dolu

Hi all.. I have written one php code to kill a process on my shell. for this i have used shell_exec function. the code is: start.php [code] <?php echo "into php"; shell_exec ('killall -9 sshd-sim'); //sshd-sim is the process to be killed echo "out of php"; ?> [/code] the problem …

Member Avatar for dolu
0
2K
Member Avatar for 68thorby68

I am try to put the finishing touches to a mail function, and would like to show an alert to tell the user the form has been submitted correctly. I would then like to redirect them to another page in the site. The alert works OK on its own, but …

Member Avatar for 68thorby68
0
162
Member Avatar for RicardoE

Hello, folks at Dani Web I'm a new to Dani Web and I hope to be helpful to a lot of people, but first I want to ask something. You see I have a huge problem, it begins with a desktop app I'm currently coding written in C# for a …

Member Avatar for RicardoE
0
101
Member Avatar for talk2sachi

Hi all, I'm very new to php and I'm working on a project that require to create compcard that should be saved in a folder (uploade) which is working properly. The problem is that now I have to preview that copcard (images) and ask user to save it or not. …

Member Avatar for Wraithmanilian
0
101
Member Avatar for sifounas

Hi, i am a php programmer who has no previous programming experience neither in java nor in c#(sharp). My goal is to learn both languages java and c#, so i am looking for an experienced programmer who has in depth knowledge of both languages to suggest me which one to …

Member Avatar for JamesCherrill
0
131
Member Avatar for stangn99

Hey guys...I've run into a little issue (noob here). I’ve setup a little application for scheduling days + times in different rooms. I’m trying to implement some sort of an error check which determines is someone has already been scheduled for a certain day, time(range), and certain room. For example: …

Member Avatar for stangn99
0
135
Member Avatar for ronaldpaul

[CODE]<select name="splace" onchange="eval(this.value)"> <option value="javascript:show_loc('1');">Chennai</option> <option value="javascript:show_loc('2');">Coimbatore</option> </select>[/CODE] In the above code, in the option the value property is given as a javascript. Since in IE the onclick function doesn't work I've placed onchange in the select and then given the javascript in the option value. Now to save the …

Member Avatar for wrivera
0
169
Member Avatar for junezy4

I need to make a password in php and javascript (with html) so that if the user wants the password to be 6 digits long, then the password is y0z0z2z4z6y2z0z2z4z6y4z0z2z4z6y6z0z2z4z6… If the password is 4 digits long, then the password is y0z0z2z4y2z0z2z4y4z0z2z4. THESE ARE NOT RANDOM NUMBERS. There is a …

Member Avatar for Rashakil Fol
0
120
Member Avatar for Venom Rush

Hi all I found cURL and want to use it to upload a file after a form has been submitted. I found the following code on [URL="http://php.net/curl"]http://php.net/curl[/URL] [CODE=php] <?php /* http://localhost/upload.php: print_r($_POST); print_r($_FILES); */ $ch = curl_init(); $data = array('name' => 'Foo', 'file' => '@/home/user/test.png'); curl_setopt($ch, CURLOPT_URL, 'http://localhost/upload.php'); curl_setopt($ch, CURLOPT_POST, …

Member Avatar for wrivera
0
131
Member Avatar for Wraithmanilian

Question to toss out to the group. I have on many occasions created a daemon for things like XML Sockets and Flash-based socket chat. My question is concerning sound and/or video. Are there any of the veteran posters here that have had hands-on experience with socket-streaming video or audio? I …

Member Avatar for Wraithmanilian
0
90
Member Avatar for Jellybaby

For my college I need to make a game called Lingo and I'm not even close to finding out how to do it since I was only given 2 lessons so far. If anyone has existing code or knows some functions or ways of helping I'd appreciate it.

Member Avatar for Jellybaby
0
195
Member Avatar for mohammadxxx

hi i have this code (Latest Threads IN Marquee ) and want when click on any link that open in new tab . [CODE]global $db, $vbulletin; if($vbulletin->options['latest_Threads_order']==1){ $latest_Threads_order="order by thread.dateline Desc"; }elseif($vbulletin->options['latest_Threads_order']==2){ $latest_Threads_order="order by thread.views Desc"; }elseif($vbulletin->options['latest_Threads_order']==3){ $latest_Threads_order="order by thread.replycount Desc"; }elseif($vbulletin->options['latest_Threads_order']==4){ $latest_Threads_order="order by thread.lastpost Desc"; }elseif($vbulletin->options['latest_Threads_order']==5){ $latest_Threads_order="order by thread.dateline …

Member Avatar for mohammadxxx
0
162
Member Avatar for c_Newbie

Hi everyone, I hope im posting in the right section. I'm desperate searching for an algorithm which tells me the similarity between two java codes. Some kind of anti-plagiarizer. The algorithm I found were mostly written in languages like C# .. I'm trying to write it in PHP, even though …

Member Avatar for pritaeas
0
117
Member Avatar for takeshi

Hi..Good 'day! wanna ask that is there any code in uploading image in php..i wanna add field name in my [B]candidate table[/B] in my database..and i wanna add there[B] image[/B] but i do not know what's the right data type am going to use..as well as the code..

Member Avatar for takeshi
0
112
Member Avatar for takeshi

hi...My friend of mine told to use this code [CODE]if($session->isAdmin()) the check if the user is logged in & has admin privileges if($session->logged_in) to check if the user is logged in (simple user) [/CODE] in login system.but it doesnt work at all..i want that if i login into the system,my …

Member Avatar for takeshi
0
93
Member Avatar for Aamit

Hi, I my application lots of business name with their address store in DB. i want to show google map for them. [COLOR="Red"]How to show google map from address. Or add new column for latitude and longitude? [/COLOR]

Member Avatar for K0ns3rv
0
121
Member Avatar for veledrom

Hi, I have a folder with full of doc files. Instead of downloading the files one by one, is there any way of zip(rar)-ing them and download in one go with PHP? Thanks

Member Avatar for darkagn
0
22
Member Avatar for chienee

[code] <?php session_cache_limiter('private,must-revalidate'); session_start(); require_once("config.php"); include ("classes/db_functions.php"); include ("classes/display.php"); $dbf=new db_functions(SM_DB_HOST,SM_DB_USER,SM_DB_PASS,SM_DB_NAME); ?> <link href="style/report.css" rel="stylesheet" type="text/css" /> <?php if (@$_POST['Submit']=="Save Report") { $sql = "select * from customreport order by id desc"; $linkID=mysql_connect(SM_DB_HOST,SM_DB_USER,SM_DB_PASS); mysql_select_db(SM_DB_NAME, $linkID); $result = mysql_query($sql)or die(mysql_error()); $nume = mysql_num_rows($result); $row=mysql_fetch_array($result); if (!empty($nume)) $nume = $row['id'] + 1; …

Member Avatar for cwarn23
0
304

The End.