39,402 Topics
![]() | |
Hello, I have a few Text Area input fields when I want to allow my users to enter text with hard returns. On my process page, I am using: [CODE]$Note = addslashes(nl2br($_POST['Note']));[/CODE] to convert the strings to be able to be pushed to my mySQL DB. This functions great. I, … | |
Here is the error I recieve: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home1/edubnini/public_html/mysql_db_size.php on line 1 Here is the output of the script: [url]http://www.edub9intl.com/mysql_db_size.php[/url] [code] <?php /* ================================================================================ MySQL Database size reporter Version 1.0.0 --- Displays all MySQL databases with their size and privileges. … | |
I need to know how to copy name and email address from many databases to another (eg. phplist) via php script. Thanks in advance, Edub9 | |
I need help with using php to dislplay data from a firebird database. I've tried various methods but no success so far. My latest attempt has been to try PHP Generator. I get indications that it should work, but it falls short of displaying the data. Here is a sample … | |
I was hoping someone could help me with this. Here is my web site: [url]http://ectech.info/[/url] The footer of this site that shows my copyright moves around, depending on your monitor resolution, and does not stay centered with the page itself. The footer information is show in the page source. Can … | |
hi pals, Im doing in-home project such that a document is being generated on the values i give in html document. how can i include header and footer for the word document by php code . MY cod for generating document is <?php $str=$_POST['client_name'].".doc"; header("Content-Type: application/vnd.ms-word"); header("content-disposition: attachment;filename=$str");?> <html> <body … | |
Hey Guys, Didn't know where else to post this. So i have a table called portfolio and in this table are 6 fields(id, image, project, location, description and category) which already have information in them(79 rows). There are 11 categories which need their own position number so i added another … | |
Hi, I have got some code that allows me to click an image map link that then changes text in a DIV further down the page though this is only doing plain text and i can't get it to write in links can any one help with the code???? Cheers … | |
I have an html page. when you click a button, an AJAX function will call a php page (like register.php). That page contains a form. the URL is index.html and doesn't change to register.php because I called the PHP page through AJAX Now that problem is: when I click the … | |
Hi all, I am working on webdirectory. But i want when i click on any link on that page then page should be same and informtion or contents of that page will be change. Let me explain--- Like i have one file index.php and here are so many linke like … | |
Hello Guys, I am not really sure how to ask this, but i will try my best, as much help will be apericiated. I have a saved.php page which echos all saved data that i have filled inluding customer email. I then want a email.php to have echoing all emails … | |
I want to excute "pict" program which is a combination tool and then pass all the output to the DB; mysql and it seems either using exec, passthru or system doesn't matter, does't it? what should be done step by step? | |
This does not need to be done using PHP but I cannot think of anything else that would make this possible unless manual labor as such(disecting the image and reconstructing it piece by piece)? How would this be done using PHP or any other technology? THanks, Regards X | |
Hello is it possible to create a bar chart or some sort of chart based on two coloums from mysql table i want the graph to be displayed on php when the search is carried out im not sure if this has been done before but if so what do … | |
I am doing a campus project in php regarding musical site and i have to insert ziped files of songs in the database. so, i don't know how to deal with the zip files. Therefore, help me. | |
hey guys. im a 4th year IT student from the philippines and i need a thesis topic. i can seem to get my thinking cap on and im running out of time. is there anyone there who has a thesis idea? Im planning a web based application but i dont … | |
i have gotten this example print out of an array, i'm new to php and am confusing myself upon how to access it this is an example of the print out:[CODE] $myarray = array( [0] => Array ( [var_a] => something [var_b] => something else ) ...);[/CODE] so to access … | |
I am building a project management website which enables users from around the world to login and automatically register their time against various work projects. I need to save their login time to the database using their "local machine" time (the time as it exists for them, not the time … | |
Hello, I tried to use regex to search through blablablabla[B][url]http://www.myspace.com/username[/url][/B] by using preg_match('~http://www\.myspace\.com/.+"~',$string,$match); The tilde or lack of was tripping me up... am I even close? I was just trying to extract the username at the end, before it was marked off by a double quote ("). I tried adapting … | |
![]() | Hi. I am serving the contents of the page based on the navigation anchor links. e.g. [url]http://somesite.com/index.html#home[/url] will serve the home page contents. [url]http://somesite.com/index.html#about[/url] will serve the about page contents. The contents are stored in contents.php page and are written in the below tag inside index.html [code=html] <div id=contents> <!-- … |
I have the following query: [code] <?php $query="SELECT * FROM table LIMIT 4"; $result=mysql_query($query); echo "<tr>"; for($i=1;$i<mysql_num_fields($result);$i++) { echo "<th style='height: 10px; padding: 0px;'>"; echo mysql_field_name($result, $i); echo "</th>"; } while($row=mysql_fetch_row($result)) { echo "<tr>"; for($j=1;$j<$i;$j++) { echo "<td style='height: 10px; padding: 0px;'>"; echo $row[$j]; echo "</td>"; } echo "</tr>"; } … | |
how do i script a php echo for info stored in mysql so it is rendered as a hyperlink to its website? here is the script i am trying to edit: [B][COLOR="Red"]highlighted in red[/COLOR][/B] is what i need to change for the echo to href. [code]<table> <?php if($this->team->t_official_website){?> <tr> <td … | |
hello guys. dont know if this is the right forum. I am trying to [B]install Joomla[/B] and at step 2 it says [B]MySql No support[/B] [B]i have mysql installed[/B] and also have dbs created. Using php, i can access connect to the db and run queries. What am i missing? … | |
plz tell java script checks for not insert blank value in database when using fckeditor????? when i not insert any record,the script runs like enter ans but value also inserted in data base..i want not insert blank value and check also runs .... my code is that: [code=php] <script type="text/javascript"> … | |
hello forum im trying to insert record in different table using single query (on the base of class, class name and tables name are same)and wants to insert record in 1 table at 1 time is it possibol to select the table name through class here is the code but … | |
[code=php]<?php $con = mysql_connect("localhost:3306","pm" ,""); if (!$con) { die('Could not connect: ' . mysql_error()); } // some code ?>[/code] on writing the above code it is showing the following error: Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'pm'@'localhost' (using password: NO) in C:\wamp\www\p2.php on line 83 Could not connect: Access … | |
Hi guys, I am in need of a simple friends list code. I don't know how to start it, but I have gotten an idea, maybe anyone of you can help? I have setup a database with login and password, I want to also add a Friends column. I will … | |
hi, i need some help on inserting checkbox values into the mysql database. what sort of data type should i use for mysql to store these? for example i need to insert a few hobbies as checkbox 1.basketball 2.football 3.hockey i need to be able to perform a search and … | |
Hello, I am currently designing a site that displays photography, and am exploring the different ways in which to do this. I am trying to develop, using PHP and MYSQL, a way of having image links held in a database and then the first image in sequence to be rendered … ![]() | |
hey all i got a question where i am not sure that it will be possible. i already have my table in my data base which has values in it ex: first_property. and i made a little script which helps me grab all the names in the form that i … | |
I'm getting this error: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' and can't figure out what's wrong. Any help? [code=php]echo '<p><label for="comment"><strong>Questions / Comments :</strong></label> (<span class="cursor" onclick="document.getElementById('comment').rows += 5;" title="Increase The Textarea">increase</span> >> <span class="cursor" onclick="document.getElementById('comment').rows -= 5;" title="Decrease The Textarea">decrease</span>)<br />'."n";[/code] ![]() | |
Im getting this error message "Parse error: syntax error, unexpected $end" Can anyone point out this error. Thank you. [code=php]<?php function CopyrightCheck($crCheck) { $crCheck = stripslashes($crCheck); $Copyright_Notice = "Copyright © 2000-2009 YourWebsite.com (Your Script). All Rights Reserved"; if ($crCheck !== $Copyright_Notice) { return COPYRIGHT_NOT_VALID; } else { return COPYRIGHT_IS_VALID; } … ![]() | |
I am new for PHP language I dont know how to run PHP files on out machine so please anyone tell me how to do it thanks ![]() | |
I have implemented a log-in routine that I thought captured SESSION variable to use through out all my PHP pages of my site. Here is the snippet of code which sets the session variables: [CODE] if($result) { if(mysql_num_rows($result) == 1) { //Login Successful session_regenerate_id(); $member = mysql_fetch_assoc($result); $_SESSION['SESS_MEMBER_ID'] = $member['id']; … ![]() | |
Hi all, Been at this for a while now and finally gave in to seek help. Basically, I'm trying to setup a regular expression for a decimal. Where there's 1 to 7 integers in front of the decimal point, and 1 to 2 after the decimal point. This is what … | |
Does anyone know a way to guarantee that a copyright has not been removed from a script. An example would be this. I put a copyright notice on page one, when the page is loaded it checks with page 2 to see if the copyright is there or not. If … | |
I am trying to plot my way through coding a BCC Bulk HTML email. I can't get the code below to work and I want to also call another query to grab the emails for a BCC email. SPAM security would be helpful if it is easy enough to add … | |
i have to access an array within an array using php, and i have very little experience working with php. can anyone point me towards a good tutorial or show me an example of how to go about it? eg: [0] contians [a],[b],[c] many thanks | |
Hello to all, My problem is that i have installed apache 2.2.6 and also have php 5.2 version. also made all the changes in conf file of apache. I also did all the necessary things on PHP side (placing & changing files in windows folder) . My apache web server … | |
Hi All, Im currently working on 'localhost'. Whenever i run the following all i get is <br /><b>Notice</b>: Undefined variable: myrow in <b>C:\wamp\www\testbin\edit\edit.php</b> on line <b>59</b><br /> [code] <? //connect to mysql //change user and password to your mySQL name and password mysql_connect("localhost","----","----"); //select which database you want to edit … | |
Hi all, This following code doesnt update the database. I get the following error message Parse error: parse error in C:\wamp\www\testbin\edit.php on line 41 Please can you advise as to the error. I have worked on this for a few hours now but to no avail. Many thanks [code] <?php … | |
Hi all I'm not even sure if development environment is the right term but I'm looking to find out what the best or most popular development environment to use is? I've herd of CAKE and was told this was the way to go. Just looking for some more opinions. Thanks | |
Hello everyone, Does anyone knows any query expansion techniques that can be implemented using php other than hierarchical technique. i.e: facet , analysis, thesaurus. By implementing query expansion, the users are not only presented with the keyword they inserted, but some related words to the keyword. Thank you | |
can anyone tell me if this is even possible, i'm able to get the auto-responder to work by itself, but i cant get the forms to submit info and send to email with form info. is this even possible? | |
hi , i have a php page with java script embed in it , i have 3 forms in a single page ... namely form1, form2, form3 . form 1 and form2 have a text box , these text boxes get input from users. Now my task is to get … | |
Hii Guys Please Help I got following error when i use mysql ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) | |
I need some help with setting up a session..... The image is what i am trying to design. [CODE]<?php session_start(); // store session data $_SESSION['views']=1; ?> <html> <body> <?php //retrieve session data echo "Pageviews=". $_SESSION['views']; ?> </body> </html> [/CODE] | |
Hello, I am using spaw editor.Till now i think it is the one of the best editor.But i m now facing 1 problem.Suppose we left editor as empty.then switch tab to html view.then we see a <br /> tag by default.So is there any way to remove this <br /> … ![]() | |
i have a problem. i have a folder named jadu, there are various images . i want to show them in the a page. what i did its here [code=php]<? $path = "images"; $dir_handle = @opendir($path) or die("Unable to open $path"); echo "Directory Listing of $path<br/>"; while($file = readdir($dir_handle)) { … | |
so completely new at this. long story short, recently started a new business, have several websites up and running so far, no problems. most of the sites are variations of one site i had built. did the changes myself in Dreamweaver cs4, everything worked fine. tried to do another yesterday … |
The End.