39,326 Topics

Member Avatar for
Member Avatar for Cstonehouse

I know there are many other threads about this same error, but none have helpped me, here is my code: [CODE] <?php $mysql_id = mysql_connect('mysql3.000webhost.com', 'a2778852_556875', 'pendolino390'); mysql_select_db('a2778852_555676', $mysql_id); $result = mysql_query("SELECT personalexperience, sex, age, sexuality, FROM Personal_experience"); while($row = mysql_fetch_array($result)) { echo $row['personalexperience'], $row['sex'], $row['age'], $row['sexuality']; } mysql_close($mysql_id); ?>[/CODE] …

Member Avatar for Stefano Mtangoo
0
146
Member Avatar for luke noob

i have a field in my database with numbers like this....... ,27,,277,,4277,,677,,678,,6688,,8754,,123478, each number was updated (added) like this .. ,27, all numbers updated are unique, when i try to match ,27, i get ,27, ,277, ,4277, not just ,27, my code is like this... [code=php] $id = 27 $string …

Member Avatar for luke noob
0
627
Member Avatar for Sorcher

I really want this echo to not include people not listed as 1 in the row "activated" in my database. So if its 0 they wont show. [CODE] // Print each user while($row = $result->fetch_assoc()) { echo " <tr> <td>{$row['username']}</td> <td><a href='{$row['website']}' class='example7'>{$row['website']}</a></td> <td align='center'>{$row['disabled']}</td> </tr>"; } // Close table …

Member Avatar for Sorcher
0
89
Member Avatar for stephen_UK

I have a php script displaying muliple pages of records which has problems with the pagination of the web pages. When it loads for the first time I get 2 Notice: Undefined index messages - as shown below: Notice: Undefined index: start in /customers/swaag.org/swaag.org/httpd.www/SWAAG-DATABASE/VIEW_in_STEPS5b.php on line 210 Notice: Undefined index: …

Member Avatar for stephen_UK
0
92
Member Avatar for ryan-t

Hi, Trying to build my own simple-ish forum script, and i want to display 2 forum posts snippets inside each category on the default page. I thought i knew the code for it but when i do [CODE="php"] $cat = mysql_query("SELECT * FROM forum_cat")or die(mysql_error()); $catresult = mysql_num_rows($cat); for($count = …

Member Avatar for ryan-t
0
127
Member Avatar for joandong2

good day, i'm new to programming but i'm eager to learn, i have a problem, after i submit the number of quantity, the product will add, but then when i search again for another item, the page refresh.. i wanted to output all of the items in sales table so …

Member Avatar for joandong2
0
179
Member Avatar for rolandrogers

Hello - I am trying to get a looping date repeater to work but it is driving me crazy! It works for most dates but breaks for dates that originate in early November. I created a page that shows the code and the output for anyone to see what is …

Member Avatar for rolandrogers
0
135
Member Avatar for ravian48

Hi All, I am making website in php. I want to add funds to my account using paypal api. Please help me how i can do that? Regards

Member Avatar for chrishea
0
121
Member Avatar for radovanov

Hello, I'm totally out of luck with creating a working patternt to match for my preg_match. What I would like to do is, create a pattern that will match sentenses in a bunch of text.. It should recognize a word that has a capital letter and take it as the …

Member Avatar for radovanov
0
115
Member Avatar for rajeesh_rsn

Hi, I am developing a web portal with login system . Users can view the pages with out login and if any one want to comment or rate then they must login. Everything working fine but my question is : I need to redirect the user to the previous page …

Member Avatar for mafhh14
0
227
Member Avatar for krishx343

Hi I am recently trying a rating concept in php. The project is, peoples will post the images of house and ask everyone to rate it as which is beautiful home. I've placed a 5 rating stars and doing all the vote captures. But i am confused in picking the …

Member Avatar for krishx343
0
223
Member Avatar for ajfresh

Hi there, I'm a newbie, and I would really like some help regarding this issue I have with my menu. First the code: [CODE PHP] 01 function public_navigation($sel_subject, $sel_page, $public = true) { 02 $output = '<ul id="sidebar_tags_ul">'; 03 $subject_set = get_all_subjects($public); 04 while ($subject = mysql_fetch_array($subject_set)) { 05 $output …

Member Avatar for ajfresh
0
98
Member Avatar for Awah Mohamed

hi people how can i create a system that creates a mailing system that allow my websites members contact each other throught a private messages . please tell me how to do it step by step , if there is code it will be fine but you can also tell …

Member Avatar for richieking
0
66
Member Avatar for HITMANOF44th

i need to bounce a problem off you guys that is driving me crazy i made a php login with sessions it logins in fine then as soon as i switch pages it loges me off and i did echo the ssid out and the session id does change on …

Member Avatar for richieking
0
123
Member Avatar for ahmedeqbal

Hello Friends, I've around 1000 records in mysql database. in content table im using image source url like 'img.mydomain.com' so today I've registered new domain. so i want to find replace following domain and update my new domain in image path url. so please let me know how to find/replace??? …

Member Avatar for richieking
0
87
Member Avatar for rajeesh_rsn

Hi, I want to give a voting option in my website. For eg. Rate "this movie " and options are good, bad.... I want to block multiple submission and my site doesn't having any login system. I am planning to store the ip address of voting computer in a mysql …

Member Avatar for krishx343
0
254
Member Avatar for shenbagam
Member Avatar for joehms22
0
106
Member Avatar for paradox814

I know it is possible to overload PHP functions as I have seen this done with many of the prebuilt functions. My question is how do you declare an overloaded function? Everytime I try doing this I always get some error about missing arguments (even if there exsist a function …

Member Avatar for NuMessiah
0
430
Member Avatar for Szabi Zsoldos

Hello, What I'm intending to do it's an Organization chart with departments and members. Basically an organigram with different departments and different members. This is the MySQL database. And here is my attempt of doing this horizontally, but i`m kind of stuck. Could you give me some hints on how …

0
113
Member Avatar for tohobaby

this is my php code: [CODE]<? if ($search) // perform search only if a string was entered. { mysql_connect() or die ("Problem connecting to Database"); $query = "SELECT shoeName, shoeSize,colour,price,description FROM shoe WHERE gender='$search'"; $result = mysql_db_query("CB", $query); if ($result) { echo "Here are the results:<br><br>"; echo "<table width=90% align=center …

Member Avatar for Pityu
0
257
Member Avatar for ZethSchlenker

Alright, maybe I'm having a brain cramp this late at night, but my code is not working, and I have no idea why. Any help? This is simply being used for me right now, so yes, I'm pulling straight from the $_POST. [CODE] <?php session_start(); if($_SESSION['id'] != 5) { echo …

Member Avatar for ZethSchlenker
0
107
Member Avatar for Sahilsahni

Hi, Have some questions regarding First Data Payment Gateway, please reply accordingly. 1) i wanna integrate first data into my site, have read it requires two things, to work port 1129 should be open, and openssl on server. my hosting company's server is Linux , so do i need to …

Member Avatar for Kraai
0
130
Member Avatar for mshauny

Hi can anyone help me out here, I did a class working fine but i can't make objects out of it. do i need to include the file that has the class in my new file? with an include statement? say i have this. #file 1 <?php class foo { …

Member Avatar for macobex
0
135
Member Avatar for professor123

hello to u all hi l am doing a php(using xampp) project for a website which also has an online examination.can uassist me with guidelines for my project 1.) It should have MCQ section and WRITTEN or STRUCTURED QUESTIONS SECTION and the exam project would be sitting on a website …

Member Avatar for professor123
0
126
Member Avatar for jfarny

I am trying to create a commenting system that is linked with videos hosted on my server. The videos are displayed on a watch page (watch.php) and the commenting system is included below the video player. When new comments are posted from the watch page they are then processed and …

Member Avatar for jfarny
0
700
Member Avatar for Awah Mohamed

hey people . please tell me how to solve this thing . i dont want to see this error again . please tell me . here is the error : Parse error: syntax error, unexpected $end in /home/awah7870/public_html/cms/blog_prog.php on line 26 and here is the code [CODE] <?php if(isset($_POST['post'])) { …

Member Avatar for hielo
0
75
Member Avatar for Ashaon

Let's say I had a few greyscale images I wanted to dynamically recolor.. How would I go around doing that? Say, for example, I have a black and white solar flare image, and it makes it yellow. Thank you in advance!

Member Avatar for doctorphp
0
33
Member Avatar for tearose49

I finally have it so that when I click the submit button, I do get an email, but all that shows up is: "Name:". It doesn't tell me what the name is, or show the other two fields. (It does go to the Thank You page OK.) What am I …

Member Avatar for tearose49
0
182
Member Avatar for methuselah90

good day everyone, i just wanted to ask for some help in using block ui for forms. i have a form with 3 values. once the form is submitted then block ui will appear with all the information from the form "echoed" within the div. but the problem is each …

Member Avatar for methuselah90
0
1K
Member Avatar for balle

How would I make a code that dynamicly gets MySQL and makes it like ?UserID=54556 :-/?

Member Avatar for johnmaguire2013
0
141

The End.