39,320 Topics
| |
Hello, I'm trying to simulate some sort of multi-threading processes (if it can be called like that) for a PHP application. The approach would be to run a main php file, in which are made some verifications (in the DB) and set a $_SESSION variable. Now other actions should be … | |
how can i echo this code. when i echo it it prints out the html tags and <? php code ?> i want to echo the html code and interpret the php as php. [code] echo "<h2>Add Contact</h2> <form name=\"form1\" action=\"<?=$_SERVER['PHP_SELF'];?>?mode=added\" method=\"post\"> <table class=\"tableStyleClassTwo\"> <tr><td>Name:</td><td><div align=\"left\"> <input type=\"text\" name=\"name\" /> … | |
Hi, I am trying to insert into 2 tables at once. The first table i have a hidden field InsuranceID and that gets an auto increment from mysql database. In my other hidden fields i am inserting into table 2 which has a hidden value of ProductID This is set … | |
Hey everyone. I'm having some trouble returning the correct number of matched results after a search query is issued to my site's search bar. I was using this, but it returns the wrong number of matches (only for certain queries): [CODE] $countofrecs = mysql_query("SELECT count(*) from tablename WHERE title OR … | |
Hi, I trying to create some dirs like this: [CODE]@mkdir("photos/$cat/$sku", 0777, true)[/CODE] it creates the first directory with 0777 permissions, but when it creates the second is uses 000 as it's perms, so it fails to create the third. A workaround this please? Thanks, Richard. | |
Hi i am trying to display on the web browser to allow user to see information before the latest data is been updated. Hence, it will show: [B](1)previous existing data, (2)latest data and (3)data which is not found on the latest data list[/B]. To make things clear to solve the … | |
Hiya! Nice place you have here :) I would like to set up sms text jokes for my website. I hope I'm asking the right thing?! I want members to be able to send text jokes to their friends. Nirvana would be if they could send text, pics/video, and mp3. … | |
Hello I am developing a module / script that gets information stored about user nodes in the drupal database and sends it to our Salesforce lead generation form. So I am pretty new to this and have a couple of questions that I think the community might be able to … | |
Hello, Just need quick help in PHP + SQL SERVER 2005 DB CONNECTION ...i having problem while connection SQL SERVER 2005 WITH PHP APPLICATION WHICH WORKING PERFECTLY IN LOCALHOST AT MY PC BUT IT NOW NOT WORKING ON THE SERVER SO DON'T KNOW WHATS WRONG ? I THINK ANY SERVER … | |
Hello, I am trying to generate pdf on the fly in through php using TCPDF package. My table contains 70 columns, which i need to write into pdf. Only some 5-8 columns are writeen into pdf and rest of the data is cut as the width of the pdf page … | |
Hi I'm writing a piece of code to update a users password when they have forgotten it, but, for some reason I cannot seem to get it to work. It is always echoing out that the secret answer is wrong. It's probably something stupid that I have looked over, if … | |
I have this game and it either takes REALLY long to load a page, or sometimes it loads in a second, and half the time you get a 500 internal server error. What would cause this iradic behavior of loading really well sometimes and giving an error other times, or … | |
Please help, I have designed a form, that contains an upload button. The form can only take file upto the size of 1mb. Every time I press the submitbutton I get: [B]Notice: Undefined index: myfile in F:\wamp\www\Site\CRUD\Upload\insertscript.php on line 9 Invalid file type [/B] this is my form and below … | |
Hello, im from Norway and doing a job i php. I was wondering if you could help me. Im makeing a script for a tender web site. The web site will contain as following: Home Register Tender Register Company Contact When i register a tender i must fill out information … | |
Hey guys, I know that the query is not good, but i CANT see the problem. Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\XAMPP\xampp\htdocs\betania\modify.php on line 8 Could you please help me out? [CODE] <?php include "connection.php"; if(!isset($_POST[submit])) { $q = mysql_query("SELECT * FROM inscrieri WHERE … | |
I'd like to create a simple PHP form that will allow my website user to make a payment on their account with us using PayPal. I'd like them to enter their name, email address, account number, and the amount they'd like to pay. I would then like to pass this … | |
| Hello, my name is Matias (Mathew for english people) and I am 16 years old. And I am from Argentina !!! I joined this Community because I know a lot of things that I can share here of simply respond... I am a student from an idustrial school call Huergo … |
I am wondering if it as good idea to set up a website that has only one actual page, but includes different pieces depending on $_GET variables. What are the pros and cons of setting up website this way? Would it be a better idea to have multiple physical pages … | |
hi! i have problem with my class. if i require the class to my index page and their is get method. Something syntax error with my page. what other ways to correct this error? | |
Hi, how to write the MYSQL Query select count(*) from (SELECT user_id FROM `reports` group by report_id) as tb where tb.user_id=5 in Cakephp inside the Loop [CODE]$users=$this->User->find('all'); foreach($users as & $user): //for each $user['User']['user_id']; which gives the User ids as 1 2 3 4 5 ... endforeach; $this->set('users', $users);[/CODE] | |
How to coordinate a php variable with a javascript variable and store the final result in a php variable. | |
How can I create links inside an email content? can you send me a code for that? | |
Is there any reason not to echo content like this: [CODE] <!--Some content up here--> <?php if($variable === true) { ?> <span>Some Content</span> <img src="some_img.png" alt="img"/> <?php ;} ?> <!--Some more content down here--> [/CODE] Or should I be directly echoing everything that is dynamic? | |
HI, I have a script which reads an xml feed then uses a loop to insert information from that feed into a multi-dimensional array. I need to sort the array by 'day' before outputting, day is a dimension of the array. Below is a print_r() of the array after the … | |
Looking for help, I'm creating a form that would be filled in online and is then sent to me via email. I cant figure out how to get the email to populate a drop-down menu option. Here is the code of the email coming to me: [CODE=text]Name: [output name='Name'] Street … | |
hello all (first time posting for this newbie) lets say i have a query that looks something like this: SELECT whatever FROM myColors WHERE color [B]IN[/B] ('red', 'green', blue', 'purple') i would like to be able to use bind_param to access this query, something like: sql: SELECT whatever FROM myColors … | |
the first image is what I have, the second image is what I want to achieve. below is my code. its basically displaying mysql data in columns. but I need to get rid of that huge gab. [CODE]<?php if (!function_exists("GetSQLValueString")) { require_once ($FolderFunctions.'getvaluestring.php'); } mysql_select_db($database_classi, $classi); $query_docategories = "SELECT catID, … | |
First of all, love the purple theme! If anyone could help me with this. I have read and tried numerous samples from other forums, but all is the same as what I have done. I am building a small classifieds site for my church. I wanted to display data in … | |
Why am i getting this error: Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, boolean given in /Users/Joli/Sites/TestSite/index.php on line 47 [code] $conn = mysqli_connect("localhost","sql","password","db") or die("Query died: Connect"); $checkSql="select count(id) as eCount from address"; $result = mysqli_query($conn,$checkSql); $row = mysqli_fetch_assoc($result); if($row['eCount'] == 6){ $disable = 1; } [/code] | |
is it possible to use PHP to update an RSS feed. I dont already have the RSS feed created, but my site is finished, well for now it is, and want to know if it is possible to do this. My site is scripted using PHP and and every time … |
The End.