39,326 Topics

Member Avatar for
Member Avatar for decmatt

[Code] <? //connect to mysql //change user and password to your mySQL name and password mysql_connect("localhost","******","******"); //select which database you want to edit mysql_select_db("*******"); //If cmd is not hit if(!isset($cmd)) { //display all the news $result = mysql_query("select * from Cars"); //run the while loop that grabs all the news …

Member Avatar for rajarajan2017
0
101
Member Avatar for jonathan96

Im trying to output a dropdown select menu from an array, and it all works fine, but the default option isnt working. Heres what ive got: [CODE] <?php $usertz = $user->$main["timezone"]; foreach($timezonearray as $tz => $off) { echo "<option value='$tz'"; if($tz == $usertz) { echo 'selected="selected"'; } echo ">$tz"; if(array_key_exists($tz, …

Member Avatar for jonathan96
0
102
Member Avatar for vijaysgi

Dear All I am trying to write PHP code to print the job automatically. It means, i need to schedule the job in windows server and based on schedule PHP code should execute to send the job to print the documents. I am struggling to send the job to printer. …

0
49
Member Avatar for surfgrommett

OK I have made a little progress and now face something else. I will paste my code here. OK here goes. I am loading a php page from another page by clicking on a table row. This table is filled with data from mysql. When i click on a row …

Member Avatar for surfgrommett
0
150
Member Avatar for 4789787

This is the error I keep getting, This script works fine with the local SQL server running on my windows test box but when I try it with the SQL server running on my shared web hosting account with go daddy it gives this error, I think obviously their databases …

Member Avatar for 4789787
0
326
Member Avatar for mohammed2raja

I hv design a progress bar, the method start_progrss() starts the progress bas and the method end_progrss() stops the progress bar. I develop two file 1. loginfile.php and 2. downloadfile.php My loginfile.php contain two text fields user name and password. /*********loginfile.php ************/ [code=JavaScript]function mysubmit(){ //code start_progress(); // here i start …

Member Avatar for Zebulons
0
216
Member Avatar for dan_t

Another question, Is there a way in php to send emails without having to use the "mailto:" ? Most everything I have seen uses this method, but a lot of people don't use MS Outlook. Thanks Dan

Member Avatar for dan_t
0
90
Member Avatar for k2k

i was having fun with php until i hit this road block... geolocation.class.php is in the same directory as my index.php.. anyone has any idea why it can't find it? =( /* * this is part of the index.php * / [code] <div id="midBox"> <table border="0" align="left"> <tr><td><script type="text/javascript"> var …

Member Avatar for saiprem
0
275
Member Avatar for sallecpt

hey guys. okay, I know how to count form values. something like; <?php echo count($_POST['field']; ?> where the field would be something like field[i] however, I am cracking my head to get a solution to count, but only where the field has a value. Please, someone, help me with this …

Member Avatar for diafol
0
216
Member Avatar for dan_t

Ok guys, I've kind of got this file half way working, but I get this message: [B]Notice: Undefined index:[/B] uploadedfile on line whatever. along with this: The file has been uploaded. which is the good part. But I don't understand why I always get those undefined errors. [CODE]$uploaded_size =''; $uploaded_type …

Member Avatar for dan_t
0
127
Member Avatar for surfgrommett

Hi. I know my description wasn't good but let me try to explain what I want to do. I have two tables on a page, both are inside of iframes (because i need scrolling) table one is filled with day, date, story, and chapter info for a set of stories. …

Member Avatar for diafol
0
102
Member Avatar for lideth

hello all! i try to deactive my plugin,it's just show this message: Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\Phone_Shop004_wordpress\wordpress\wp-content\plugins\gallery_ffic4hotel\gallery_hotel.php:1) in C:\xampp\htdocs\Phone_Shop004_wordpress\wordpress\wp-includes\pluggable.php on line 868 .please anyone help!

Member Avatar for diafol
0
131
Member Avatar for paratge

hi, I'm using Dreamweaver MX and I've got a problem with 2 pages including repeated zones. I added to these pages a dynamic text, and after this, in test mode I have a parse error at last line of the code. It seemed to me my code was clear. So …

Member Avatar for php-coder
0
521
Member Avatar for reedd5404

is this possible with php? I have a login script and i need a way to check if the session exists so users can view pictures in the directory

Member Avatar for diafol
0
109
Member Avatar for dan_t

Hi I'm using wamp on my local machine. I have my form and php script made but I'm not sure how to place my folder to recieve the file. ie:[CODE]move_uploaded_file($_FILES['file_that_was_uploaded']['tmp_name'], $_SERVER['DOCUMENT_ROOT'] . '/images/' . $final_filename);[/CODE] I'm not sure how to set my path on the serve for my images folder. …

0
54
Member Avatar for php-coder

hi guys, im using dreamweaver8, do bear with me I'm a newbie. Im trying to insert multiple rows from a form into the same table in mysql. I mixed some code I saw online with the code generated in dreamweaver and then when I tried running the page I got …

Member Avatar for JRM
0
237
Member Avatar for moivet

Hi! This code should replace <br> or <br /> between certain elements in text posted in textarea element. I use [B]nl2br[/B] for detection of new line. That function also adds <br /> between html elements...for example <table>[COLOR="Red"]<br>[/COLOR]<tr> elements... Code works fine, but... When used multiple column table, code "eats" all …

Member Avatar for moivet
0
185
Member Avatar for danielagaba

hi i'm pulling data from a mysql database and displaying it in an html table. my problem is i want to be able to have the information broken into pages so that users dont have to scroll down a page but i'm not sure how to do this. thanks

Member Avatar for diafol
0
93
Member Avatar for niths

hi all, i am having a problem. i had a projects page and list of projects can be seen with radio buttons. so wen we select a project and click submit we go to the upload page and the value of radio button is send to upload page by url. …

Member Avatar for saiprem
0
108
Member Avatar for muralibobby2015

hello... i am doing login verification. there is tabs in index page thats why i am choosen this. actually after entering the values of email and password how to check that values are in database or not using javascript. and i will show message in alert box. this is my …

Member Avatar for saiprem
0
4K
Member Avatar for Pityu

Hey there. I am attempting to create an administrator option, which would be the following: When the administrator checks the checkbox, it would automatically save it to the db. Usually update it. [CODE] while($row = mysql_fetch_array( $retrieve )) { echo "<td><input type=\"checkbox\" name=\"noutate\" onClick=\"this.form.submit();"; if (isset($_POST['checkbox'])) { $update ="UPDATE content …

Member Avatar for saiprem
0
846
Member Avatar for ivanichi

Hi friend, i want my table on database can be view in excel, but i have problem, how to set colspan, rowspan and bgcolor in excel with php ? can you help me.. thanks

Member Avatar for saiprem
0
78
Member Avatar for InsaneVr6

I wrote a script that will take data and post it to a database no problem, but at the same time I need the data to be emailed to two different email addresses and I never get an email. My code looks pretty solid and I am not sure what …

Member Avatar for InsaneVr6
0
165
Member Avatar for paragouldgamer

Ok so I am a rookie in php and working on populating drop down lists from a mysql database. I have a drop down list working that contains words, but my drop down list for my date refuses to work and I don't know what the difference between them should …

Member Avatar for paragouldgamer
0
111
Member Avatar for ctaylo21

Hey Guys, I have a theoretical question, I can't really post my code. But I have four results from reads to a database using php. I then read from an xml file using javascript using a loop. I am basically creating a chart of four variables with several different values …

Member Avatar for ctaylo21
0
187
Member Avatar for phingko

I wonder if I should post this in AJAX forum. I want to compare the xml value with the PHP that I have using a parameter. So far I can compare only one of them. How about if there are two values that I want to compare? I tried using …

0
61
Member Avatar for azegurb

here i dont understand what does this function do. any can explain it to me thanks beforehands [CODE]function query($qry) { if(!isset($this->database_link)) $this->connect(); $result = mysql_query($qry, $this->database_link) or die("Error: ". mysql_error()); $returnArray = array(); $i=0; while ($row = mysql_fetch_array($result, MYSQL_BOTH)) if ($row) $returnArray[$i++]=$row; mysql_free_result($result); return $returnArray; } } [/CODE]

Member Avatar for LethargicCoder
0
93
Member Avatar for tweakernut

Okay, so I have this php code that I've been working on and I seem to be getting an error on the very last line of my code which is the "?>". I'll post the code and the error below: Error: "Parse error: parse error in C:\wamp\www\Services\VIN.php on line 64" …

Member Avatar for tweakernut
0
126
Member Avatar for danielkull

Hi, I am in a process of selecting a PHP framework which we will use for development of websites. we are almost ready to go with CodeIgniter an/or Zend. However, in our newest project we need a functionality which allows to upload text (with styles) from Word Document to database, …

Member Avatar for martin5211
0
125
Member Avatar for Bazzaah

Hi everyone, I'd be grateful for some help please. My problem is this - I am trying to find a way to pass the content of a db search from one page to another page, if that's clear. Each file opens with [code] session_start(); [/code] This is the database search: …

Member Avatar for Bazzaah
0
121

The End.