39,326 Topics
| |
Hi All: I have 2 php files feeding one MySql record. I have an INSERT query in file1.php working fine, it then sends me to a highly animated form file2.php that calls a processor.php file. The processor.php file needs to update the mySql record. I have [U]tested[/U] the processor file … | |
Hi, I am not sure if my problem belong to this forum. However I am using PHP and hence I will post it here. I have a secondary database that is MS Access.Curently I have managed to export it to another database of mine in which I can delete and … | |
Hi there, I am trying to have a PHP variable in my link, so that my final link would look like: example.com/eformat/[B]variable-goes-here[/B].rtf I've managed to get example.com/variable-goes-here but no more than that. I really don't know PHP very well, so help would be greatly appreciated. Please excuse my beginner level. … | |
Hello I am a asp newbie trying to send an notification email and update an access database at the same time. My database is being updated but the email portion is not working- the email portion is in php- Can I call it from my asp page and if so … | |
1. i cant login my login page while i use the encrypted password using md5(). 2. session is not working in my pages. 3. logout button is not working. Main_Login.php --------------- <!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" /> <meta http-equiv="Expires" content="Wed, … | |
Hey guys, I need to be able to get a certain value out of the following. [code] Job# : 442254 Contact : TO BE ADVISED Model : BZ500 50GN02630 Purchase Order/Your Reference : Contract Type: C3 CopyPlan - Contract Minimum Job Type: H Audit, Admin, Housekeeping Fault/Problem(s) reported: CHECK SENTINEL … | |
Problem when i am using $webRoot / $srvRoot as a value for a variable or in defining a constant Code & problem is below: [CODE]<?php ini_set('display_errors', 'On'); error_reporting(E_ALL); $thisFile = str_replace('\','/', __FILE__); $docRoot = $_SERVER['DOCUMENT_ROOT']; $webRoot = str_replace(array($docRoot, 'testing.php'), '', $thisFile); $srvRoot = str_replace('testing.php', '', $thisFile); define('WEB_ROOT', $webRoot); //error on this line … | |
Hi guys, Alright, I think it takes a guru to solve this, visited every single tutorial and htaccess generator out there... I'm trying to use mod_rewrite to get pretty urls. As long as I pass just 1 variable, it's cool, but when I try to pass 2 variables,like this [url]www.example.com/firstone/second[/url] … | |
hello, i'm a newbie in database and php. I'm having a difficulty of retrieving images that have been uploaded to my database. Actually I'm wondering if the image is been saved on the database, help me! [icode]while($row = mysql_fetch_array( $result2 )) { // Print out the contents of each row … | |
can any1 plz help me write this code... i want to print the valu of variable z. there are three variables x, y and z x is initialized some where else... y=x z=z+y first call of function x=10 y=10 z=10 second call x=20 y =20 z=20+10 third call x=30 y= … | |
Another one that i cant seem to get my head around. I i need to populate a secondary dropdown box based on what the user selected in the first one. say for instance the first dropdown box contained: Dog, Cat & Rabbit. If the user selects, Dog, i wish for … | |
Hello peeps, got a fast question here! How can i echo out some text if the current user logged in with the username Sorcher ? Hard to explain for me, but im guessing this could be done in a few lines. | |
Here is my problem. I have a site into which users can login. It has a logout button to let the user log out. My problem is when they close the browser without logging out, how can I close the logged in entry in the database?? I need a way … | |
i have made a contact us form that emails to my email,, but the problem is that i made a text field to avoid spam machines, which says 1+1= ? , and the answer in the input field must be always 2 [CODE] if(isset($guess) == "2"){ die("Please Enter all the … | |
Hello every1, i'm building a site that requires logging in before accessing other pages(like facebook or any mail system). At first(in index) i create an object of my sessions class, say $session. The constructor of sessions class calls session_start() php function. $session checks if user logged in or not(maybe he … | |
see this code [CODE]<?php $username = $_POST['username']; $password = $_POST['password']; if (isset($username,$password)) { $connect = mysql_connect ("localhost","root",""); mysql_select_db("phplogin"); $query = mysql_query("SELECT * FROM `users` WHERE username ='$username' and password='$password'"); $numrows=mysql_num_rows($query); if ($numrows!=0) { while($row = mysql_fetch_assoc($query)) { $dbusername = $row ['username']; $dbpassword = $row ['password']; } if ($dbusername=='username'&&$dbpassword=='password') { echo … | |
How do I replace 63 strings in a .sql via php. Im making a multiforum software and I can't figure this out. | |
i am just learning how to code for oop and i have an error that i have not seen Fatal error: Class 'queryUpdate' not found in testingfile.php on line 28 line 28 [CODE] $queryUpdate = new queryUpdate($table, $fields, $condition); [/CODE] what i am trying to run. which is in another … | |
Please excuse my newness. Currently I know how to execute a php script by simply naming the script [filename].php and browsing to that file on my webserver. I have also learned how to parse and display an xml file using php. What I want to do is have a .xml … | |
I am currently trying to set up my Database for a small store. I would use something like Zen-Cart but I dont think that is necessary at this level. What I am stumped on is what cell setting within my products table would I put the actual paypal code in … | |
Hi: I'm having an issue posting to MySQL using the animated_form.html below. My objective is to have 4 db entries posted to MySQL when the user clicks on the <a href="javascript: submitform()"><input alt="Show Results" id="btn_results" src="a_data/form_btn_show_results.png" type="image"></a> image. The form uses jquery and it produces 0 results in MySQL. Using … | |
Hello..ia it possible to make a crystal report using php?please help | |
Hi, I am trying to display multiple images on a search page. If name comes up in search so does image under same user id. It works only for one image for all names same. Example: Facebook, same name found in search but different images. I'm thinking a do while … | |
Please help me to open at html file from the server ,edit and save it, using php. The code below returns a blank page i.e. no syntax errors but no output. home.htm is the exact name of the file on the server and it has 776 permisions. $openedfile =fopen(home.htm,'r+'); //open … | |
what is the problem? i have this message when insert? [QUOTE]Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '4'', `data_no` = ''1'', `note_date` = 1293628283, ' at line 4[/QUOTE] and this is … | |
I have been trying to get this directory to work properly and am about to tear my hair out!!:icon_mad: This is my code: [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <title>Directory</title> <body> <?php error_reporting(E_ALL & ~E_NOTICE); $lname=$_POST["lastname"]; $fname=$_POST["firstname"]; $addr=$_POST["address"]; $cty=$_POST["city"]; $stat=$_POST["state"]; $zip=$_POST["zipcode"]; $acode=$_POST["areacode"]; $phone=$_POST["telephone"]; $words[] = wordCheck($lname, … | |
Can anyone tell me how I would remove a substring from the end of a string. The string in question could have any one of three substrings at the end of it that need removed, so I wouldn't know in advance what the length was. | |
Greetings! This n00b has a "search engine" dedicated to extracting relevant information from log files. It works by parsing preset fields in the log filename. I'd like to have some notification when the search returns no rows as I am planning to add more search options. Here's my code: [CODE] … | |
Ok so I have been working on a little php (with my VERY brief background). The goal of the script is to take a students username and password, and then show them there grades. However when I test the script, it just falls through and redirects to the final else … |
The End.