39,316 Topics

Member Avatar for
Member Avatar for blaaam

Hi! I have started learn about Query and PHP, and i don't know what to do next. I have made table with query help i can show in table records from my Database, so far i have well, but next what i want to do is every record in table …

Member Avatar for Biiim
0
320
Member Avatar for Farhad.idrees

Hi Friends... i just want to make chat in php like "Online help chat" for different website... can anyone guide me where i can get material? Regards... Farhad

Member Avatar for breakzzzz20
0
109
Member Avatar for Wolxhound90

Hey guys, I have a problem with searching for a string within a string. Here's the code I have at the moment: $query = mysql_query("SELECT * FROM information_schema.TABLES WHERE TABLE_SCHEMA = '".$db."'") or die(mysql_error()); while($table = mysql_fetch_array($query)){ $checktbl = $table['TABLE_NAME']; foreach($_POST['fields'] as $f){ $f = substr($f,strpos($f, '.')); if($checktbl == $f){ …

Member Avatar for diafol
0
123
Member Avatar for JGlen

Now i have every thing working, the pagination is a bit fine, only when i click next to go to page 2 or 3, nothing is being shown on the page, the browser shows that i am on the page2 but no data is beeing shown, now when i force …

Member Avatar for JGlen
0
247
Member Avatar for nova37

i have little problem with one algo . first i have two tables there are above one lac records in each table . table 1X structure id domain 1 google.com 2 daniweb.com 3 yahoo.com table 2X structure id domain 1 google.com 2 facebook.com 3 youtube.com now my task is to …

Member Avatar for smantscheff
0
210
Member Avatar for George_91

Hello, I am trying to include a Contact Form in my website. I'm using WAMPserver and Free SMTP Server to test it. The problem is, everytime I click in my button of Send Mail, this error appears in my browser: *Warning: mail() [function.mail]: failed to connect to mailserver at "localhost" …

Member Avatar for pritaeas
0
1K
Member Avatar for don't give up

hello this is my problem ![help11](/attachments/fetch/L2ltYWdlcy9hdHRhY2htZW50cy8zL2hlbHAxMS5wbmc%3D/500 "help11") how can do that in php ? <html> <FORM> <TABLE BORDER="0"> <TR><TD> facbook account :</TD> <TD><INPUT TYPE="text" NAME="facbook account" MAXLENGTH="50"><TD><INPUT TYPE="SUBMIT" NAME="save1" VALUE="save"></TD></TR> </FORM> </html> thanks

Member Avatar for don't give up
0
110
Member Avatar for rogerg

Hello, I'm trying to set up a website where user can upload files to which should be readable by everybody. Logged users should be able to comment on the files and rate the files. I'm new to MySql and quite new to PHP so it has taken me already lots …

Member Avatar for rogerg
0
501
Member Avatar for Susmita_Sikder

Hi all, I am trying to create FAQ page having two drop downs product and topic . Selecting from two drop downs ,go/submit button will search and display FAQs. thanks in advance

Member Avatar for pritaeas
0
79
Member Avatar for apanimesh061

I have a database of 1000K values. How can I use PHP to parse that database in less time ? I am using a foreach loop fr comparison but it takes 15 minutes to parse all data! Should change be done in PHP or SQL ? Please help !

Member Avatar for |-|x
0
61
Member Avatar for doctorphp

Hey everyone, Parsing RSS is not my strong point and I am making a news feed for a client and they want me to use the Yahoo News RSS feed. I am using the following code. <?php $url = "http://news.yahoo.com/rss/europe"; $xml = simplexml_load_file( $url ); ?> <h3 id="ln">Latest News</h3> <?php …

Member Avatar for mschroeder
0
372
Member Avatar for grozadani2007

Hello there, This is my form: <form method="post" enctype="multipart/form-data" action="upload.php"> <input type="text" name="nume" id="nume"/> <select name="an" id="an" > <option value="2010">2010</option> <option value="2011">2011</option> <option value="2012">2012</option> <option value="2013">2013</option> <option value="2014">2014</option> <option value="2015">2015</option> <option value="2010">2016</option> <option value="2011">2017</option> <option value="2012">2018</option> <option value="2013">2019</option> <option value="2014">2020</option> <option value="2015">2021</option> </select> <input type="file" name="images" id="images" multiple /> <button …

Member Avatar for grozadani2007
0
292
Member Avatar for marifard

Hi, I make a page to display all applications from table and few of these applications have an interview dates, location etc in another table. I use this code pasted in this article below. The problem is showing the applications with interviews only and the interviews without interviews are not …

Member Avatar for diafol
0
152
Member Avatar for marifard

I use this code. It works correctly before I made minor changes, I mean, make other input fields and the table field name in mysql but I have some problems from line 14 onwards. With this code I Show some data from database table in a form. can anyone check …

Member Avatar for marifard
0
171
Member Avatar for breakzzzz20

Good Day Experts,,can anyone help me,,i have a codes for inserting,selecting and deleting row data from original table into archieve table: this is the original table `Username password fullname year course breakzzz breakzzzz romel first year prog.` and this is my archieve table: `username password fullnae year course` my plan …

Member Avatar for breakzzzz20
0
232
Member Avatar for kletig

Hi there! I'm using PHP together with jQuery/AJAX to submit a login form without reloading the page. Basically the code works like this: Login.php (The actual form) -> process-login-admin.php (server-side validation and authentication) -> Echo error message The error messages is displayed in a hidden div (#feedback) on "Login.php" that …

Member Avatar for kletig
0
7K
Member Avatar for Venom Rush

Hi I need to manipulate a soap call before it's sent off to the soap server. Currently my soap call is constructed as follows: <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.xxxxxxx.co.za/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Body> <ns1:SubmitStringLead> <xmlLead xsi:type="xsd:string"> <strXml> <Lead> <General> <dealer>419</dealer> <source ref="1334923054">randomstring</source> <enquiry>1</enquiry> <subtype>4</subtype> <comment /> </General> <Prospect> …

Member Avatar for Venom Rush
0
2K
Member Avatar for tahsin.rahit

The problem is, when I load a particular page (user.php) the session variable not work. But on the other pages it works fine. Even in my local host user.php also works fine. Only user.php on remote server is occuring this problem. This is login script <?php require_once 'inc/functions.php'; require_once 'inc/mysql_cnct.php'; …

Member Avatar for tahsin.rahit
0
6K
Member Avatar for 4evrmrepylrning

A while ago I created a PHP application that looks at xml files. I have now been tasked with converting this to Python or Django or Turbo gears(anything as long as it's Python something). I am new at Python and while I have played with Django a bit I have …

0
159
Member Avatar for newbie26

im working on a password verification(php) form when the user wants to change his/her password. new password will be typed twice for confirmation. if the passwords didn't match, a message box will appear (javascript). it already worked but my problem is when that message box appears, all the other fields …

Member Avatar for newbie26
0
138
Member Avatar for zacharysr

I know the title sounds like an easy thing to do. But its not. I want to check that my user's message has 2 -'s in it. Then replace the first - with <s> then the second one with </s> and i dont know how to check for to dashe's …

Member Avatar for jeremym001
0
362
Member Avatar for Wolxhound90

Hey guys, I have some code which returns the column names, but not the actual data. Here is the code I have: $success = mysql_query($final) or die(mysql_error()); echo "<table><tr>"; foreach($_POST['fields'] as $f){ echo "<th>".$f."</th>"; } echo "</tr>"; $i=0; while($row = mysql_fetch_assoc($success)){ echo "<tr>"; foreach($row as $r){ echo "<td>".$r."</td>"; $i++; } …

Member Avatar for Wolxhound90
0
102
Member Avatar for paruhang

hi everybody, iam new to this website and php as well. i get public and private key from recaptcha i have problem in captcha where to post, can anybody help me. i'll be greatful BEFORE PUTTING RECAPTCHA IN COMMENTS.PHP it worsk on page <html> <body bgcolor="000000" text="ffffff" > <center> <form …

Member Avatar for diafol
0
220
Member Avatar for johndohmen1963

hi hope someone can help me i have //get the current date $dateend = date("Y-m-d");// current date //datebegin is current date -99 years $datepast = strtotime(date("Y-m-d", strtotime($dateend)) . " -99 year"); $datebegin = date('Y-m-d', $datepast); // Connect to server and select databse mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select …

Member Avatar for johndohmen1963
0
98
Member Avatar for newprimitive

Hello, my problem is related to uploading images (i keep info data in database and images in filesystem). I plan to generate image path from image ID, that's why i need to get the ID of the last inserted image. For example: image with ID 123456789 has this path /images/123/456/789 …

Member Avatar for diafol
0
75
Member Avatar for lwaterfo

I have a code where I am inserting a new record into a database. I need a way of redirecting the user if they have already entered their information into the database. Here is my php code...how would I modify this to check for an existing record based on their …

Member Avatar for diafol
0
67
Member Avatar for CarterLangley

Hi all, I have a table with quite a bit of columns in it. Nothing stored there yet, but will be soon. What I need to do is populate a drop down list with the first name and last name of the people in the table and also the unique …

Member Avatar for diafol
0
141
Member Avatar for hankmeyer

Hello, I currently have a script that Uploads an image, resizes and saves successfully. I am having trubble understanding how I would rename the uploaded image according to the other image names in the directory. For example there are 3 images in the directory (Image1.png, Image2.gif and Image3.jpg) How would …

Member Avatar for cereal
1
4K
Member Avatar for stangn99

Hi All....this looks like a nice place to ask questions :) I'll start off by saying that I'm a total noob. I have a DIV with a static height set. Some dynamic content is being loaded into the DIV via PHP. My problem is, when I click on a link …

Member Avatar for aditya19897
0
2K
Member Avatar for Mko_

So, I have this following snippet of code: if (isset($_POST['type1'])) { mysql_query("UPDATE table SET status = 1 WHERE id = '". $_GET['repid']."'", $c2) or die(mysql_error()); } if (isset($_POST['type2'])) { mysql_query("UPDATE table SET status = 1 WHERE id = '". $_GET['repid']."'", $c2) or die(mysql_error()); } if (isset($_POST['type3'])) { mysql_query("UPDATE table SET …

Member Avatar for fobos
0
129

The End.