39,323 Topics
| |
| I have recieved this, Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\...register.php on line 16 I dont understand to be honest what this mean as i am new to php and mysql. What do i need to do to fix this problem? Below is my php. … |
i'm realy confused on how to do this.. deperately need help. i have two tables as below: table1- qid(primarykey), qtitle table2- aid(primarykey), atitle, qid example, table1- (qid=1; qtitle=fruits), (qid=2; qtitle=vehicle) table2- (aid=1; atitle=apple; qid=1), (aid=2; atitle=banana; qid=1), (aid=3; atitle=car; qid=2), (aid=4; atitle=bike; qid=2), (aid=5; atitle=bus; qid=2); when i retrieve the … | |
Hi. I would like to know if it would be possible, using PHP to ping a port of a switch, knowing the ip address of that switch. How can this be achieved? Thank you. | |
Hi again!! This is my code to add and delete dynamic rows and auto calculate the amount field by multiplying qty and rate. [CODE]<form name="staff_reg" action="<?php echo $_SERVER['PHP_SELF']."?".$_SERVER['QUERY_STRING']; ?>" method="post" enctype="multipart/form-data"> <table width="100%" border="0" cellspacing="0" cellpadding="2"> <table border="0" cellpadding="1" cellspacing="0" class="normal-text" align="left"> <tr align="center"> <td width="10" class="forhead" style="white-space:nowrap;"> </td> <td width="92" … | |
Hi!! I am trying to find out solution for this since long. I tried js but as I am not good with it, I just want to do this through PHP. I am adding dynamic rows when user clicks the Add Row button.I want to show the calculated amount like: … | |
Hi all! I have a form as below: [CODE]<script type="text/javascript"> function addRow(tableID) { var table = document.getElementById(tableID); var rowCount = table.rows.length; if(rowCount<3) { var row = table.insertRow(rowCount); var colCount = table.rows[0].cells.length; for(var i=0; i<colCount; i++) { var newcell = row.insertCell(i); newcell.innerHTML = table.rows[0].cells[i].innerHTML; //alert(newcell.childNodes); switch(newcell.childNodes[0].type) { case "text": newcell.childNodes[0].value = … | |
Hi guys, Is there anyone know any library that sets an image as header and footer? I used [B]TCPDF [/B]but it doesn't for footer image. Also, [B]html2fpdf [/B]doesn't support image as header or footer at all. Any other that may work for me? Thanks in advance | |
Hi. I am trying to create a program which would tell me the connection between some equipments in a network. For a example a connection between Switch1 and Switch10. I know that the path from Switch1 to Switch10 goes through some patches and other switches and these switches and patches … | |
Hi, I have a problem duplicate entry in same time. I am getting some parameters in other gateway (some websites) and stored in Database. I trim all parameters. Before i store in db, i check db whether that record already exist or not. Other Gateway website which they send three … | |
I'm new to AJAX, PHP, and Javascript and I'm trying to learn more about them by setting up a user login for a website. I've gotten it working but there are a few problems I'm having trouble solving. Right now the login works, but I'd like to check if the … | |
Hi, All I would like my user to click on My Account link, with the help of some PHP magic i would like to determine which access level a user has and direct them accordingly to the right my account page. In total I have 3 types of users outlined … | |
I am attempting to write a script that when a user selects a radio button it will redirect to the approriate script. but it keeps going to only one page and theat is my p5modify ....what am I doing wrong [CODE] <?php session_start(); if (session_id() != $_SESSION["userid"]) { $_SESSION['unerror'] = … | |
I'm a newb at web programming. Ugh, this is making me crazy! I've been programming it all day. I need expert's help. Please help me guys!! I've been trying to make a Sign Up filter and insert to database code. The code first checks if the username inputted in the … | |
Hi All, I have been working with the framework from the following tutorial [url]http://www.phpro.org/tutorials/Model-View-Controller-MVC.html[/url] Im struggling to get it to connect to a database using the pdo method. Can anybody advise as to how I can get the database connection up and running? Im not a newbie by a long … | |
My site is broken into three different categories (which are stored on 3 separate tables) and I am looking at creating a functionality to let a user upload photos. Ideally, I would like the following to happen: [LIST=1][*]A user is viewing a single retail store on the site, for example … | |
User clicks on a url, ie: example.com/AEQ438J When I perform this in the code below: [CODE] $referrer = $_GET['_url']; // echo $referrer displays the referrer ID contents correctly as "AEQ438J" if ( ! empty($referrer)) { $mysqli->query("UPDATE coming_soon_emails SET clicks = clicks + 1 WHERE code='" . $referrer ."'"); } // … | |
Hello ,, How are U ?? I have a problem in creat RSS Sitemap I need it for Arabic .. first I added English threads , its appear without any problem but when I added Arabic threads All of its disappeared !! Just the title appear in Arabic Now this … | |
Hi all, I re-post my previous thread I sent 2 days ago, because I am still having this problem with a php email application: the code works fine, sends email messages and picks up the attachment and its path as well, but instead of placing the attachment to the attachment … | |
[B]hi friends..[/B] please help me with this little code... i have a html form with a few text boxes and a drop down menu.... On page load I want to blur the drop down menu... I have blurred the text boxes using [CODE]document.getElementById['id-of-text-box'].blur();[/CODE] i tried the same for select element … | |
hey ... how can i delete multiple raws in a table at once using check box.. i mean if i want to delete all data i can select all check boxes and click delete button.. plz help me.. | |
hello I just started using headers and I have few problems that I don't know why and how to fix them I'am trying to set authentication for 6 users each one of them can't access his account unless the admin is logged in else they have an error message but … | |
Im starting to make a social network using all php, and I have a class that starts the session in the constructor, with session_start(); and tests if they are logged in. if at the end of that file I call the constructor... $session= new Session();... wouldn't that automatically start the … | |
I am trying to use a single select to get the first and last name for a group of users. Here are the two approaches (Test 1 & Test 2) I tried to get the data. Both approach gave the same error. [CODE] Error: Unknown column 'norma' in 'where clause' … | |
hi, how to use different templates in cmsmadesimple i.e index page have template A and other pages will use template B. regards, rajan | |
Hi Experts! Following mentioned code, displays the thumbs images in the out of series sorting, the files in the directory are copied by using the numeric code, e.g. 1.jpg, and 2.jpg .. onwards, if exports can change a code, in order to help out, that the script display the images … | |
Having spent the last 6-9 months getting to grips with the basics of PHP, I have inherited a number of Perl scripts. As I'm getting on with PHP and beginning to complete ever "complex" tasks, I would like to convert the inherited Perl into PHP. I am able to translate … | |
Everyone! In my admin area, of a small CMS, I am creating an admin home page, and an edit page. In my admin home, the admin user, can see what pages exists on the site, by clicking an html drop down menu. All pages are stored in mysgl database, so … | |
Hi there all. This is my first time ever in Dani web. I just began teaching myself PhP by googling. My first question ( Not sure if i am even allowed to ask in here ) is that. * When you create a php registration form in PHP enabled page, … | |
Good Day! I just want to ask on how to hide the html codes of a certain page so that when my client view the source, they cant see it.. Thnak you! | |
Hi Everybody Can somebody Help me.this is my form cod that iam doing in xampp [CODE] <form name="form" action='registernow.php' method="post"> <table height="40"> <table left="50"> <table right="20"> <tr> <td > <vllabel errclass="error" validators="NameReq,NameRegExp" for="Name" cerrclass="controlerror">Name:</vllabel> </td> <td> <input name="Name" type="text" class="control" id="Name" size="21"> <vlvalidator type="required" name="NameReq" control="Name" errmsg="Name required"> <vlvalidator type="regexp" … |
The End.