|   |   |   | ||||
| Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. | 
|    | 
| 
 | |||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. | 
|  | Thread Tools | 
|  04-11-2022, 12:40 PM | #1 | |
| Confirmed User Industry Role:  Join Date: Oct 2018 Location: New Orleans, Louisiana. / Newcastle, England. 
					Posts: 1,225
				 |  Row with no contents, how to remove in output? So I have a table that has a row of URLs in it, some of the rows do not have any data in them. When outputting the data to a page, how can I make it so that the code where that url should appear dissapears from the page? This is the code I'm using: Quote: 
 Basically, if the row for 'Two' has no data in it, how do i get it to just vanish from the 4 options? So instead of: One | Two | Three | Four It shows: One | Three | Four The data calls are in an array at the top of the page if that helps any? 
				__________________ Extreme Link List - v1.0 | |
|   |           | 
|  04-11-2022, 01:25 PM | #2 | 
| Natalie K Industry Role:  Join Date: Apr 2010 Location: Spain 
					Posts: 19,588
				 | no, my bad, what i said was wrong from what iŽd read... bounce for you, good luck  
				__________________ My official site  Custom vids  Make money & get into the business  First time girls Skype: GspotProductions - "Converting traffic into income since 2005" | 
|   |           | 
|  04-11-2022, 03:31 PM | #3 | |
| Confirmed User Industry Role:  Join Date: Apr 2010 
					Posts: 1,107
				 | Hi, You can put a simple IF before each row Quote: 
 You can also use trim($var) and strlen($var) > 0 if there is a chance that your DB has rows with only spaces by mistake. 'The data calls are in an array at the top of the page if that helps any?' If you have everything in your array, you can simply use the function implode() and you are good to go. Show me a print_r of your array and I can help you further. Cheers, z | |
|   |           | 
|  04-11-2022, 05:47 PM | #4 | |
| Confirmed User Industry Role:  Join Date: Oct 2018 Location: New Orleans, Louisiana. / Newcastle, England. 
					Posts: 1,225
				 | This is literally all the code I have in the page (its real basic). Quote: 
 
				__________________ Extreme Link List - v1.0 | |
|   |           | 
|  04-11-2022, 05:50 PM | #5 | 
| Confirmed User Industry Role:  Join Date: Oct 2018 Location: New Orleans, Louisiana. / Newcastle, England. 
					Posts: 1,225
				 | That will work even if all im pulling into the page from the database is the URL itself? 
				__________________ Extreme Link List - v1.0 | 
|   |           | 
|  04-11-2022, 06:01 PM | #6 | 
| Confirmed User Industry Role:  Join Date: Oct 2018 Location: New Orleans, Louisiana. / Newcastle, England. 
					Posts: 1,225
				 | That IF statement works perfectly for what I needed, thank you so much for the code 👍 
				__________________ Extreme Link List - v1.0 | 
|   |           | 
|  04-12-2022, 12:47 AM | #7 | 
| Confirmed User Industry Role:  Join Date: Apr 2010 
					Posts: 1,107
				 | Yeah, looking at your code, the IF function is what you are looking for   
				__________________ php, html, jquery, javascript, wordpress - contact me at contact at zerovic.com | 
|   |           | 
|  04-12-2022, 04:57 AM | #8 | |
| Confirmed User Industry Role:  Join Date: Aug 2006 Location: Poland 
					Posts: 9,229
				 | Quote: 
 
				__________________ Mechanical Bunny Media Mechbunny Tube Script | Mechbunny Webcam Aggregator Script | Custom Web Development | |
|   |           | 
|  04-12-2022, 12:06 PM | #9 | 
| Registered User Industry Role:  Join Date: Feb 2022 
					Posts: 40
				 | Correct. Proper error checking is a must for PHP. 
				__________________ Cheap VPS/Shared Hosting: RackNerd Discord: Clown#5147 Projects: JuicySluts Website: Clownonymous Other Domains: JuicyBate - HornyFeed - Pimp Ink - Fansily Skills: API/HTML/CSS/JS/PHP/PYTHON | 
|   |           | 
|  04-13-2022, 02:06 AM | #10 | |
| Confirmed User Industry Role:  Join Date: Apr 2010 
					Posts: 1,107
				 | Quote: 
  
				__________________ php, html, jquery, javascript, wordpress - contact me at contact at zerovic.com | |
|   |           |