52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for rockout15

i want to add my dynamically created table rows.. to the database .. however i cant add it .. badly needed your help guys... thanks in advance heres my code: <?php include('connect.php'); if(!isset($_SESSION['user_id'])) { header('Location: login.php'); } $user_id = $_SESSION['user_id']; ?> <?php $date = $_POST['date']; if (isset($_POST['submit'])) { if($date != …

Web Development html-css javascript-jquery php
Member Avatar for mustafaneguib
0
1K
Member Avatar for saadi06

Hi, I have two tables and they have one to many relationship.The two tables are fares and fare preferences.Now in fares table there is a unique user id and username and the user id is related to multiple preferences.Now I want to make a query that displays the username once …

Web Development mysql php
Member Avatar for pritaeas
0
71
Member Avatar for divyakrishnan

Hi.. How to count no of files in a directory which is in another machine? I used the following code.But it is not working. <?php $dir_path ="file://192.168.0.138/img/$sub_code/$sub_code".N."$churunano/*.*"; $count = count(glob($dir_path)); $files = glob($dir_path); ?> The above code returns the count as 0.

Web Development php
Member Avatar for divyakrishnan
0
144
Member Avatar for vijayram

hi everybody, i created three table planbook,like and user table. what is the problem in this code. nothing to error msg display.but did not like count store in database class planbook public function get_like_count($planbookId) { $planbook_id= $planbook_id; $planbook_obj=Doctrine_Query::create() ->select('p.planbook_like')->from('planbook p') ->where('p.planbook_id =?', $planbookId); $result=$planbook_obj->fetchArray(); } public function add_like_count($planbookId) { $stmt=mysqli_prepare($this->connection,"update …

Web Development php
Member Avatar for baig772
0
117
Member Avatar for brainfo

Hello all, Since a day i was working on a site www.needmine.com . i had made a lot of changes in site. Even it was working till then. Suddenly the site stops displaying. When i clear the cache of the broswer and again ctrl refresh the site shows but in …

Web Development cms php
Member Avatar for baig772
0
116
Member Avatar for McLaren

$all_confirmed = (count($changed_coefs_ids) == 0) AND (!$payout_too_big); $all_confirmed = (count($changed_coefs_ids) == 0) && (!$payout_too_big); How do you think, should those code lines get the same result? I got different result (comment out one line, then uncooment and comment out another) Wasted time till I noticed that, since that doens't make …

Web Development php
Member Avatar for cereal
0
325
Member Avatar for afrogfx

how can i create automatically tumbling .. I need when i upload original image automatically create thumb and add thumb ( size 200 x 200 ) in folder and insert path of thumb in database $thumb .. i need help .. any one can help me ? <?php error_reporting(0); if …

Web Development php
Member Avatar for Squidge
0
186
Member Avatar for Maha Sh.

Hi all, I am using DataList and when i run my project the table of the datalist doesn't appear?!!! aspx.vb file Imports System.Data.SqlClient Public Class SLP_1 Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load ' TextBox1.Text = Session(logAccount) End Sub Protected Sub DataList1_SelectedIndexChanged(ByVal sender …

Member Avatar for Maha Sh.
0
209
Member Avatar for dany12

Hello I was wondering how to create an array with all fields in a email form and then send the email <?php if(isset($_POST['submit']))//array{ $content=array( $name=strip_tags($_POST['name']); $email=strip_tags($_POST['email']); $phone=strip_tags($_POST['phone']); $address=strip_tags($_POST['address']); $city=strip_tags($_POST['city']); $title=strip_tags($_POST['subject']); $message=strip_tags($_POST['message']); ); } $to = "email@domain.com"; $subject =$title; $from = $name; $headers = "From:" . $from; mail($to,$subject,$content/*change array to string …

Web Development email php
Member Avatar for priebd1
0
193
Member Avatar for vindom

Trying to redirect from inside an iframe ... that's the code: <?php include'file_constants.php'; $imgid = $_GET['id']; $con = mysql_connect($host, $user, $pass) or die("Can not connect to database: ".mysql_error()); mysql_select_db($db_name) or die("Can not select the database: ".mysql_error()); $sql = mysql_query("SELECT * FROM comments WHERE ImageID = '$imgid' ORDER BY Date DESC"); …

Web Development php
Member Avatar for vindom
0
3K
Member Avatar for jackbauer24

I am learning jQuery from thenewboston. I have learnt about ID selectors (#) and element selectors (<html element>). They have also used the colon selector (:). What is the colon selector for? Can somebody please explain in an easy way?

Web Development javascript javascript-jquery
Member Avatar for JorgeM
0
93
Member Avatar for divyakrishnan

Hi.. I want to hide/rewrite the URL of my php project. I found many forums regarding this. I have a doubt in .htaccess file. Is it need to create a new .htaccess inside my project folder ?

Web Development php
Member Avatar for divyakrishnan
0
2K
Member Avatar for Venom Rush

I have a url with parameters appended to it. I want to know if there's a way (similar to explode) that seperates a string based on a delimiter and makes the string on the left of the delimiter the key of an array and the string on the right of …

Web Development php
Member Avatar for Venom Rush
0
142
Member Avatar for rstandley31

well here it is crashing on line 76 and throwing the error in the Preg_match statement Why? Warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash in /home/content/73/9352073/html/includes.php on line 76 line 76 reads if(preg_match("index.php", $_SERVER[SCRIPT_NAME])) I cannot see a syntax error can you? Thanks Rob '

Web Development php
Member Avatar for pritaeas
0
202
Member Avatar for Buppy

Hi, I have a problem with strtotime displaying months. See the code: print(date('M-d')); //prints May-31 print(date('M-d',strtotime('-1 month'))); //prints May-01 Since i need it to get the previous month, why is the function ignoring the fact that there are 31 days in May? Thanks

Web Development php
Member Avatar for cereal
0
143
Member Avatar for riahc3

Hey When I try to interpret thru PHP, a Java web service that returns a boolean type, this error (more like a warning) pops up: Notice: Object of class stdClass could not be converted to int in C:\testing\page.php on line 29 How can I make the PHP page understand true …

Web Development java php xml
Member Avatar for pritaeas
0
399
Member Avatar for tymaut

Hello I am working on a web page(php based). I want to put a `like` button, so that when a user clicks it, he is added to the likers list in my database.(like in the facebook). I wrote a php funtion to execute this database insertion, but since the event …

Web Development javascript php
Member Avatar for IIM
0
321
Member Avatar for gotboots

Hi all, I have the following code to process through my requests, then use in a database. FIRST of all, I was wondering if i have it in the right order, and SECOND, if there are any other steps i could do to secure up my application. have a look, …

Web Development cybersecurity mysql php
Member Avatar for veedeoo
0
262
Member Avatar for ShaggyDogg

Hi, I would appreciate advise on what is incorrect in the following sample code? The result I get is always that the panel is not visible, even though the authenticated user is a member of 'Domain\ADGroup'. If I can at least confirm the code 'should' work, that would be a …

Web Development asp.net
Member Avatar for ShaggyDogg
0
647
Member Avatar for newbie1234

I am signin my lgoin page it will redirect to my home page. The probs is when i am pressing back button it will go to login page. Again come on home page by press forward button. Is there any method to stop all this things. means it should be …

Web Development php
Member Avatar for broj1
0
151
Member Avatar for divyakrishnan

I have a shared folder with images in a machine. How can I display images from that machine in a web page in another machine. I used the follwing code but obtained no output ** <?php $img_src="file://192.168.0.138/E:/img1/12/12N69/12N69$0001A1.JPG"; ?> <img src="<?php echo $img_src ?>" alt="" width="1000" height="220" id="myimg" />**

Web Development display image php
Member Avatar for vibhaJ
0
353
Member Avatar for Sanchixx

Hello, I am making a php comment box (without sql with a file where i post the comments) i'd like that the the time that the comment was posted be written along with the name of the person, but it gives me the current time, here is my php code. …

Web Development php
Member Avatar for Sanchixx
0
360
Member Avatar for kimmi_baby

I have the following code for a wordpress theme. For some reason an arrow appears on the page. I originally thought it was because of the thumbnail but once I removed the thumbnail it still appeared but in a different spot. What I'm aiming for is have the blog post …

Web Development php wordpress
Member Avatar for vibhaJ
0
175
Member Avatar for HasNor

Dear all, My database cannot accept uploading file when filename contain single quote " ' ". Then it show the error. For example my filename testuploads'.xls Got the error message Error, query failed : You have an error in your SQL syntax; check the manual that corresponds to your MySQL …

Web Development php
Member Avatar for vibhaJ
0
104
Member Avatar for newbie1234

In .php file i have $str = "I am in php file"; $str2; I want to copy specific amount of char in $str2. say suppose i want to copy " I am in" from $str. How to do? Is here any help???

Web Development php
Member Avatar for TitusShade17
0
117
Member Avatar for PsychicTide

Hey guys, I've been stuck on this problem for quite some time now. I'm trying to have someone type some text into CK editor and then I want to count how many bold, italic, or underlined words have been typed. I've managed to count the number of tags there are …

Web Development javascript
0
116
Member Avatar for hwoarang69

it always goes to echo "failed;" and print error: Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\login_test\forgotpassword.php on line 49 failed $to = $email; $subject = "Forgot password"; $message = "Hi $firstname_db,\n Your …

Web Development php
Member Avatar for Transcendent
0
151
Member Avatar for mani508

hello my project is web discussion forum i want to show topics or articles title in table and make it hyperlink . i want get data from database table and display in html table how its poossible...?

Web Development asp.net display html-css
Member Avatar for JorgeM
0
409
Member Avatar for riahc3

I have this code: <?php foreach ($_options as $_option) : ?> <input id="xyys" type="hidden" name="xyys" value="<?php echo($_option['value']);echo ($_option['option_id']);?>" /> <?php if($_option['label'] != 'Corte'): ?> <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?> <dt><?php echo $this->htmlEscape($_option['label']) ?></dt> <dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>><?php echo $_formatedOptionValue['value'] ?> <?php if (isset($_formatedOptionValue['full_view'])): ?> <div class="truncated_full_value"> <dl …

Web Development javascript php
Member Avatar for McLaren
0
297
Member Avatar for PF2G

Hi, i trying to do a registration form (easiest thing ever) but i'm having trouble doing the validation :S <?php include 'db_connect.php'; ?> <html> <head> <title>Adminstração</title> </head> <body style="color=#FFFFFF" bgcolor="#666666"> <table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="1"> <tr> <form method="post" action=""> <td align="center" valign="middle"> <table width="300px" cellpadding="0" cellspacing="3" bgcolor="#FFFFFF" style=" …

Web Development php
Member Avatar for xShirowx
0
99
Member Avatar for monkeytherat

Hello forum! I was tinkering with a login script and I came accross the following error: Warning: mysql_result() expects parameter 1 to be resource, boolean given in /home/content/79/9398479/html/abyss/dio.php on line 60 //Code here: <?php $sqlError = 'We are experiencing very temporary downtime, please refresh or try again in 10 minutes.'; …

Web Development mysql php
Member Avatar for dcdruck
0
881
Member Avatar for ShaggyDogg

My project is what I thought is probably a popular one, so I'm hoping the solution is easy enough. To develop an Intranet using the functionality of forms authentication, but automatically logs in authenticated Active Directory users with their Windows authentication (so they do not have to sign in again …

Web Development asp.net microsoft visual-basic
Member Avatar for JorgeM
0
470
Member Avatar for mani508

hello i saved the image path + filename + guid in database and image store in folder. i want to show image from database in image control of asp.net how its possible? kindly tell me as soon as possible thanks in advance...

Web Development asp.net image
Member Avatar for coder389
0
98
Member Avatar for Rizzuti

Hello there, I've got a search box that finds the item that I look for but it doesn't display the id number when i put the mouse cursor on top on the item. instead of showing the id number it shows the variable ($id). Any idea why this is not …

Web Development mysql php
Member Avatar for junior_rosul
0
177
Member Avatar for veledrom

Hi, Code below is just to print a message. Nothing more. Question is: Whether we have the line `return $this->myname;` or not, it works fine but why some people still use `return` in such cases? Is it just a matter of taste or I'm missing something about OOP? Example below …

Web Development oop php
Member Avatar for veledrom
0
116
Member Avatar for my3h

Hi, I want to display my database records in <ul> <li> format. I have using a free template to design my front end. I am reading database data like this while ($row = mysql_fetch_assoc($result)) { $categoryname = $row['category_name']; } and within the loop i have to display records like this …

Web Development database-design php
Member Avatar for my3h
0
153
Member Avatar for aristos32

Hi all. I have the following problem: I read this string from an XML file: "User Name ={$username}" and then store it in a local variable $test. I read this in a function, where I have a local variable $username. However the variable inside the string is not interpreted to …

Web Development php xml
Member Avatar for aristos32
0
207
Member Avatar for jersie03

Good day everyone, I want to know how to send email to outlook in php after signing up please give some example and discuss it to me clearly thanks very much .. :*

Web Development email php
Member Avatar for jersie03
0
3K
Member Avatar for HasNor

Dear experties, Actually I don't know how to specify what I'm trying to do. I only tell you thru this figure. I don't know how to come out report by this way. How can I do? What kind of method to get report like this in a table? Please help …

Web Development php
Member Avatar for HasNor
0
138
Member Avatar for Violet_82

Hi peeps, I wonder if you can help me at all. I am recreating a simple design, just doing some testing really, and what I am trying to achieve is to hide and show the navigation on the left side, here's the website: http://antobbo.webspace.virginmedia.com/various_tests/worktest/test.htm So ideally when i click on …

Member Avatar for Airshow
0
134
Member Avatar for KeithMon

I'm using PHP code from: [DetectMobileBrowsers.mobi](http://detectmobilebrowsers.mobi/) to redirect mobile users to a mobile site. I've got this code at the top of my page but I'm not experiencing any redirects. include('mobile_device_detect.php'); mobile_device_detect(true,true,true,true,'http://mydomain.com/mobile.php','http://mydomain.com/index.php'); I don't want to include the code from the website mentioned above because I believe it's copyright. Is …

Web Development http-protocol php
Member Avatar for KeithMon
0
174
Member Avatar for PF2G

Hi, I'm working on a website where i have to translate the pages and the way i have to do is a little confused. Here it goes: I have to create 2 files lang_pt.php and lang_en.php where i have common arrays where i do the translation. lang_pt.php: <?PHP $lang['Family Office']="Family …

Web Development php
Member Avatar for diafol
0
427
Member Avatar for divsok

how to input a code snippit to a textarea and how to preview it using syntax highliting in a html page?

Web Development javascript
Member Avatar for divsok
0
115
Member Avatar for Neetumishra

Hi, I am trying to change background image of my div but its not picking up style of background image that I am setting from javascript. So can anyone help me out? Thanks in advance. Here is my code: <HTML> <script language="JavaScript"> NUMBER_OF_IMAGES = 3; ImageNames = new Object(); ImageNames.length …

Web Development html-css image javascript
Member Avatar for JorgeM
0
235
Member Avatar for arwalters1990

Hello. I've been viewing this site for a long time, but finally decided to join and ask for help. I'm using citrusDB and a sample code from authorize.net and I want to pass off some information from the citrus DB to the authorize.net code. I've been trying to do this …

Web Development php session
Member Avatar for arwalters1990
0
343
Member Avatar for maghuyop

<?php include('config.php'); include('functions.php'); sqlconnect(); // Passkey that got from link $passkey=$_GET['passkey']; //echo $passkey; $tbl_name1="tbltemp_subscriber"; // Retrieve data from table where row that match this passkey $sql1="SELECT * FROM $tbl_name1 WHERE confirmation_code ='$passkey'"; $result1=mysql_query($sql1); // If successfully queried if($result1){ // Count how many row has this passkey $count=mysql_num_rows($result1); // if found …

Web Development html-css php
Member Avatar for zoreli
0
179
Member Avatar for Iggy54945

After around 20 years of not working with PHP\MySQL, it appears I am in need of a little assistance (as I have forgotten most of what I knew) to point me in the proper direction. What I have is a basic search field that automatically pulls information from MySQL once …

Web Development php
Member Avatar for Iggy54945
0
228
Member Avatar for branding4you

I want to create a php file that reads HTML file that is uplaoded daily to a folder on my web server, when ever I open the page it needs to read the HTML file and post only data i want to use, i have created some reader but it …

Member Avatar for branding4you
0
362
Member Avatar for adsegzy

Hello there am working on a website where members can add event. Once the member select the event type, the form for that event will appear. below are the pages i did. I also included jquery-1.7.2.min.js. Once i select any event on the **add_event.php** it brings the right form as …

Web Development javascript-jquery php
Member Avatar for fobos
0
180
Member Avatar for drumichael87

Hi all, I am having trouble figuring out a good way to go about looping my database results. Currently, my code looks something like the following (abbreviated for simplicity): $db_results = $wpdb->get_results("SELECT * FROM table"); echo '<table><thead><th>Name</th><th>Number</th></thead>'; echo '<tbody>'; foreach ($db_results as $result) { echo '<tr>'; echo '<td>' .$result->name. '</td>'; …

Web Development php programming-construct
Member Avatar for drumichael87
0
109

The End.