39,316 Topics

Member Avatar for
Member Avatar for ehpratah

**Hi guys** I’m new to this site and i really need a professional help out here. I am trying to make a search form in my page and basically i can search my database already but i need to revised the code because the process of my **search form depends …

Member Avatar for neatric
0
7K
Member Avatar for gavin_am

Hi everyone, Does anyone have any ideas on how to intall a music player in a php page where the file name is called from a mysql database. I have done this within html 5 with audio tag but however I need to stop the preload of the music and …

Member Avatar for BSkiLLs
0
163
Member Avatar for vijayram

Hi everybody, What is the problem in this code,loop does not working . layout page display loop. i need 12 columns. in page layout. plz help me. <div class="planbooks"> <b><?php echo date(" 'F 'y") ?></b> <?php $i=0; foreach ($planbooks as $planbook): ?> for($i = 0; $i <=15; $i++) { if(!($i …

Member Avatar for vibhaJ
0
174
Member Avatar for bossie09

I want to develop a website that source all the prices of a particular item in town. For example the user log on to my website and he/she want to know the cheapest supermarket in town which sell bread. The user the type in "bread" in the search bar on …

Member Avatar for veedeoo
0
103
Member Avatar for hwoarang69

i have a form in html. when user hit sumbit. i want to run top php code. when i run it it give me 2 errors Notice: Undefined variable: _SESSION in C:\xampp\htdocs\login_test\register.php on line 134 Warning: array_key_exists() expects parameter 2 to be array, null given in C:\xampp\htdocs\login_test\register.php on line 134 …

Member Avatar for fobos
0
480
Member Avatar for geneh23

Hey everyone, I haven't been on here in a while and I have probably a stupid error somewhere but anyway, I have three files: one is a php(header) file and the other is a css file linked into the index page. I think I've coded the php and I'm pretty …

Member Avatar for geneh23
0
137
Member Avatar for deathscarz

hi i am developing a website in php actually i want to welcome a user by getting his name in text field and give him an option to choose the desired color in which welcome note displayed i-e(red , green .blue) so how can i do it

Member Avatar for diafol
0
134
Member Avatar for taylortay

I have scoured the web for the answer to this question. I am a nubie to PHP so the answer may be simple I just don’t see it. I’m trying to dynamically create two drop down menus from the results of one query. Sounds simple enough but I want to …

Member Avatar for taylortay
0
1K
Member Avatar for Albert Pinto

Hi People, Got a php related issue.. I have a form Which has some textboxes, few checkoxes and a Textarea. Say for example, Name: Email Address: And then the checkbox values....... Hobbies (Reading, Trekking, Gardening, Outdoor Sports, Birding) Once I click the submit button, All my data gets inserted in …

Member Avatar for fobos
0
143
Member Avatar for Octet

Hello, I am trying to create a members page for my website and I want it to display a welcome message for when the person views it, something like: "Welcome <USERNAME>" I am new to PHP so I am not sure if there is something I am doing wrong, here …

Member Avatar for cereal
0
8K
Member Avatar for piotrekw

I have e.g. example: $some_text='some example text [title=some_title]some title[/title] next text'; and I want make function, which will search for the word. I make function: function text_check($text,$search_word) { $text = preg_replace('/'.$search_word.'/i','<span style="color: red;">'.$search_word.'</span>',$text); return $text; } $search='title'; echo text_check($some_text,$search); How to construct a function of instruction which will steer clear …

Member Avatar for piotrekw
0
163
Member Avatar for Kewne

well... I have this code... <?php function ARG_FF() {?> <!--AIR RESTRICTION GAUGE--> <td><select name="gauge"> <option value="8">8</option> <option value="11">11</option> <option value="15">15</option> <option value="22">22</option> <option value="25">25</option> </select></td> <!--FUEL FILTER--> <td><select name="filter"> <option value="20">20%</option> <option value="40">40%</option> <option value="60">60%</option> <option value="80">80%</option> </select></td> <?php }?> and I use it multiple times.... then here comes mysql: …

Member Avatar for Kewne
0
99
Member Avatar for chrisiek

Hi, I created a log file **log_php.txt** *to store some things that happens in my PHP code used by Apache.* .I use it like this $strmsg = "An error appeared here."; $file = "c:\logs_php.txt"; error_log($strmsg, 3, $file); and sometimes but not always this error appears. You may noticed that i …

Member Avatar for veedeoo
0
103
Member Avatar for Shougat

I want to use while loop in html. I have the following php code. But it does not work. How can i solve this problem? Please any one help me. while($row = mysql_fetch_array($result)) { echo "<tr>"; echo "<td>" . $row['ID'] . "</td>"; echo "<td>"; echo "<input name="txtf" type="text">"; echo "</td>"; …

Member Avatar for broj1
0
400
Member Avatar for ebanbury

Hi I'm trying to re-do my code so that SELECT, INSERTS etc use prepared statements..... But I'm having a problem My original code which worked was: if (isset($_POST['submit1'])) { // Grab the profile data from the POST $condo_nm = mysqli_real_escape_string($dbc, trim($_POST['condo_nm'])); // Make sure a review doesn't already exist for …

Member Avatar for mamdouh ramadan
0
147
Member Avatar for ping0ping

Hi, this is my first post. I'm new here and also just start playing with CakePHP. And sorry for my English since its not my native language. I had problem to call data from two tables since I dont know how to do it in CakePHP. So basically I doing …

Member Avatar for ping0ping
0
193
Member Avatar for my3h

Hi , I am trying to display images stored in database. Actually, i have stored image names with extenstion in the database, images are stored in my root directory images folder. Now i want to display all the images with other filelds in that table, in same page. I have …

Member Avatar for my3h
0
166
Member Avatar for azareth

I can't update my database by using select .. i've tried searching for different solutions but those didn't helped me .. any ideas why this doesn't update my DB?? i need to update the row with such conditions: the query/queries i used $records = mysql_query("SELECT * FROM cot_cargovolume WHERE VoyageNo …

Member Avatar for diafol
0
159
Member Avatar for gssr

Please tech gurus Help me ! Please help me urgent iam total newbie in MySQL and in PHP actually i want to auto generate user id if gender male selected in radio button than user id will be m00001,m00002,m00003..... like this, if gender female selected in radio button than user …

Member Avatar for pritaeas
0
330
Member Avatar for kairoland

I've created a While loop that prints out the info of a MySQL table into a simple html table. This part works just fine. I've created a variable which has a prefix tableID and then adds the number of the row ID. ID is the primary key and row is …

Member Avatar for blocblue
0
110
Member Avatar for Tharanga05

I am creating a registration form for my web site. In my registration form, there are two select boxes to select user's district and there city. So I need to do it, when a user select their district then automatically display city select box with cities which relevant to above …

Member Avatar for broj1
0
494
Member Avatar for aecha

Hello, I just want to ask. Is it possible to do the insert and select in one time and in one form? I can't see any example of this problem. Can somebody help me? Thanks.

Member Avatar for vibhaJ
-1
139
Member Avatar for hwoarang69

i have a form in html. when user hit sumbit. i want to run top php code. when i run it it give me 2 errors Notice: Undefined variable: _SESSION in C:\xampp\htdocs\login_test\register.php on line 134 Warning: array_key_exists() expects parameter 2 to be array, null given in C:\xampp\htdocs\login_test\register.php on line 134 …

Member Avatar for hwoarang69
0
317
Member Avatar for hwoarang69

sorry, i forgot to put php code. Parse error: syntax error, unexpected $end in C:\xampp\htdocs\login_test\register.php on line 152 line 152 is the last lne </form> <?php include("connect.php"); //grab submitted data if(isset($_POST['submit'])) { //grab submitted data $firstname = $_POST['firstname']; $lastname = $_POST['lastname']; $username = $_POST['username']; $password = $_POST['password']; $confirm_password = $_POST['confirm_password']; …

Member Avatar for hwoarang69
0
401
Member Avatar for Awah Mohamed

hi guys, well i am using .htaccess in my website to make SEO friendly urls.. the urls are supposed to look like this: http://localhost/home or http://locahost/singup it is working nicely.. the problem is when i came to makin forms.. how should i submit my forms?? the .htaccess takes all the …

Member Avatar for Awah Mohamed
0
166
Member Avatar for hwoarang69

Parse error: syntax error, unexpected $end in C:\xampp\htdocs\login_test\register.php on last line 2nd question. what is different between name, class, and id? if i just use id will it make difference? <form action="register.php" method="post"> <p id = "reg_error"></p> Firstname: <input class = "text" type="text" name="firstname"><br> Lastname: <input class = "text" type="text" …

Member Avatar for diafol
0
199
Member Avatar for nurnfs

Hi, every members, I am Nur, i want make a complete MLM site. i try to MLM Binary tree downline View on php code. it will be difficalt for me to make MySQL database or php coding. please help me any on. i add a link to example: 1) MLM …

Member Avatar for mohsinxn
0
2K
Member Avatar for hwoarang69

need help with this. so in index.php i have a html tag <p id = 'login_error'></p> here(p tag) i want to print all the errors which are tested in login.php. in login.php i create a array called $error = array(); where has all the errors. in error_message.php iam printing all …

Member Avatar for veedeoo
0
122
Member Avatar for DaveyMoyes

Hi everyone, I have been trying to code a facebook application using the API. Within this, I am required to include the base_facebook.php file. But I keep gertting an error Fatal error: Uncaught OAuthException: An active access token must be used to query information about the current user. thrown in …

Member Avatar for veedeoo
0
3K
Member Avatar for Awah Mohamed

I was wondering how many connections in parallel can one web socket handle? what i mean is if i made a chat socket and a million user connected to it at the same time, will it affect it in anyway? and if yes, what is the maximum number of connections …

Member Avatar for Awah Mohamed
0
1K

The End.