39,323 Topics
| |
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 … | |
i want to add (+)to add more than textfield for phone [CODE]<form method="post" action="" enctype="multipart/form-data"> <table width="800" border="0" dir="rtl" style="direction:ltr;"> <tr> <td scope="col" style="direction:rtl;"><label for="textfield">name</label> <div align="right"> <input type="text" name="person_name" id="person_name"/> </div></td> </tr> <tr> <td style="direction:rtl;"><label for="textfield">job</label> <div align="right"> <input type="text" name="person_job" id="person_job" /> </div></td> </tr> <tr> <td style="direction:rtl;"><label for="label">mobile</label> … | |
Hi there, I have some problem with accessing API using PHP. Here is the story : I use PHP as my main script on my webserver. I want to retrieve data in database server (oversea). The database server provides API and it's available to download. So I download the API … | |
Here is a PHP code that writes a string on the bottom of a given image. I want to have the image with the string on it to be saved in a folder. The problem is that this script copies the image without the stamped text. Here is the code: … | |
Hi, If i select first checkbox, usually first record is selected. but here last record is selected. This is my problem. Kindly solve this problem. Chella. [CODE]<!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> <title>Revaluation : Sona College of Technology</title> <link rel="stylesheet" type="text/css" href="stylesheet.css" /> </head> <body> … | |
Hi all, i have hosting in [url]www.dreamhost.com[/url] i created .htaccess file in order to hide file extension. and then i upload my .htaccess file to the server but after i uploaded this to the server this file disappeared. how can i do that this file works. can anyone help me? … |
The End.